body {background:#113430}
body::before {opacity:.36;background-image:linear-gradient(118deg,#0a211f94,transparent 75%),url('/assets/homepage/20261107-aurora-v2/art/aurora-still.webp')}
#discovery, #game-profile {font-family:var(--rf-reading)}
#discovery {max-width:1440px}
#discovery .lobby-section {position:relative;margin:clamp(16px,2.4vw,34px) 0 clamp(20px,2.3vw,32px)}
.lobby-masthead {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:0 0 16px}
#live-title {color:#fffaeb;font:510 clamp(44px,5vw,72px)/1.03 var(--rf-display);letter-spacing:-.05em;margin:0}
#live-title em {font-weight:450;color:var(--rf-champagne)}
#live-status {display:inline-flex;align-items:center;gap:8px;width:fit-content;min-height:36px;padding:6px 14px;border:1px solid #b7cbbb66;background:#14362fee;color:#f6f4e8;font:600 .78rem/1.2 var(--rf-reading);border-radius:30px}
#live-status::before {content:"";height:7px;width:7px;border-radius:50%;border:1px solid #cad7c3}
.lobby-section:has(.lobby-card) #live-status::before {background:#a6ecc6;box-shadow:0 0 8px #a6ecc655}

/* The empty lobby is a single strip with the crew gathered at its edge. */
#discovery .lobby-section:has(.lobby-welcome) {
  display:grid;grid-template-columns:clamp(140px,17vw,232px) minmax(0,1fr) auto;
  grid-template-areas:"art heading action";align-items:center;gap:clamp(14px,2vw,28px);
  min-height:100px;padding:0 clamp(16px,2vw,28px) 0 0;margin:18px 0;
  overflow:hidden;border:1px solid #ae9a7299;border-radius:18px;
  background:linear-gradient(105deg,#284b3e,#132e29);box-shadow:0 4px 16px #061b1b30;
}
#discovery #lobby-list:has(.lobby-welcome), #discovery .lobby-welcome {display:contents}
#discovery .lobby-scene {
  grid-area:art;position:relative;align-self:stretch;margin:0;overflow:hidden;
  border-inline-end:1px solid #d3b57e;border-radius:0 2px 34px 0;
}
.lobby-scene img {position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:50% 58%}
.lobby-section:has(.lobby-welcome) .lobby-masthead {
  grid-area:heading;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:9px 0;
}
.lobby-section:has(.lobby-welcome) #live-title {font-size:clamp(27px,3vw,39px)}
.lobby-section:has(.lobby-welcome) #live-status {
  background:none;border:0;margin:0;padding:3px 0;gap:6px;min-height:24px;color:#d2e6d7;text-decoration:none;
}
.lobby-section:has(.lobby-welcome) #live-status:hover {text-decoration:underline}
.lobby-action {
  grid-area:action;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  justify-self:end;min-height:42px;padding:7px 14px;border:1px solid #ead1a3;border-radius:24px;
  background:#f2dfb7;color:#18362b;font:700 .85rem/1.2 var(--rf-reading);text-decoration:none;
}
.lobby-action:hover {background:#fff0cf}
#discovery .lobby-card,#discovery .lobby-unavailable {background:linear-gradient(125deg,#23483d,#16362f);color:#fff7e7;border:1px solid #aa967966;box-shadow:0 6px 18px #071e1c2a}
#discovery .lobby-card h3,#game-profile :is(.profile-top h2,.profile-hook,.profile-goal h3) {font-family:var(--rf-display);font-weight:550}
#discovery .lobby-card .pill-button {background:#f2dfb7;color:#20392d;border-color:#e5cb9a}
#explore {background:var(--rf-parchment);border:1px solid #c9bc9e;border-radius:23px;box-shadow:0 14px 40px #051e1c39}
#discovery #category-intro {grid-template-areas:"title search" "count search" "clear clear";align-items:center;gap:4px 16px}
#discovery #category-intro #result-count {justify-self:start;text-align:left;padding:0;margin:0;color:#4e6056;font-weight:550}
#explore .family-heading :is(h1,h2) {color:#183a30;font-family:var(--rf-display);font-weight:510;letter-spacing:-.055em}
.search-results-grid {padding-bottom:clamp(20px,3vw,42px)}
#explore .catalog-search summary {width:44px;height:44px;background:#fffbf2;border-color:#bca57f}
#explore .game-card {border:1px solid #c7bda8;border-radius:15px;box-shadow:0 3px 9px #40341c12;background:#fffaf0}
#explore .game-link {border-radius:14px}
#explore .game-tools {position:absolute;z-index:2;inset:10px 10px auto;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
#explore .game-tools button {pointer-events:auto}
#explore .card-preview {
  min-height:34px;padding:4px 11px;border:1px solid #c8b58b;border-radius:20px;
  background:#fffaed;color:#1a3b32;box-shadow:0 2px 5px #0d211e52;
  font:700 .78rem/1 var(--rf-reading);
}
#explore .card-preview:hover {background:#fae3ae}
#explore .card-preview:focus-visible {outline:3px solid #162e28;outline-offset:2px}
#explore .game-tools .heart {position:static;width:34px;height:34px;opacity:1}
#explore .game-card:hover,#explore .game-card:focus-within {border-color:#8e7955;box-shadow:0 8px 19px #49381924}
#explore :is(.category-caption,.game-caption) {background:#fffaf0}
#explore .game-title {font-family:var(--rf-display);font-weight:550;letter-spacing:-.045em;color:#193a30}
#explore .reflexes-letters {
  font-family:Georgia, "Times New Roman", serif;
  font-variant-ligatures:none;
  line-height:0;
  letter-spacing:.075em;
}
#explore :is(.category-description,.game-kind) {color:#475b50}
#explore .category-card .game-genre {
  top:8px;left:9px;min-height:24px;padding:2px 8px;
  background:#15382eee;border-color:#dfc9a48c;color:#fff7e5;font-size:11.5px;font-weight:650;
}
.category-montage {
  position:absolute;inset:0 -5%;display:flex;gap:2px;transform:skewX(-7deg);
  background:#e8d9b7;pointer-events:auto;
}
.montage-column {position:relative;flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.montage-panel {position:relative;flex:1;min-height:0;overflow:hidden;background:#254038}
.montage-panel img {
  position:absolute;inset:0 -15%;width:130%;max-width:none;height:100%;
  object-fit:cover;transform:skewX(7deg);
}
.montage-count-3 .montage-column:first-child {flex:1.22}
.montage-count-4 .montage-column:first-child .montage-panel:first-child,
.montage-count-6 .montage-column:nth-child(2) .montage-panel:last-child {flex:1.45}
.montage-count-4 .montage-column:last-child .montage-panel:last-child {flex:1.28}
.montage-count-5 .montage-column:nth-child(2),
.montage-count-7 .montage-column:nth-child(2),
.montage-count-8 .montage-column:nth-child(2) {flex:1.42}
.montage-count-7 .montage-column:nth-child(2) .montage-panel:first-child,
.montage-count-8 .montage-column:nth-child(2) .montage-panel:first-child {flex:1.33}

/* Stretch the card and its click target. Let the caption flow from the top. */
@media (min-width:601px) {
  #explore .game-grid {align-items:stretch}
  #explore .game-grid > .game-card {display:flex}
  #explore .game-grid .game-link {display:flex;flex-direction:column;justify-content:flex-start;height:auto;gap:0}
  #explore .game-grid .game-artwork {flex:none}
  #explore .game-grid :is(.category-caption,.game-caption) {flex:1;justify-content:flex-start}
  #explore .game-grid .game-title {white-space:normal}
}
#discovery :is(.lobby-action,#live-status):focus-visible {outline:3px solid #ffe4a7;outline-offset:3px}

.lobby-section:has(.lobby-card) {
  padding:clamp(20px,2.5vw,36px);background:linear-gradient(120deg,#163a31,#112b27);
  border:1px solid #bdad866e;border-radius:23px;
}
.lobby-section:has(.lobby-card) #live-title {font-size:clamp(38px,4vw,58px)}
#lobby-list:has(.lobby-card) {grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))}
#discovery .lobby-card {align-items:center;padding:8px;gap:clamp(12px,1.4vw,22px);border-radius:13px}
#discovery .lobby-card>img {width:36%;height:clamp(110px,9.5vw,148px);border-radius:28px 7px 7px;object-fit:cover}
#discovery .lobby-card>div {min-width:0;padding-right:6px}
#discovery .lobby-card h3 {font-size:clamp(23px,2.1vw,30px);line-height:1.1}
#discovery .lobby-card p {font-size:.85rem;color:#d5e5d9;overflow-wrap:anywhere}
#discovery .lobby-card .pill-button {min-height:40px}
@media(min-width:850px) {
  .lobby-section:has(.lobby-card:only-child) {display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);align-items:center;gap:36px}
  .lobby-section:has(.lobby-card:only-child) .lobby-masthead {align-items:flex-start;flex-direction:column;gap:12px;padding:0}
}

@media(max-width:580px) {
  #discovery .lobby-section {margin:13px 0 18px}
  #discovery .lobby-section:has(.lobby-welcome) {
    min-height:82px;grid-template-columns:clamp(48px,16vw,86px) minmax(0,1fr) auto;
    gap:9px;padding-right:10px;margin:12px 0;border-radius:15px;
  }
  #discovery .lobby-scene {border-bottom-right-radius:20px}
  .lobby-scene img {object-position:35% 58%}
  .lobby-section:has(.lobby-welcome) #live-title {font-size:clamp(23px,6.5vw,30px)}
  .lobby-section:has(.lobby-welcome) #live-status {font-size:.7rem}
  .lobby-action {min-height:44px;padding:6px 10px;gap:4px;font-size:.76rem}
  #live-title {font-size:clamp(38px,11vw,56px)}
  #live-status {min-height:34px;font-size:.72rem}
  #explore {border-radius:18px}
}
@media(max-width:360px) {
  #discovery .lobby-section:has(.lobby-welcome) {grid-template-columns:42px minmax(0,1fr) auto;gap:7px}
  .lobby-action {padding-inline:8px}
  .lobby-action span {display:none}
}

html.category-page #discovery .lobby-section {display:none}

#game-shortcuts {
  margin:0 0 clamp(16px,1.8vw,26px);
  padding:clamp(14px,1.5vw,20px) clamp(16px,2.4vw,34px);
  scroll-margin-top:14px;
  color:#23453a;background:linear-gradient(110deg,#e9efe3,#f8f4e9 68%);
  border:1px solid #c9bc9e;border-radius:20px;box-shadow:0 6px 20px #051e1c28;
}
html.category-page #game-shortcuts, #shortcut-panel[hidden] {display:none}
.shortcut-pills {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#game-shortcuts .shortcut-pills button {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;
  padding:8px 15px;border:1px solid #a7b3a4;border-radius:30px;
  background:#fffcf3;color:#244538;font:650 .86rem/1.2 var(--rf-reading);cursor:pointer;
}
#game-shortcuts .shortcut-pills button:hover {background:#e0ebdc;border-color:#718d78}
#game-shortcuts .shortcut-pills button[aria-expanded=true] {background:#214b3d;color:#fff8e6;border-color:#214b3d}
.shortcut-pills svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.shortcut-pills button[aria-expanded=true] svg {color:#f3d28f}
#game-shortcuts :is(button,a):focus-visible {outline:3px solid #177966;outline-offset:2px}
#shortcut-panel {margin-top:14px}
#game-shortcuts .shortcut-message {margin:0;font:500 .86rem/1.4 var(--rf-reading);color:#345647}
.shortcut-message :is(a,button) {color:#164c3c;text-decoration:underline;font:inherit;font-weight:700}
.shortcut-message button {border:0;background:none;padding:2px;cursor:pointer}
#game-shortcuts .shortcut-games {list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,185px),1fr));gap:8px}
#game-shortcuts .shortcut-message + .shortcut-games {margin-top:8px}
.shortcut-games li {min-width:0}
.shortcut-games a {height:100%;display:flex;gap:10px;align-items:center;padding:5px 9px 5px 5px;background:#fffcf4;border:1px solid #d3cfbd;border-radius:10px;color:#234537;text-decoration:none}
.shortcut-games a:hover {background:#fff;border-color:#789480}
.shortcut-games img {width:54px;height:48px;object-fit:cover;background:#e1e5d8;border-radius:6px}
.shortcut-games strong {display:block;font:580 1.04rem/1.15 var(--rf-display)}
.shortcut-games small {display:block;margin-top:3px;color:#506659;font:500 .74rem/1.2 var(--rf-reading)}
@media(max-width:600px) {
  #game-shortcuts {padding:12px;margin-inline:-3px;border-radius:18px}
  .shortcut-pills {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  #game-shortcuts .shortcut-pills button {font-size:.8rem;min-height:44px;padding:6px;gap:6px}
  .shortcut-pills svg {flex:none;width:14px;height:14px}
  #game-shortcuts .shortcut-games {grid-template-columns:repeat(2,minmax(0,1fr))}
  .shortcut-games a {gap:7px}
  .shortcut-games img {width:38px;height:37px}
}
