/* Feed view: one game per screen, Reels / Shorts paging, in the gallery's own look. The harbor
   scene, the brand plaque, the view switch and the game counter stay put; each page carries a
   frameless cover with the gallery tile's rim, the name, the like / comments / star row, PLAY
   and the swipe hint, and is laid out to fit the height it gets. Reached from the lobby's view
   switch. */
.feed {
  --brand-height: max(104px, min(calc(var(--stage-width) * .24), calc(var(--app-height) * .11)));
  --gutter: calc(var(--stage-width) * .07);
  --gap: calc(var(--stage-width) * .03);
  /* The cover is as wide as the row allows and never so tall that PLAY leaves the screen. */
  /* The dock and its props are the gallery's. */
  --nav-size: min(124px, calc(var(--stage-width) * .26), calc(var(--app-height) * .16));
  --dock-height: calc(var(--nav-size) + var(--stage-width) * .035);
  --cover: min(calc(var(--stage-width) * .8), calc((var(--app-height) - var(--brand-height) - var(--dock-height)) * .52));
  background-color: #7ca7bd;
}
.feed .lobby-scenery { object-position: center top; }
.feed::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(#0b1a2200 6%, #0b1a2280 24%, #16262fb3 50%, #16262fb3 78%, #16262f66); }
.feed .app-content { overflow: hidden; }
.feed .masthead { height: var(--brand-height); z-index: 4; pointer-events: none; }
.feed .brand { width: 56%; margin-left: var(--gutter); background-position: left center; filter: drop-shadow(0 4px 2px #37261766); pointer-events: auto; }
/* The view switch and the counter sit where the gallery has its switch and tile-size buttons. */
.feed .view-switch { right: var(--gutter); top: 20px; }
.f-count { position: absolute; z-index: 40; right: var(--gutter); top: 65px; margin: 0; min-width: 92px; box-sizing: border-box; height: 36px; padding: 0 14px; display: grid; place-items: center; border: 2px solid #d9b27c; border-radius: 999px; background: #0b1a22c8; color: #f3e3c3; font-size: 15px; letter-spacing: .06em; box-shadow: 0 3px 0 #5a3a1c, 0 6px 8px #00000080; pointer-events: none; }
.f-main { position: absolute; inset: 0; z-index: 3; }
.f-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; }
.f-viewport.is-dragging { cursor: grabbing; }
.f-viewport:focus-visible { box-shadow: inset 0 0 0 3px #fff0b6; }
.f-track { position: absolute; inset: 0; will-change: transform; }
.f-page { position: absolute; left: 0; top: calc(var(--i) * 100%); width: 100%; height: 100%; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--stage-width) * .035); padding: var(--brand-height) var(--gutter) var(--dock-height); }
.f-page img { -webkit-user-drag: none; pointer-events: none; }
/* Cover: the gallery tile, one to a screen. */
.f-cover { position: relative; width: var(--cover); height: var(--cover); flex: none; }
.f-hit-frame { position: absolute; inset: 0; display: block; border-radius: calc(var(--cover) * .09); box-shadow: 0 0 0 2.5px #e2bd86, 0 0 0 4px #7a4e26, 0 5px 0 4px #5a3a1c, 0 10px 12px #0b1a22aa; cursor: pointer; transition: transform .15s ease; }
.f-hit-frame:active { transform: translateY(2px); }
.f-hit-frame:focus-visible { outline: 3px solid #fff0b6; outline-offset: 5px; }
.f-art { position: absolute; inset: 0; border-radius: inherit; background: #7ca7bd var(--game-art, url("assets/lobby/lobby-scene.webp?v=e77a4c9026a2")) center 38% / cover no-repeat; box-shadow: inset 0 1px 0 #ffffff66; }
.f-page[data-game-id="harbor-rush-2d"] .f-art { background-color: #758d80; background-position: center top; }
/* Beta: the gallery's badge, on the same corner of the cover. */
.f-cover .card-beta { top: -4%; right: -4%; width: 30%; }
.f-cover .card-beta[hidden] { display: none; }
/* Like, comments and the favorite star: one row under the name. The like and comment buttons carry their
   count and appear once hub-social.js has it; the star is the gallery's (.fav-btn in hub-chrome.css). */
.f-social { display: flex; align-items: center; justify-content: center; gap: calc(var(--stage-width) * .026); flex: none; }
.social-btn { height: 44px; min-width: 44px; padding: 0 16px; display: flex; align-items: center; gap: 7px; border: 2px solid #d9b27c; border-radius: 999px; background: linear-gradient(#f8e7c6, #dfbb86); color: #8a5a30; box-shadow: 0 2px 0 #6b3f17, 0 4px 4px #21180b66; font: inherit; font-size: 15px; letter-spacing: .02em; cursor: pointer; }
.social-btn[hidden] { display: none; }
.social-btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.social-btn span { color: #5a3a1c; font-variant-numeric: tabular-nums; }
.social-btn:active { transform: translateY(2px); }
.social-btn:focus-visible { outline: 3px solid #fff0b6; outline-offset: 2px; }
.f-like[aria-pressed="true"] { color: #e5493a; }
.f-like[aria-pressed="true"] svg { fill: currentColor; stroke: #b13326; }
.f-fav { position: static; width: 44px; opacity: 1; flex: none; }
/* Dock: Discord, Random, Profile along the bottom, where the gallery has its dock. Random keeps
   the middle whether or not there is a Discord invite. */
.feed .rail { bottom: 0; height: var(--dock-height); display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; align-items: center; padding-inline: 16px; padding-bottom: 0; pointer-events: auto; }
.feed .rail .item[data-nav="discord"] { grid-column: 1; justify-self: start; }
.feed .rail .item[data-nav="random"] { grid-column: 2; border: 0; padding: 0; background: none; cursor: pointer; font: inherit; }
.feed .rail .item[data-nav="profile"] { grid-column: 3; justify-self: end; }
.feed .rail .item:focus-visible { outline: 3px solid #fff0b6; outline-offset: 2px; }
.f-shuffle { left: 27%; top: 13%; width: 46%; height: 42%; }
.f-shuffle svg { display: block; width: 100%; height: 100%; fill: none; stroke: #f3e3c3; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 0 #8c6a3f); }
/* Random's arrows trade places now and then, as Discord nods and the compass swings; a press
   rolls them once. */
.voyage.is-loaded .f-shuffle .nav-rotor { animation: random-shuffle 4.8s ease-in-out infinite; animation-delay: -1.6s; }
.voyage.is-loaded .item.is-rolling .f-shuffle .nav-rotor { animation: random-roll .42s cubic-bezier(.3, .7, .3, 1); }
@keyframes random-shuffle { 0%, 56%, 100% { transform: scaleY(1); } 64% { transform: scaleY(-1) translateY(-4%); } 72% { transform: scaleY(1); } 80% { transform: scaleY(-1) translateY(-4%); } 88% { transform: scaleY(1); } }
@keyframes random-roll { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.22); } 100% { transform: rotate(360deg) scale(1); } }
/* Name: live text under the cover, as under a gallery tile. */
.f-title { margin: 0; max-width: 100%; text-align: center; color: #fff0ce; text-shadow: 0 2px 0 #3a2616, 0 0 8px #0b1a22, 0 3px 4px #0b1a22; text-transform: uppercase; font-size: calc(var(--stage-width) * .066); line-height: 1.05; text-wrap: balance; overflow-wrap: anywhere; }
.f-play { display: block; flex: none; width: calc(var(--stage-width) * .58); filter: drop-shadow(0 5px 0 #112c46) drop-shadow(0 10px 7px #00000090); transition: transform .16s ease, filter .16s ease; }
.f-play img { display: block; width: 100%; height: auto; clip-path: polygon(14.2% 14%, 85.6% 14%, 96.4% 35%, 96.8% 71%, 86.8% 94%, 13.6% 94%, 3% 71%, 3.6% 35%); }
.f-play:active { transform: translateY(3px) scale(.97); }
.f-hint { margin: 0; color: #fff0ce; opacity: .85; font-size: calc(var(--stage-width) * .034); text-shadow: 0 1px 2px #0b1a22, 0 0 6px #0b1a22; text-align: center; }
/* Comment sheet: over the feed, up from the bottom; the feed behind it is shaded and inert. */
.f-sheet-shade { position: absolute; inset: 0; z-index: 59; background: #0b1a2299; }
.f-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 60; height: min(62%, 560px); display: flex; flex-direction: column; border-top: 3px solid #d9b27c; border-radius: 22px 22px 0 0; background: #f6e6c8; color: #3a2616; box-shadow: 0 -8px 24px #0b1a22aa; animation: f-sheet-up .22s cubic-bezier(.2, .8, .25, 1); }
.f-sheet[hidden], .f-sheet-shade[hidden] { display: none; }
@keyframes f-sheet-up { from { transform: translateY(24%); opacity: 0; } }
.f-sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 8px 18px; border-bottom: 1px solid #d9b27c88; }
.f-sheet-head h2 { margin: 0; font-size: 18px; }
.f-sheet-total { font-size: 14px; opacity: .65; }
.f-sheet-close { width: 44px; height: 44px; border: 0; padding: 0; background: none; color: #8a5a30; cursor: pointer; border-radius: 50%; }
.f-sheet-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.f-sheet-close:focus-visible, .f-sheet-more:focus-visible, .f-sheet-form button:focus-visible { outline: 3px solid #2f6fb5; outline-offset: 2px; }
/* Comments are read, not glanced at: the system face, at a reading size. */
.f-sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 10px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.f-sheet-list { list-style: none; margin: 0; padding: 0; }
.f-comment { padding: 10px 0; border-bottom: 1px solid #d9b27c55; }
.f-comment b { font-size: 13px; font-weight: 600; color: #8a5a30; }
.f-comment time { margin-left: 8px; font-size: 12px; color: #6f5740; }
.f-comment-like { float: right; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; margin: -4px -10px 0 6px; padding: 2px 0 0; border: 0; border-radius: 12px; background: none; color: #8a5a30; font: inherit; font-size: 11px; line-height: 1.2; cursor: pointer; }
.f-comment-like svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.f-comment-like[aria-pressed="true"] { color: #e5493a; }
.f-comment-like[aria-pressed="true"] svg { fill: currentColor; stroke: #b13326; }
.f-comment-like-count { min-height: 13px; }
.f-comment-like:focus-visible { outline: 3px solid #2f6fb5; outline-offset: 1px; }
.f-comment-delete { min-height: 32px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: #6f5740; font: inherit; font-size: 12px; cursor: pointer; }
.f-comment-delete.is-armed { background: #a12c1f; color: #fff; }
.f-comment-delete:disabled { opacity: .5; }
.f-comment-delete:focus-visible { outline: 3px solid #2f6fb5; outline-offset: 1px; }
.f-comment-actions { display: flex; gap: 4px; margin: 2px 0 -6px -8px; }
.f-comment-reply, .f-comment-thread, .f-replies-more { min-height: 32px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: #6f5740; font: inherit; font-size: 12px; cursor: pointer; }
.f-comment-thread, .f-replies-more { color: #1f5e9c; }
.f-comment-thread[hidden], .f-replies-more[hidden], .f-thread[hidden], .f-sheet-replying[hidden] { display: none; }
.f-comment-reply:focus-visible, .f-comment-thread:focus-visible, .f-replies-more:focus-visible { outline: 3px solid #2f6fb5; outline-offset: 1px; }
.f-thread { margin: 8px 0 0 6px; padding-left: 12px; border-left: 2px solid #d9b27c88; }
.f-replies { margin: 0; padding: 0; list-style: none; }
.f-replies .f-comment { padding: 8px 0; }
.f-replies .f-comment:last-child { border-bottom: 0; }
.f-replies .f-comment.is-team { margin: 4px 0; }
.f-replies-more { margin-left: -8px; }
.f-sheet-replying { flex: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px 0 18px; background: #efdcb8; color: #6f5740; font: 13px system-ui, -apple-system, "Segoe UI", sans-serif; border-top: 1px solid #d9b27c88; }
.f-sheet-replying span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-sheet-replying button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: #8a5a30; cursor: pointer; }
.f-sheet-replying svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.f-sheet-replying:not([hidden]) ~ .f-sheet-form { border-top: 0; }
.f-comment p { margin: 3px 0 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.f-comment.is-team { margin: 4px -10px; padding: 10px; border: 0; border-radius: 10px; background: #e9dcc0; }
.f-comment.is-team b { color: #1f5e9c; }
.f-sheet-status { margin: 22px 0; text-align: center; font-size: 15px; color: #6f5740; }
.f-sheet-more { display: block; margin: 12px auto 2px; height: 40px; padding: 0 18px; border: 2px solid #d9b27c; border-radius: 999px; background: #fffaf0; color: #8a5a30; font: inherit; font-size: 14px; cursor: pointer; }
.f-sheet-more[hidden], .f-sheet-status[hidden], .f-sheet-note[hidden] { display: none; }
.f-sheet-note { flex: none; margin: 0; padding: 8px 18px 0; background: #efdcb8; color: #a12c1f; font: 14px system-ui, -apple-system, "Segoe UI", sans-serif; }
.f-sheet-form { flex: none; display: flex; gap: 8px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #d9b27c88; background: #efdcb8; }
.f-sheet-note:not([hidden]) + .f-sheet-form { border-top: 0; }
.f-sheet-form input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 2px solid #d9b27c; border-radius: 999px; background: #fffaf0; color: #3a2616; font: 16px system-ui, -apple-system, "Segoe UI", sans-serif; }
.f-sheet-form input:focus-visible { outline: 3px solid #2f6fb5; outline-offset: 1px; }
.f-sheet-form button { flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #2f6fb5; color: #fff; font: inherit; font-size: 15px; box-shadow: 0 3px 0 #112c46; cursor: pointer; }
.f-sheet-form button:disabled { opacity: .6; }
#f-source { display: none; }
.f-announce { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) { .f-track { transition: none !important; } .f-sheet { animation: none; } .f-hit-frame { transition: none; } }
/* Offline (see hub-chrome.css): a game that is not on the device cannot be started from its page. */
.f-page.is-away .f-play { filter: grayscale(1) brightness(.6); }
