/* Shared public refinements: room for desktop, no loss of mobile controls. */
:root { --shell: 1480px; --panel: #111116; --panel-2: #19191f; --line: #303039; --line-soft: #22222b; --muted: #aaa7b5; }
.hero-v3 { overflow: visible; isolation: auto; }
.hero-v3::after { inset: 20% 5% 0; height: auto; z-index: -1; }
.hero-v3:focus-within,.section-v3:has(.search-suggestions-v3:not([hidden])),.game-results-v4:focus-within { position: relative; z-index: 10; }
.search-v3,.field-search-v3 { position: relative; overflow: visible; }
.smart-discovery { position: relative; overflow: visible; }
.search-suggestions-v3.search-suggestions-open { overflow-y: auto; max-height: min(360px, 52vh); overscroll-behavior: contain; background: var(--panel-2); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.search-suggestions-v3.home-search-suggestions-overlay { position: fixed; right: auto; z-index: 95; max-width: calc(100vw - 24px); scrollbar-width: thin; }
.search-suggestion-v3 { min-height: 48px; padding: 12px 16px; gap: 12px; }
.search-suggestion-v3[aria-selected="true"],.search-suggestion-v3:hover { background: var(--selection-surface); }
.search-suggestion-kind-v3 { justify-self: start; max-width: 100%; color: var(--muted); background: transparent; font-size: 11px; line-height: 1.5; letter-spacing: .05em; overflow-wrap: anywhere; }
.search-suggestion-v3 > strong { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.hero-grid-v3 { grid-template-columns: minmax(0,1.35fr) minmax(360px,.85fr); gap: clamp(32px,5vw,80px); }
.game-showcase-v3 { padding: 24px; background: var(--panel); border-color: var(--line); border-radius: var(--radius-lg); }
.game-grid-v3 a { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto auto; gap: 5px; border-radius: var(--radius-md); padding: 10px; transition: border-color .18s ease,background .18s ease,transform .18s ease; }
.game-grid-v3 a:hover { border-color: var(--interactive-edge); background: var(--surface-hover); transform: translateY(-2px); }
.game-grid-v3 .game-art-v3 { grid-row: auto; width: 100%; height: auto; aspect-ratio: 460/215; margin-bottom: 5px; border-radius: 8px; background-size: cover; }
.game-grid-v3 strong { font-size: 16px; }
.game-grid-v3 small { color: #bdb8c7; font-size: 13px; }
.game-grid-v3 .game-all-v3 { grid-template-columns: 52px minmax(0,1fr); grid-template-rows: auto auto; min-height: 74px; }
.game-grid-v3 .game-all-v3 .game-art-v3 { grid-row: 1 / 3; width: 48px; height: 48px; aspect-ratio: 1; margin: 0; display: grid; place-items: center; background: #211b2c; }
.game-grid-v3 .game-art-all-v5 img { width: 46px; height: 46px; }
.server-card { border-color: var(--line); border-radius: var(--radius-md); background: var(--panel); }
.server-card:hover { border-color: var(--interactive-edge); background: var(--surface-hover); box-shadow: var(--shadow-sm); }
.server-description { color: var(--copy); line-height: 1.65; }
.server-tags span,.tag-v3 { font-size: 12px; font-weight: 550; border-radius: var(--radius-xs); }
.section-head-v3 p,.editorial-v3 p { color: var(--copy); }
.eyebrow-v3 { font-size: 12px; letter-spacing: .1em; }
.button-v3 { border-radius: var(--radius-sm); font-weight: 650; }
.button-primary-v3 { box-shadow: inset 0 1px 0 #ffffff20; }
.account-popover-v3 { border-radius: var(--radius-md); background: var(--panel-2); box-shadow: var(--shadow-md); padding: 8px; }
.account-popover-v3 a,.account-popover-v3 button { border-radius: var(--radius-xs); min-height: 44px; font-size: 14px; }
.account-avatar-v3,.account-initials-v3 { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.content-with-rail-v3 { grid-template-columns: clamp(200px,15vw,280px) minmax(0,1fr); gap: clamp(24px,2.2vw,44px); }
.content-with-rail-v3 > .side-ad-v3 { grid-column: 1; grid-row: 1; }
.content-with-rail-v3 > :not(.side-ad-v3) { grid-column: 2; grid-row: 1; min-width: 0; }
.side-ad-v3 { border: 0; border-radius: 12px; background: none; padding: 0; box-shadow: none; }
.side-ad-stage-v3 { min-height: clamp(400px, calc(100svh - 260px), 680px); border: 1px solid #ffffff14; border-radius: 12px; overflow: hidden; }
.ad-label-v3 { display: block; padding: 0 2px 8px; font-size: 10px; letter-spacing: .13em; color: #938d9f; }
.side-ad-copy-v3 { padding: 22px 18px; }
.side-ad-copy-v3 strong { max-width: none; font-size: clamp(20px,1.5vw,25px); line-height: 1.2; letter-spacing: -.025em; }
.side-ad-copy-v3 span { font-size: 13px; line-height: 1.6; color: #e0dce6; }
.side-ad-copy-v3 a { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
.ad-dots-v3 { gap: 0; justify-content: center; padding: 0; }
.ad-dot-v3 { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; }
.ad-dot-v3::before { display: none; }
.ad-dot-v3::after { content: ""; width: 34px; height: 4px; border-radius: 4px; background: #746b80; }
.ad-dot-v3[aria-current="true"] { background: transparent; }
.ad-dot-v3[aria-current="true"]::after { background: #ff81c4; }
.advert-banner-shell-v7 { position: relative; z-index: 0; margin-top: -30px; }
.banner-ad-v7 { position: relative; inset: auto; top: auto; width: 100%; max-width: 1040px; margin: 0 auto 24px; }
.banner-ad-v7 .side-ad-stage-v3 { height: 190px; min-height: 0; max-height: 190px; }
.banner-ad-v7 .side-ad-image-v3 { object-position: center 45%; }
.banner-ad-v7 .side-ad-shade-v3 { background: linear-gradient(90deg,#090911ee,#09091188 65%,#09091144); }
.banner-ad-v7 .side-ad-copy-v3 { padding: 25px 64px; max-width: 740px; gap: 8px; }
.banner-ad-v7 .side-ad-copy-v3 strong { font-size: clamp(22px,2vw,28px); }
.banner-ad-v7 .ad-dots-v3 { position: static; }
.banner-ad-v7.artwork-unavailable .side-ad-stage-v3 { height: auto; min-height: 0; max-height: none; display: grid; grid-template-columns: 120px minmax(0,1fr) 44px 44px; align-items: center; gap: 12px; padding: 18px 20px; }
.banner-ad-v7.artwork-unavailable .side-ad-image-notice-v3 { grid-column: 1; grid-row: 1; }
.banner-ad-v7.artwork-unavailable .side-ad-image-notice-v3 img { width: 110px; }
.banner-ad-v7.artwork-unavailable .side-ad-copy-v3 { grid-column: 2; grid-row: 1; padding: 0; }
.banner-ad-v7.artwork-unavailable .ad-arrow-previous-v3 { grid-column: 3; grid-row: 1; }
.banner-ad-v7.artwork-unavailable .ad-arrow-next-v3 { grid-column: 4; grid-row: 1; }
.recommendations-v7 { padding: 28px 0; }
.recommendation-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.recommendation-heading h2 { margin: 2px 0 5px; font-size: 28px; line-height: 1.2; letter-spacing: -.03em; }
.recommendation-message { margin: 0; font-size: 14px; color: var(--muted); max-width: 660px; }
.recommendation-actions { flex: none; }
.recommendation-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.recommendation-results .server-card:not(.server-card-skeleton) { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.recommendation-results .server-card .server-card-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.recommendation-results .server-card .server-card-media { width: 56px; height: 56px; }
.recommendation-results .server-card h3 { margin: 0; font-size: 20px; }
.recommendation-results .server-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
.recommendation-results .server-meta { font-size: 12px; }
.recommendation-results .server-card .server-card-bottom { display: flex; flex-wrap: wrap; text-align: left; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12px; }
.recommendation-results .server-tags { display: none; }
.recommendation-settings { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-block: 24px; }
.recommendation-settings h3 { margin: 0 0 8px; font-size: 20px; }
.recommendation-settings p { color: var(--muted); font-size: 14px; }
.recommendation-toggle { display: flex; align-items: center; gap: 12px; margin: 20px 0; cursor: pointer; }
.recommendation-toggle input { width: 20px; height: 20px; accent-color: var(--pink); }
.recommendation-status:empty { display: none; }
@media(min-width:1600px) { .shell-v3 { width: min(calc(100% - 80px),var(--shell)); } .section-v3:has(> .content-with-rail-v3) > .shell-v3,.section-v3 > .shell-v3:has(> .content-with-rail-v3) { max-width: 1840px; width: calc(100% - 96px); } }
@media(max-width:1100px) { .hero-grid-v3 { grid-template-columns: minmax(0,1fr); } .game-showcase-v3 { max-width: none; } .content-with-rail-v3 { grid-template-columns: 180px minmax(0,1fr); gap: 24px; } .recommendation-results { grid-template-columns: minmax(0,1fr); } .recommendation-heading { align-items: start; flex-direction: column; gap: 14px; } }
@media(max-width:760px) {
  .content-with-rail-v3 { display: flex; flex-direction: column; gap: 28px; }
  .content-with-rail-v3 > .side-ad-v3,.content-with-rail-v3 > :not(.side-ad-v3) { grid-column: auto; grid-row: auto; width: 100%; }
  .content-with-rail-v3 > .side-ad-v3 { order: 2; }
  .content-with-rail-v3 > :not(.side-ad-v3) { order: 1; }
  .side-ad-stage-v3 { min-height: 210px; }
  .side-ad-copy-v3 { padding: 20px 48px; max-width: 520px; }
  .side-ad-copy-v3 strong { font-size: 23px; }
  .banner-ad-v7 .side-ad-copy-v3 { padding: 22px 44px; }
  .banner-ad-v7 .side-ad-stage-v3 { height: 210px; max-height: 210px; }
  /* Narrow banners reserve a separate row for controls so copy can wrap freely. */
  body:not([data-page="home"]) .banner-ad-v7:not(.artwork-unavailable) .side-ad-stage-v3 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); height: auto; min-height: 210px; max-height: none; }
  body:not([data-page="home"]) .banner-ad-v7:not(.artwork-unavailable) .side-ad-copy-v3 { position: relative; grid-column: 1 / -1; grid-row: 1; max-width: none; min-width: 0; padding: 22px 24px 8px; }
  body:not([data-page="home"]) .banner-ad-v7:not(.artwork-unavailable) .ad-arrow-v3 { position: relative; top: auto; left: auto; right: auto; grid-row: 2; margin: 0 18px 14px; }
  body:not([data-page="home"]) .banner-ad-v7:not(.artwork-unavailable) .ad-arrow-previous-v3 { grid-column: 1; }
  body:not([data-page="home"]) .banner-ad-v7:not(.artwork-unavailable) .ad-arrow-next-v3 { grid-column: 2; justify-self: end; }
  .banner-ad-v7.artwork-unavailable .side-ad-stage-v3 { height: auto; max-height: none; grid-template-columns: 86px minmax(0,1fr); }
  .banner-ad-v7.artwork-unavailable .side-ad-image-notice-v3 { grid-column: 1; grid-row: 1; }
  .banner-ad-v7.artwork-unavailable .side-ad-image-notice-v3 img { width: 78px; }
  .banner-ad-v7.artwork-unavailable .side-ad-copy-v3 { grid-column: 2; grid-row: 1; }
  .banner-ad-v7.artwork-unavailable .ad-arrow-previous-v3 { grid-column: 1; grid-row: 2; }
  .banner-ad-v7.artwork-unavailable .ad-arrow-next-v3 { grid-column: 2; grid-row: 2; justify-self: end; }
  .game-grid-v3 a { grid-template-columns: 82px minmax(0,1fr); }
  .game-grid-v3 .game-art-v3 { grid-row: 1 / 3; width: 82px; height: 56px; margin: 0; }
  .game-grid-v3 a { grid-template-rows: auto auto; gap: 3px 12px; }
  .game-showcase-v3 { padding: 16px; }
  .recommendation-heading h2 { font-size: 24px; }
  .recommendation-settings { padding: 20px; }
}
@media(prefers-reduced-motion:reduce) { .game-grid-v3 a { transition: none; } .game-grid-v3 a:hover { transform: none; } }

/* Premium interaction detail: contained highlights, never page-wide movement. */
:is(.server-card:not(.server-card-skeleton), .game-grid-v3 > a, .game-official-card-v6) { position: relative; }
:is(.server-card:not(.server-card-skeleton), .game-grid-v3 > a, .game-official-card-v6)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse at 85% 0%, rgb(155 108 255 / .09), transparent 65%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), inset 0 0 24px rgb(236 79 166 / .045);
  opacity: 0; transition: opacity 180ms ease;
}
:is(.server-card:not(.server-card-skeleton), .game-grid-v3 > a, .game-official-card-v6):focus-visible::after { opacity: 1; }
.public-nav-links-v6 > a::after { background: linear-gradient(90deg, var(--pink-strong), var(--cyan)); }
.navigation-link-icon-v6 { transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 240ms var(--motion-ease); }
.navigation-link-v6:focus-visible .navigation-link-icon-v6 { background: rgb(236 79 166 / .16); box-shadow: 0 0 18px rgb(236 79 166 / .15), inset 0 1px 0 #ffffff20; }
.navigation-game-v6 { transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.navigation-game-v6:focus-visible { box-shadow: inset 0 1px 0 #ffffff20, 0 4px 16px #0003; }
.account-popover-v3 :is(a, button) { transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease; }
.account-popover-v3 :is(a, button):focus-visible {
  background: rgb(236 79 166 / .09); color: var(--text); box-shadow: inset 2px 0 var(--pink-strong);
}
.account-popover-v3 .account-danger-v3:focus-visible { color: var(--danger); box-shadow: inset 2px 0 var(--danger); }
.search-suggestion-v3[aria-selected="true"] { background: var(--selection-surface); box-shadow: inset 2px 0 var(--pink-strong); }

@media (hover: hover) and (pointer: fine) {
  :is(.server-card:not(.server-card-skeleton), .game-grid-v3 > a, .game-official-card-v6):hover::after { opacity: 1; }
  .navigation-link-v6:hover .navigation-link-icon-v6 { background: rgb(236 79 166 / .16); box-shadow: 0 0 18px rgb(236 79 166 / .15), inset 0 1px 0 #ffffff20; }
  .navigation-game-v6:hover { box-shadow: inset 0 1px 0 #ffffff20, 0 4px 16px #0003; }
  .account-popover-v3 :is(a, button):hover { background: rgb(236 79 166 / .09); color: var(--text); box-shadow: inset 2px 0 var(--pink-strong); }
  .account-popover-v3 .account-danger-v3:hover { color: var(--danger); box-shadow: inset 2px 0 var(--danger); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.button-primary-v3, .button-primary, .small-button-primary):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"])::after { animation: touch-sweep-v3 650ms var(--motion-ease) 1; }
  .navigation-link-v6:is(:hover, :focus-visible) .navigation-link-icon-v6 { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  :is(.server-card:not(.server-card-skeleton), .game-grid-v3 > a, .game-official-card-v6)::after,
  .navigation-link-icon-v6, .navigation-game-v6, .account-popover-v3 :is(a, button) { transition: none; animation: none; }
  .navigation-link-v6:is(:hover, :focus-visible) .navigation-link-icon-v6 { transform: none; }
  :is(.button-primary-v3, .button-primary, .small-button-primary)::after { animation: none !important; }
}
