@layer reset,base,layout,components,responsive;
@layer reset {
  * {
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
  }
  body,
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  button,
  input,
  select,
  textarea {
    font: inherit;
  }
  button,
  a,
  input,
  select,
  textarea {
    -webkit-tap-highlight-color: transparent;
  }
  button {
    cursor: pointer;
  }
  button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
  }
  button {
    color: inherit;
  }
  button,
  input,
  select,
  textarea {
    max-width: 100%;
  }
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  summary:focus-visible {
    outline: 3px solid #51ffe4;
    outline-offset: 4px;
  }
  dialog {
    color: inherit;
  }
  button {
    border: 0;
  }
  input,
  select,
  textarea {
    width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
@layer base {
  :root {
    color-scheme: dark;
    --bg: #170f21;
    --panel: #291b38;
    --panel-light: #342342;
    --text: #fff7fb;
    --muted: #c6b7d2;
    --violet: #713fff;
    --coral: #ff657b;
    --aqua: #28e3cf;
    --gold: #f8d795;
    --border: #70507866;
    --rail: 202px;
    --gradient: linear-gradient(
      115deg,
      #713fff 0%,
      #cf55cc 43%,
      #ff657b 65%,
      #28e3cf 115%
    );
    --mood-shift: 25deg;
  }
  body {
    font-family:
      Inter,
      ui-sans-serif,
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      sans-serif;
    color: var(--text);
    background:
      radial-gradient(ellipse at 15% 12%, #44225455, transparent 45%),
      radial-gradient(ellipse at 90% 65%, #183d3b44, transparent 40%), var(--bg);
    line-height: 1.6;
  }
  h1,
  h2,
  h3 {
    line-height: 1.15;
    letter-spacing: -0.025em;
  }
  h1 {
    font-size: clamp(2.1rem, 4.3vw, 4rem);
    font-weight: 850;
  }
  h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.3rem);
    font-weight: 780;
  }
  h3 {
    font-size: 1.1rem;
  }
  p {
    color: var(--muted);
  }
  em {
    font-style: normal;
    color: var(--gold);
  }
  small {
    font-size: 0.72rem;
  }
  label {
    display: block;
    color: #f8edf9;
    font-weight: 600;
    font-size: 0.87rem;
    margin-bottom: 18px;
  }
  input,
  select,
  textarea {
    display: block;
    margin-top: 7px;
    border-radius: 10px;
    border: 1px solid #8c6a9a85;
    background: #1c1229;
    color: #fff;
    padding: 12px 14px;
    min-height: 46px;
  }
  textarea {
    resize: vertical;
  }
  input[type="range"] {
    padding: 0;
    accent-color: var(--coral);
    background: transparent;
    min-height: 32px;
  }
  input[type="checkbox"] {
    width: 19px;
    height: 19px;
    min-height: 19px;
    accent-color: var(--violet);
    margin: 2px 0 0;
    flex-shrink: 0;
  }
  form .button {
    margin-top: 7px;
  }
  strong {
    font-weight: 750;
  }
  hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 28px 0;
  }
  progress {
    height: 12px;
    width: 100%;
    accent-color: var(--aqua);
    border-radius: 10px;
    margin: 15px 0;
  }
  section[id] {
    scroll-margin-top: 85px;
  }
  a:hover {
    text-decoration-color: var(--coral);
  }
  .prose a,
  .auth-form p a,
  .text-link {
    color: #86f5e3;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .eyebrow {
    display: block;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .micro-boundary {
    display: block;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--muted);
    margin-top: 22px;
  }
  .skip-link {
    position: fixed;
    top: -100px;
    left: 12px;
    z-index: 1000;
    background: var(--aqua);
    color: #142b2b;
    padding: 12px;
  }
  .skip-link:focus {
    top: 10px;
  }
  .desktop-only {
    display: inline;
  }
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 12px 22px;
    min-height: 46px;
    line-height: 1.3;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 800;
    transition:
      transform 0.18s,
      box-shadow 0.18s;
    background: #3d2a4e;
    color: #fff;
    border: 1px solid #a07bb154;
    box-shadow:
      inset 0 1px 0 #ffffff1f,
      0 4px 0 #0e071475;
  }
  .button:hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 #ffffff35,
      0 6px 0 #0e071475,
      0 7px 24px #ad4afd20;
  }
  .button.primary {
    background: var(--gradient);
    border-color: #e5b2ff7a;
    color: #fff;
    text-shadow: 0 1px 4px #160b2a99;
    box-shadow:
      inset 0 1px 0 #ffffff60,
      0 4px 0 #3c1c68,
      0 8px 24px #ac3bee3a;
  }
  .button.secondary {
    background: linear-gradient(#4b335d, #30213f);
    border-color: #9b74a66b;
  }
  .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .care-button {
    background: #652a43;
    border-color: #e789a3;
  }
  .text-link {
    font-weight: 700;
  }
  .age-badge {
    border: 1px solid #bea8c482;
    color: #fff8eb;
    font-size: 0.7rem;
    font-weight: 750;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
  }
}
@layer layout {
  .topbar {
    height: 72px;
    margin-right: var(--rail);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: #1b1228ee;
    border-bottom: 1px solid #7a4d8566;
    position: relative;
    z-index: 20;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
  }
  .brand > span {
    font-size: 1.65rem;
    font-weight: 950;
    letter-spacing: 0.025em;
    color: #fff4da;
  }
  .brand small {
    display: block;
    font-size: 0.47rem;
    letter-spacing: 0.24em;
    margin-top: 7px;
    color: #d3b7d9;
  }
  .utility {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.72rem;
    color: var(--muted);
  }
  .support-link {
    font-weight: 700;
    color: #fff4fa;
  }
  .menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
  }
  .rail {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--rail);
    height: 100dvh;
    z-index: 40;
    background: linear-gradient(165deg, #30213e 0%, #24162f 55%, #1d182d 100%);
    border-left: 1px solid #94619c6e;
    box-shadow: -12px 0 35px #10091945;
    padding: 22px 17px;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .rail-brand {
    display: flex;
    align-items: center;
    flex-direction: column;
    line-height: 1;
    margin: 0 auto 23px;
    color: #ffedbd;
  }
  .rail-brand strong {
    font-size: 1.55rem;
    letter-spacing: 0.04em;
    margin-top: 4px;
  }
  account-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
  }
  account-controls .button {
    width: 100%;
    min-height: 42px;
    padding: 10px;
    font-size: 0.8rem;
  }
  .balance-pill {
    background: linear-gradient(135deg, #4e2c65, #293a4c);
    border: 1px solid #c3a3ce66;
    padding: 11px 14px;
    border-radius: 12px;
    line-height: 1.4;
  }
  .balance-pill span {
    display: block;
    font-size: 0.56rem;
    letter-spacing: 0.15em;
    color: #dbc6e3;
  }
  .balance-pill b {
    font-size: 1.4rem;
    color: var(--gold);
  }
  .signout-link {
    background: transparent;
    font-size: 0.69rem;
    color: var(--muted);
    text-align: center;
  }
  .guest-balance {
    font-size: 0.65rem;
    text-align: center;
    color: var(--muted);
  }
  .rail nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 39px;
    padding: 8px 9px;
    font-size: 0.77rem;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #d8c9e2;
  }
  .nav-link > span {
    width: 22px;
    font-size: 1.1rem;
    color: #ddc5e6;
    text-align: center;
  }
  .nav-link:hover,
  .nav-link.active {
    background: linear-gradient(100deg, #894fbb55, #f680a61a);
    border-color: #bb8bd94d;
    color: #fff;
  }
  .nav-link.active:before {
    content: "";
    position: absolute;
    left: -18px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--gradient);
    border-radius: 4px;
  }
  .nav-link.active > span {
    color: #ffd69c;
  }
  .rail-secondary {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-top: 18px;
  }
  .rail-secondary a {
    font-size: 0.74rem;
    padding: 7px 9px;
    color: #dfcce6;
  }
  .rail-care {
    margin-top: 24px;
    padding: 18px 10px 8px;
    border-top: 1px solid var(--border);
  }
  .rail-care > span {
    font-size: 0.51rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    color: var(--gold);
  }
  .rail-care p {
    font-size: 0.68rem;
    margin-top: 8px;
  }
  .rail-care a {
    display: block;
    font-size: 0.67rem;
    color: var(--aqua);
    margin-top: 9px;
  }
  main,
  .footer {
    margin-right: var(--rail);
  }
  .content-section {
    margin: 0 auto;
    padding: 38px 28px;
    max-width: 1500px;
  }
  .section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
  }
  .section-heading h2 {
    font-size: clamp(1.35rem, 2.15vw, 2rem);
  }
  .section-heading p {
    margin-top: 9px;
    font-size: 0.85rem;
  }
  .section-heading > a {
    white-space: nowrap;
    font-size: 0.76rem;
    color: #87f5e6;
    font-weight: 750;
  }
  .page-heading {
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 32px 32px;
  }
  .page-heading h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
  }
  .page-heading > p {
    max-width: 720px;
    margin-top: 18px;
    font-size: 0.96rem;
  }
  .narrow {
    max-width: 850px;
  }
  .prose {
    max-width: 1000px;
  }
  .prose h2 {
    font-size: 1.5rem;
    margin: 32px 0 12px;
  }
  .prose h2:first-child {
    margin-top: 0;
  }
  .prose p {
    font-size: 0.94rem;
    line-height: 1.9;
  }
  .document {
    padding-top: 12px;
  }
  .document section {
    padding: 24px 0;
    border-bottom: 1px solid #70507840;
  }
  .document section h2 {
    margin: 0 0 14px;
  }
  .footer {
    border-top: 1px solid #9e68a259;
    background: linear-gradient(130deg, #2d1b37, #171720);
    padding: 46px 32px 20px;
    position: relative;
  }
  .footer-lead {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 24px;
    align-items: center;
  }
  .footer-lead > p {
    font-size: 0.93rem;
  }
  .boundary {
    grid-column: 1/-1;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0 28px;
    border-bottom: 1px solid var(--border);
  }
  .boundary b {
    color: var(--gold);
    font-size: 0.77rem;
    white-space: nowrap;
  }
  .boundary span {
    font-size: 0.75rem;
    line-height: 1.7;
    max-width: 950px;
    color: var(--muted);
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 28px 0 32px;
  }
  .footer-links h2 {
    font-size: 0.77rem;
    color: #f3d3bd;
    letter-spacing: 0;
    margin-bottom: 14px;
  }
  .footer-links a {
    display: block;
    font-size: 0.73rem;
    color: #c7b6d2;
    margin: 8px 0;
  }
  .footer-links a:hover {
    color: #8df9e7;
  }
  .footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.65rem;
    color: #b9a6c6;
  }
  .error-page {
    min-height: 65vh;
    padding-top: 100px;
  }
  .error-page .button {
    margin-top: 24px;
    margin-right: 12px;
  }
}
@layer components {
  .discovery-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 19px 22px;
    background: linear-gradient(0deg, #211629, #291a33);
    border-block: 1px solid #92629d45;
  }
  .discovery-strip a {
    font-size: 0.72rem;
    font-weight: 750;
    padding: 12px 17px;
    border: 1px solid #8b6a9b66;
    border-radius: 11px;
    background: linear-gradient(#4c335c, #2b2039);
    box-shadow:
      inset 0 1px 0 #ffffff1f,
      0 3px 0 #0e0714;
  }
  .discovery-strip a:hover {
    color: var(--aqua);
  }
  .card-caption {
    padding: 10px 10px 7px;
    min-height: 62px;
  }
  .card-caption h3 {
    font-size: clamp(0.7rem, 1vw, 0.86rem);
    line-height: 1.25;
    font-weight: 800;
    min-height: 1.2em;
  }
  .card-caption > span {
    display: block;
    font-size: 0.58rem;
    line-height: 1.3;
    color: #c8b0d5;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .catalogue-controls {
    margin-bottom: 25px;
  }
  .search-box {
    position: relative;
    margin: 0 auto 20px;
    max-width: 650px;
  }
  .search-box > span {
    position: absolute;
    left: 17px;
    top: 9px;
    font-size: 1.65rem;
    color: #dfc4e8;
  }
  .search-box input {
    padding-left: 48px;
    background: linear-gradient(#35243f, #271b33);
    border-radius: 12px;
  }
  .filter-row {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .filter-row button,
  .pagination button {
    border-radius: 8px;
    background: #342440;
    border: 1px solid #8d6a9b73;
    padding: 8px 14px;
    font-weight: 750;
    font-size: 0.72rem;
    min-height: 38px;
  }
  .filter-row button.selected {
    background: linear-gradient(110deg, #7941c4, #ae477e);
    border-color: #f4b8e7;
  }
  .filter-row .filter-reset {
    background: transparent;
    color: var(--aqua);
    border-color: #549e9566;
  }
  .result-count {
    font-size: 0.73rem;
    margin-top: 19px;
    color: #bda9ca;
  }
  .empty-state {
    padding: 45px 22px;
    text-align: center;
    color: var(--muted);
    background: #291c354d;
    border: 1px dashed #b58bc155;
    border-radius: 16px;
  }
  .empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  .empty-state .button {
    margin-top: 20px;
  }
  .salon-panel {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 20px;
    margin-top: 18px;
    background:
      radial-gradient(ellipse at 80% 45%, #7e38764d, transparent 60%),
      linear-gradient(110deg, #332042, #21323766);
    border-block: 1px solid #9b6b9e4f;
  }
  .salon-panel > div {
    max-width: 550px;
  }
  .salon-panel > img {
    max-height: 360px;
    object-fit: contain;
    width: 100%;
    filter: drop-shadow(0 22px 30px #13091e88);
  }
  .salon-panel p {
    font-size: 0.87rem;
    margin-top: 17px;
  }
  .mood-controls {
    margin-top: 24px;
    max-width: 430px;
  }
  .mood-controls label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
  }
  .mood-controls output {
    font-size: 0.75rem;
    color: var(--gold);
  }
  .mood-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #cdb8d9;
    margin-bottom: 18px;
  }
  .mood-controls > a {
    display: block;
    font-size: 0.76rem;
    color: var(--aqua);
    margin-top: 10px;
  }
  .editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .feature-panel {
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #3c264d, #251d35);
    border: 1px solid #8d659669;
    box-shadow:
      inset 0 1px 0 #ffffff16,
      0 10px 25px #0d07152b;
  }
  .feature-panel p {
    font-size: 0.87rem;
    margin-top: 14px;
    margin-bottom: 20px;
  }
  .feature-panel h2 {
    font-size: 1.7rem;
  }
  .feature-panel .eyebrow {
    margin-bottom: 12px;
  }
  .cycle-section {
    text-align: center;
  }
  .cycle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
    text-align: left;
  }
  .cycle-grid article {
    padding: 26px 23px;
    border-top: 1px solid #d5afc176;
    background: linear-gradient(#3e29402f, transparent);
  }
  .cycle-grid b {
    color: var(--gold);
    font-size: 1.7rem;
  }
  .cycle-grid h3 {
    margin: 13px 0;
  }
  .cycle-grid p {
    font-size: 0.82rem;
  }
  .care-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: linear-gradient(90deg, #19413f66, #2f2443);
    border-block: 1px solid #75d2ba30;
    margin-top: 20px;
  }
  .care-banner h2 {
    font-size: 1.8rem;
  }
  .care-banner p {
    max-width: 680px;
    font-size: 0.85rem;
    margin-top: 14px;
  }
  .care-banner .button {
    flex-shrink: 0;
  }
  .auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    max-width: 1150px;
    padding-top: 44px;
    padding-bottom: 55px;
  }
  .auth-scene {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid #9c73ac66;
    background: linear-gradient(140deg, #60305c, #332e59);
  }
  .auth-scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
  }
  .auth-scene > div {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, #210f32f5 30%);
    padding: 65px 30px 30px;
  }
  .auth-scene h2 {
    font-size: 2.15rem;
  }
  .auth-scene p {
    font-size: 0.88rem;
    margin-top: 15px;
  }
  .auth-form {
    padding: 32px 15px;
  }
  .auth-form h1 {
    font-size: 2.1rem;
    margin-bottom: 20px;
  }
  .auth-form > p {
    font-size: 0.84rem;
    margin-bottom: 24px;
  }
  .auth-form > a {
    display: block;
    font-size: 0.81rem;
    color: var(--aqua);
    margin: 20px 0;
  }
  .auth-form form {
    margin-top: 25px;
  }
  .auth-form form .button {
    width: 100%;
  }
  .check-label {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 3px;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.7;
  }
  .check-label > input {
    float: left;
  }
  .check-label a {
    color: var(--aqua);
    text-decoration: underline;
  }
  .form-status {
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 16px 0 0;
    color: #c9f9e9;
    min-height: 1.5em;
  }
  .honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }
  .faq-list details {
    border-bottom: 1px solid var(--border);
    padding: 20px 5px;
  }
  .faq-list summary {
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffead4;
    line-height: 1.5;
  }
  .faq-list details p {
    font-size: 0.86rem;
    margin-top: 14px;
  }
  .care-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 36px;
    align-items: start;
  }
  .care-layout .prose h2 {
    font-size: 1.35rem;
  }
  .preference-line {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 22px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }
  .preference-line h3 {
    font-size: 0.92rem;
  }
  .preference-line p {
    margin: 8px 0 0;
    font-size: 0.8rem;
  }
  .preference-line > strong {
    font-size: 0.73rem;
    color: var(--aqua);
    text-align: right;
  }
  .sitemap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .sitemap-grid h2 {
    font-size: 1.4rem;
    margin-bottom: 22px;
  }
  .sitemap-grid a {
    display: block;
    color: var(--muted);
    padding: 7px 0;
    font-size: 0.86rem;
  }
  .game-detail {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 36px;
    align-items: center;
    padding-top: 50px;
  }
  .game-detail > img {
    border-radius: 20px;
    border: 1px solid #bb8ab573;
    box-shadow: 0 15px 35px #0b071755;
  }
  .game-detail h1 {
    font-size: clamp(1.8rem, 3.3vw, 3rem);
  }
  .game-detail p {
    font-size: 0.92rem;
    margin: 20px 0;
  }
  .game-detail .button {
    margin: 7px 6px 0 0;
  }
  .detail-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .detail-chips span {
    border: 1px solid #906f9e66;
    border-radius: 6px;
    font-size: 0.64rem;
    padding: 5px 8px;
    color: #d9c3e4;
  }
  .profile-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    background: linear-gradient(110deg, #4a2a58, #2b3246);
  }
  .profile-identity {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .profile-identity h2 {
    font-size: 1.9rem;
  }
  .profile-identity p {
    font-size: 0.83rem;
    margin-top: 8px;
  }
  .avatar-crest {
    width: 74px;
    height: 80px;
    clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    display: grid;
    place-items: center;
    background: var(--gradient);
    color: #fff5d7;
    font-size: 2rem;
    font-weight: 850;
  }
  .credit-display {
    text-align: right;
  }
  .credit-display > span {
    display: block;
    font-size: 0.63rem;
    letter-spacing: 0.14em;
    color: var(--gold);
  }
  .credit-display b {
    font-size: 2.3rem;
    display: block;
    line-height: 1.4;
  }
  .credit-display a {
    font-size: 0.75rem;
    color: var(--aqua);
  }
  .profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 25px 0;
  }
  .profile-stats > div {
    border-left: 2px solid #b47fb4;
    padding: 10px 16px;
  }
  .profile-stats b {
    display: block;
    font-size: 1.6rem;
    color: var(--gold);
  }
  .profile-stats span {
    font-size: 0.75rem;
    color: var(--muted);
  }
  .stamp-shelf {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }
  .stamp-shelf > a {
    background: linear-gradient(#38233b, #252035);
    border: 1px solid #cdac8566;
    border-radius: 14px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 5px 0 #1c1129;
  }
  .stamp-shelf img {
    width: 100%;
    aspect-ratio: 1.5;
    object-fit: cover;
    border-radius: 9px;
  }
  .stamp-shelf b {
    font-size: 0.67rem;
    line-height: 1.5;
    display: block;
    margin-top: 8px;
  }
  .stamp-shelf span {
    font-size: 0.61rem;
    color: var(--muted);
  }
  .favourite-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
  }
  .favourite-list button {
    background: #30203e;
    border: 1px solid #9268a166;
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 0.74rem;
  }
  .favourite-list button[aria-pressed="true"] {
    background: #5f315d;
    border-color: #ff9da2;
  }
  .favourite-list button span {
    color: var(--coral);
    margin-right: 8px;
  }
  .profile-lower {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 25px;
  }
  .activity-list {
    margin-top: 18px;
  }
  .activity-list > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #8b688d45;
    font-size: 0.76rem;
  }
  .activity-list small {
    display: block;
    color: #baa3c6;
    margin-top: 4px;
    font-size: 0.62rem;
  }
  .activity-list > div > b {
    text-align: right;
    font-size: 0.8rem;
  }
  .positive {
    color: var(--aqua);
  }
  .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
  }
  .pagination button {
    font-size: 0.63rem;
    padding: 8px 10px;
  }
  .pagination span {
    font-size: 0.66rem;
    color: var(--muted);
  }
  .reward-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: radial-gradient(ellipse, #6e3a6b33, transparent), #291b35;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px 35px;
  }
  .reward-stage img {
    width: 40%;
    max-width: 340px;
  }
  .reward-stage h2 {
    font-size: 2.3rem;
  }
  .reward-stage p {
    margin: 15px 0;
  }
  .toast {
    position: fixed;
    bottom: 22px;
    left: calc((100% - var(--rail)) / 2);
    transform: translate(-50%, 25px);
    background: #392746;
    border: 1px solid #c6a1d38c;
    box-shadow: 0 8px 25px #0006;
    color: #fff5f9;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.83rem;
    max-width: min(450px, 90vw);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.2s,
      transform 0.2s;
  }
  .toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .play-section {
    padding: 25px 25px 45px;
    max-width: 1500px;
    margin: 0 auto;
  }
  .back-link {
    font-size: 0.75rem;
    color: var(--aqua);
    display: inline-block;
    margin-bottom: 18px;
  }
  .preview-dialog {
    width: min(1060px, 96vw);
    max-height: 95dvh;
    border: 1px solid #d5a1df88;
    border-radius: 20px;
    padding: 18px;
    background: #20142c;
    overflow: auto;
    box-shadow: 0 20px 100px #000b;
  }
  .preview-dialog::backdrop {
    background: #100919d9;
    backdrop-filter: blur(7px);
  }
  .dialog-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  .dialog-heading button {
    background: #483151;
    border: 1px solid #b787c1;
    border-radius: 8px;
    padding: 8px 13px;
    font-size: 0.8rem;
  }
  .preview-label {
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.08em;
  }
}
@layer responsive {
  @media (min-width: 1600px) {
    :root {
      --rail: 226px;
    }
    .content-section {
      padding-left: 38px;
      padding-right: 38px;
    }
    .card-caption h3 {
      font-size: 0.88rem;
    }
    .rail {
      padding: 28px 20px;
    }
    .nav-link {
      font-size: 0.85rem;
      min-height: 44px;
    }
    .rail-secondary a {
      font-size: 0.82rem;
    }
  }
  @media (max-width: 1150px) {
    :root {
      --rail: 180px;
    }
    .topbar {
      padding: 0 22px;
    }
    .content-section {
      padding: 30px 22px;
    }
    .discovery-strip {
      gap: 6px;
      padding-inline: 15px;
    }
    .discovery-strip a {
      font-size: 0.61rem;
      padding: 10px;
    }
    .rail {
      padding-inline: 12px;
    }
    .nav-link {
      font-size: 0.69rem;
      gap: 5px;
    }
    .rail-secondary a {
      font-size: 0.68rem;
    }
    .section-heading h2 {
      font-size: 1.5rem;
    }
    .auth-layout {
      gap: 22px;
    }
    .auth-form {
      padding: 20px 4px;
    }
    .auth-scene {
      min-height: 580px;
    }
    .auth-scene h2 {
      font-size: 1.7rem;
    }
    .stamp-shelf {
      grid-template-columns: repeat(4, 1fr);
    }
    .profile-lower {
      grid-template-columns: 1fr;
    }
    .feature-panel {
      padding: 23px;
    }
    .discovery-strip a:last-child {
      display: none;
    }
    .support-grid,
    .care-layout {
      gap: 22px;
    }
    .profile-overview {
      padding: 24px;
    }
    .profile-identity h2 {
      font-size: 1.6rem;
    }
    .game-detail {
      gap: 25px;
    }
    .card-caption h3 {
      font-size: 0.76rem;
    }
    .footer {
      padding-inline: 25px;
    }
  }
  @media (max-width: 850px) {
    :root {
      --rail: 0px;
    }
    .topbar {
      height: 64px;
      position: sticky;
      top: 0;
      background: #21152bef;
      backdrop-filter: blur(12px);
      padding: 0 18px;
    }
    .brand > span {
      font-size: 1.35rem;
    }
    .brand img {
      width: 34px;
      height: 34px;
    }
    .brand small {
      font-size: 0.4rem;
    }
    .menu-toggle {
      display: block;
    }
    .utility {
      gap: 12px;
    }
    .rail {
      width: 275px;
      top: 64px;
      bottom: 0;
      height: calc(100dvh - 64px);
      transform: translateX(105%);
      transition: transform 0.25s;
      padding: 25px 20px;
      background: #291a36;
      box-shadow: -20px 20px 40px #0b0610c2;
    }
    .rail.is-open {
      transform: translateX(0);
    }
    .rail-brand {
      display: none;
    }
    .nav-link {
      font-size: 0.86rem;
      min-height: 43px;
      gap: 12px;
    }
    .rail-secondary a {
      font-size: 0.82rem;
    }
    .rail-care > span {
      font-size: 0.62rem;
    }
    .rail-care p,
    .rail-care a {
      font-size: 0.78rem;
    }
    .card-caption h3 {
      font-size: 0.76rem;
    }
    .section-heading h2 {
      font-size: 1.5rem;
    }
    .page-heading {
      padding: 42px 25px 22px;
    }
    .support-grid {
      grid-template-columns: 1fr 1fr;
    }
    .auth-layout {
      max-width: 850px;
    }
    .auth-form h1 {
      font-size: 1.8rem;
    }
    .footer-lead {
      grid-template-columns: 190px 1fr;
    }
    .footer-links {
      gap: 15px;
    }
    .profile-lower {
      grid-template-columns: 1fr 1.2fr;
    }
    .toast {
      left: 50%;
    }
  }
  @media (max-width: 600px) {
    .topbar {
      padding: 0 13px;
      height: 61px;
    }
    .support-link,
    .desktop-only {
      display: none;
    }
    .utility {
      gap: 9px;
    }
    .age-badge {
      width: 28px;
      height: 28px;
    }
    .menu-toggle {
      font-size: 0.73rem;
      padding: 7px 9px;
    }
    .rail {
      top: 61px;
      height: calc(100dvh - 61px);
    }
    .discovery-strip {
      padding: 13px 12px;
      gap: 7px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
    }
    .discovery-strip a {
      text-align: center;
      font-size: 0.57rem;
      padding: 10px 5px;
      min-height: 42px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .content-section {
      padding: 29px 15px;
    }
    .section-heading {
      gap: 12px;
      margin-bottom: 18px;
      align-items: flex-start;
    }
    .section-heading h2 {
      font-size: 1.3rem;
      line-height: 1.2;
    }
    .section-heading > a {
      font-size: 0.6rem;
      max-width: 90px;
      white-space: normal;
      text-align: right;
      flex-shrink: 0;
      margin-top: 9px;
    }
    .section-heading p {
      font-size: 0.76rem;
    }
    .eyebrow {
      font-size: 0.59rem;
      margin-bottom: 9px;
    }
    .card-caption {
      padding: 10px 9px 6px;
      min-height: 60px;
    }
    .card-caption h3 {
      font-size: 0.76rem;
    }
    .card-caption > span {
      font-size: 0.56rem;
    }
    .salon-panel {
      grid-template-columns: 1fr;
      gap: 0;
      padding-top: 30px;
    }
    .salon-panel > img {
      max-height: 260px;
      grid-row: 2;
    }
    .salon-panel h2 {
      font-size: 1.6rem;
    }
    .salon-panel p {
      font-size: 0.82rem;
    }
    .mood-controls {
      margin-top: 19px;
    }
    .mood-controls .button {
      font-size: 0.75rem;
    }
    .editorial-grid {
      grid-template-columns: 1fr;
      gap: 17px;
    }
    .feature-panel {
      padding: 23px 20px;
      border-radius: 17px;
    }
    .feature-panel h2 {
      font-size: 1.45rem;
    }
    .feature-panel p {
      font-size: 0.82rem;
    }
    .cycle-section {
      text-align: left;
    }
    .cycle-section > h2 {
      font-size: 1.6rem;
    }
    .cycle-grid {
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 22px;
    }
    .cycle-grid article {
      padding: 17px 10px;
      display: grid;
      grid-template-columns: 45px 1fr;
      column-gap: 12px;
    }
    .cycle-grid b {
      grid-row: 1/3;
      font-size: 1.4rem;
    }
    .cycle-grid h3 {
      font-size: 1rem;
      margin: 0 0 8px;
    }
    .cycle-grid p {
      font-size: 0.8rem;
    }
    .care-banner {
      flex-direction: column;
      align-items: flex-start;
      gap: 23px;
    }
    .care-banner h2 {
      font-size: 1.55rem;
    }
    .care-banner p {
      font-size: 0.82rem;
    }
    .footer {
      padding: 35px 18px 22px;
    }
    .footer-lead {
      grid-template-columns: 1fr;
      gap: 18px;
    }
    .footer-lead > p {
      font-size: 0.79rem;
    }
    .boundary {
      gap: 12px;
      padding: 6px 0 25px;
    }
    .boundary b {
      font-size: 0.66rem;
    }
    .boundary span {
      font-size: 0.66rem;
    }
    .footer-links {
      grid-template-columns: 1fr 1fr;
      gap: 21px 18px;
      padding: 27px 0;
    }
    .footer-links h2 {
      font-size: 0.74rem;
    }
    .footer-links a {
      font-size: 0.68rem;
    }
    .footer-bottom {
      display: grid;
      grid-template-columns: 1fr 1fr;
      font-size: 0.59rem;
    }
    .footer-bottom > :nth-child(even) {
      text-align: right;
    }
    .page-heading {
      padding: 35px 18px 14px;
    }
    .page-heading h1 {
      font-size: 2.15rem;
    }
    .page-heading > p {
      font-size: 0.84rem;
      margin-top: 16px;
    }
    .page-heading .micro-boundary {
      font-size: 0.65rem;
    }
    .filter-row {
      gap: 7px;
      justify-content: flex-start;
    }
    .filter-row button {
      font-size: 0.64rem;
      padding: 8px 10px;
      min-height: 36px;
    }
    .search-box input {
      font-size: 0.81rem;
    }
    .result-count {
      font-size: 0.66rem;
    }
    .auth-layout {
      display: flex;
      flex-direction: column;
      gap: 5px;
      padding-top: 20px;
    }
    .auth-scene {
      min-height: 250px;
    }
    .auth-scene img {
      object-position: center 35%;
    }
    .auth-scene > div {
      padding: 50px 20px 20px;
      background: linear-gradient(transparent, #210f32ee);
    }
    .auth-scene h2 {
      font-size: 1.7rem;
    }
    .auth-scene p {
      font-size: 0.74rem;
      margin-top: 9px;
    }
    .auth-form {
      padding: 28px 6px;
    }
    .auth-form h1 {
      font-size: 1.8rem;
    }
    .auth-form > p {
      font-size: 0.8rem;
    }
    .check-label {
      font-size: 0.71rem;
    }
    .support-grid,
    .care-layout {
      grid-template-columns: 1fr;
      gap: 25px;
    }
    .faq-list summary {
      font-size: 0.86rem;
    }
    .faq-list details p {
      font-size: 0.81rem;
    }
    .prose h2,
    .care-layout .prose h2 {
      font-size: 1.25rem;
    }
    .prose p {
      font-size: 0.84rem;
      line-height: 1.9;
    }
    .document section {
      padding: 21px 0;
    }
    .preference-line {
      flex-direction: column;
      gap: 10px;
    }
    .preference-line > strong {
      text-align: left;
    }
    .sitemap-grid {
      grid-template-columns: 1fr;
      gap: 30px;
    }
    .sitemap-grid a {
      font-size: 0.81rem;
    }
    .game-detail {
      grid-template-columns: 1fr;
      gap: 25px;
    }
    .game-detail h1 {
      font-size: 2rem;
    }
    .game-detail p {
      font-size: 0.85rem;
    }
    .game-detail .button {
      font-size: 0.76rem;
    }
    .profile-overview {
      align-items: flex-start;
      flex-direction: column;
      gap: 22px;
      padding: 23px;
    }
    .credit-display {
      text-align: left;
      display: grid;
      grid-template-columns: 1fr 1fr;
      column-gap: 15px;
      align-items: center;
      width: 100%;
    }
    .credit-display b {
      grid-column: 1;
      font-size: 1.9rem;
    }
    .credit-display a {
      grid-row: 1/3;
      grid-column: 2;
      text-align: right;
      font-size: 0.7rem;
    }
    .profile-identity {
      gap: 16px;
    }
    .profile-identity h2 {
      font-size: 1.6rem;
    }
    .avatar-crest {
      width: 58px;
      height: 65px;
      font-size: 1.7rem;
    }
    .profile-stats {
      grid-template-columns: 1fr 1fr;
      gap: 15px 10px;
      margin: 22px 0;
    }
    .profile-stats b {
      font-size: 1.4rem;
    }
    .profile-stats span {
      font-size: 0.66rem;
    }
    .profile-stats > div {
      padding: 6px 13px;
    }
    .stamp-shelf {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    .favourite-list {
      gap: 8px;
    }
    .favourite-list button {
      font-size: 0.68rem;
      padding: 9px 11px;
    }
    .profile-lower {
      grid-template-columns: 1fr;
      gap: 18px;
    }
    .activity-list > div {
      font-size: 0.7rem;
    }
    .activity-list small {
      font-size: 0.57rem;
    }
    .reward-stage {
      flex-direction: column;
      gap: 0;
      padding: 20px;
    }
    .reward-stage img {
      width: 85%;
      max-width: 230px;
    }
    .reward-stage h2 {
      font-size: 1.9rem;
    }
    .reward-stage > div {
      width: 100%;
      padding-bottom: 10px;
    }
    .reward-stage p {
      font-size: 0.8rem;
    }
    .play-section {
      padding: 20px 8px 35px;
    }
    .play-section > .back-link {
      margin-left: 7px;
    }
    .preview-dialog {
      padding: 10px;
      border-radius: 14px;
      width: 97vw;
    }
    .preview-label {
      font-size: 0.59rem;
    }
    .dialog-heading button {
      font-size: 0.7rem;
      padding: 7px 10px;
    }
    .error-page {
      min-height: 60vh;
    }
    .button {
      font-size: 0.78rem;
    }
    .toast {
      font-size: 0.76rem;
      padding: 12px 16px;
      bottom: 15px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
    .button:hover {
      transform: none;
    }
  }
}

/* Portrait game salon: one shared shell on every product route. */
@layer base {
  :root {
    --rail: 232px;
  }
  .sr-only,
  .card-caption {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  [hidden] {
    display: none !important;
  }
}
@layer layout {
  .topbar {
    margin: 0;
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 0 26px;
    gap: 24px;
    background: linear-gradient(100deg, #22142f, #2d1b39 65%, #193135);
    box-shadow: 0 3px 15px #09051055;
  }
  .topbar .brand {
    min-width: calc(var(--rail) - 26px);
  }
  .header-search {
    display: flex;
    position: relative;
    margin-left: auto;
    width: min(290px, 28vw);
  }
  .header-search input {
    margin: 0;
    min-height: 38px;
    border-radius: 30px;
    padding: 8px 42px 8px 17px;
    font-size: 0.73rem;
    background: #150f208c;
    border-color: #a186ac55;
  }
  .header-search button {
    position: absolute;
    right: 5px;
    top: 1px;
    width: 36px;
    height: 36px;
    background: transparent;
    font-size: 1.6rem;
    color: #d6b7e3;
  }
  .utility {
    gap: 10px;
    white-space: nowrap;
    font-size: 0.62rem;
  }
  account-controls {
    flex-direction: row;
    gap: 11px;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
  }
  account-controls .button {
    min-width: 116px;
    width: auto;
    min-height: 39px;
    border-radius: 50px;
    padding: 9px 25px;
    font-family: Georgia, serif;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    border: 1px solid #ead5a6;
    outline: 1px solid #916d9788;
    outline-offset: 3px;
    box-shadow:
      inset 0 2px 3px #fff4,
      0 4px 6px #0005;
  }
  account-controls .button.primary {
    background: linear-gradient(115deg, #703fff, #ff657b 68%, #28e3cf 140%);
  }
  account-controls .balance-pill {
    padding: 3px 12px;
    border-radius: 30px;
    text-align: center;
    min-width: 116px;
  }
  .balance-pill b {
    font-size: 1rem;
  }
  .balance-pill span {
    font-size: 0.45rem;
  }
  .guest-balance {
    display: none;
  }
  .signout-link {
    font-size: 0.62rem;
    padding: 8px 0;
  }
  .rail {
    top: 72px;
    left: 0;
    right: auto;
    height: calc(100dvh - 72px);
    border-left: 0;
    border-right: 1px solid #81588d55;
    padding: 18px 17px;
    box-shadow: 8px 0 24px #0e08152b;
    background: linear-gradient(165deg, #2b1d39, #1b172a 75%, #16302e);
  }
  .rail-promo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffdc9c;
    font-family: Georgia, serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 4px 5px 17px;
    margin-bottom: 14px;
    border-bottom: 1px solid #9a6b9c44;
  }
  .rail-promo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 3px 3px #0009);
  }
  .rail-promo > span {
    margin-left: auto;
  }
  .nav-link {
    min-height: 45px;
    gap: 12px;
    font-family: Georgia, serif;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    padding: 7px;
  }
  .nav-link img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 3px 2px #000b);
  }
  .nav-link.active:before {
    left: -17px;
  }
  .rail-secondary {
    margin-top: 16px;
    padding-top: 15px;
  }
  .rail-secondary a {
    font-family: Georgia, serif;
    text-transform: uppercase;
    font-size: 0.65rem;
    padding: 9px 7px;
  }
  .rail-care {
    margin-top: 17px;
  }
  main,
  .footer {
    margin-right: 0;
    margin-left: var(--rail);
  }
  .content-section {
    padding: 28px 24px;
  }
  .catalogue-row {
    padding-block: 24px 12px;
  }
  .section-heading {
    align-items: center;
    margin-bottom: 18px;
  }
  .section-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .section-heading > a {
    border: 1px solid #a885af70;
    border-radius: 30px;
    padding: 6px 17px;
    color: #f5dced;
    font-size: 0.65rem;
  }
}
@layer components {
  .discovery-strip {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 13px 24px;
    gap: 10px;
    scrollbar-width: none;
  }
  .discovery-strip a {
    display: block !important;
    flex-shrink: 0;
    min-width: 112px;
    text-align: center;
    padding: 8px 18px;
    font-family: Georgia, serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    border-radius: 30px;
  }
  game-catalogue {
    display: block;
  }
  .toast {
    left: calc((100% + var(--rail)) / 2);
  }
}
@layer responsive {
  @media (min-width: 1600px) {
    :root {
      --rail: 232px;
    }
  }
  @media (min-width: 851px) and (max-width: 1190px) {
    :root {
      --rail: 200px;
    }
    .topbar {
      gap: 16px;
      padding-inline: 18px;
    }
    .topbar .brand {
      min-width: 180px;
    }
    .header-search {
      width: 180px;
    }
    .utility .desktop-only {
      display: none;
    }
    account-controls .button {
      min-width: 88px;
      padding-inline: 14px;
    }
  }
  @media (max-width: 850px) {
    :root {
      --rail: 0px;
    }
    .topbar {
      height: 117px;
      display: grid;
      grid-template-columns: 44px 1fr 44px;
      grid-template-rows: 58px 48px;
      gap: 0 10px;
      padding: 0 15px 10px;
    }
    .topbar .brand {
      min-width: 0;
      justify-self: center;
      grid-column: 2;
      grid-row: 1;
    }
    .brand img {
      width: 39px;
      height: 39px;
    }
    .brand > span {
      font-size: 1.55rem;
    }
    .brand small {
      font-size: 0.42rem;
    }
    .menu-toggle {
      grid-column: 1;
      grid-row: 1;
      padding: 6px;
      font-size: 1.3rem;
      border: 0;
    }
    .utility {
      grid-column: 3;
      grid-row: 1;
      justify-self: end;
    }
    .header-search {
      display: none;
    }
    .topbar account-controls {
      grid-column: 1/-1;
      grid-row: 2;
      width: 100%;
      display: flex;
      justify-content: center;
      gap: 13px;
    }
    account-controls .button {
      flex: 1;
      font-size: 0.69rem;
      min-height: 38px;
      padding: 8px 12px;
    }
    account-controls .balance-pill {
      flex: 1;
      min-width: 100px;
    }
    .rail {
      top: 117px;
      height: calc(100dvh - 117px);
      left: 0;
      right: auto;
      width: 270px;
      transform: translateX(-105%);
      padding: 20px;
      box-shadow: 15px 20px 40px #0b0610c2;
    }
    .rail.is-open {
      transform: translateX(0);
    }
    .nav-link {
      font-size: 0.76rem;
    }
    .rail-secondary a {
      font-size: 0.71rem;
    }
    .section-heading h2 {
      font-size: 1.4rem;
    }
    .toast {
      left: 50%;
    }
  }
  @media (max-width: 600px) {
    .topbar {
      padding-inline: 12px;
    }
    .discovery-strip {
      display: flex;
      padding: 12px;
      gap: 8px;
    }
    .discovery-strip a {
      min-width: 98px;
      font-size: 0.58rem;
      padding: 8px 14px;
      min-height: 34px;
    }
    .content-section {
      padding: 25px 13px;
    }
    .catalogue-row {
      padding-block: 20px 3px;
    }
    .section-heading {
      align-items: center;
      margin-bottom: 11px;
    }
    .section-heading h2 {
      font-size: 1.12rem;
    }
    .section-heading > a {
      margin: 0;
      padding: 4px 10px;
      font-size: 0.53rem;
      white-space: nowrap;
    }
  }
}
@layer components {
  .paytable-wrap {
    overflow-x: auto;
    margin-top: 22px;
    border: 1px solid var(--border);
    border-radius: 15px;
  }
  .paytable {
    border-collapse: collapse;
    width: 100%;
    min-width: 420px;
    text-align: right;
    font-size: 0.8rem;
  }
  .paytable th,
  .paytable td {
    padding: 11px 15px;
    border-bottom: 1px solid #78578055;
  }
  .paytable thead {
    color: var(--gold);
    background: #3a244b;
  }
  .paytable th:first-child {
    text-align: left;
  }
  .paytable tbody th {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
  }
  .paytable img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
}
@layer components {
  .page-heading {
    position: relative;
    isolation: isolate;
  }
  .page-heading:after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 18px;
    top: 20px;
    width: 200px;
    height: 200px;
    background: url("/art/decor.webp") center/contain no-repeat;
    opacity: 0.27;
    pointer-events: none;
  }
  .line-diagrams {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 20px;
  }
  .line-diagrams figure {
    margin: 0;
  }
  .line-diagrams svg {
    width: 100%;
    height: auto;
  }
  .line-diagrams figcaption {
    text-align: center;
    font-size: 0.65rem;
    color: var(--muted);
  }
  .game-rules details {
    margin-top: 20px;
  }
  .game-rules summary {
    cursor: pointer;
    color: var(--gold);
  }
}
@layer responsive {
  @media (max-width: 600px) {
    .page-heading:after {
      width: 120px;
      height: 120px;
      opacity: 0.17;
    }
    .line-diagrams {
      grid-template-columns: repeat(4, 1fr);
      gap: 7px;
    }
  }
}
@layer components {
  .care-illustration {
    padding-bottom: 0;
    max-width: 1100px;
  }
  .care-illustration img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    object-position: center 45%;
    border-radius: 22px;
    border: 1px solid #c9a4b66b;
  }
}

/* Game art stays in its natural frame; controls have their own usable space. */
@layer components {
  .hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(ellipse at 80% 20%, #633570, #26132e 75%);
  }
  .hero-visual {
    display: block;
    grid-area: 1 / 1;
    align-self: center;
    min-width: 0;
    z-index: 0;
  }
  .hero-art {
    display: block;
    position: static;
    inset: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: contain;
    object-position: center;
    filter: hue-rotate(calc(var(--mood-shift) - 25deg));
  }
  .hero:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, #21102d44, transparent 48%);
  }
  .hero-slides {
    grid-area: 1 / 1;
    align-self: center;
    width: 43%;
    min-width: 0;
    position: relative;
    z-index: 2;
  }
  .hero-copy {
    width: 100%;
    margin: 0;
    padding: clamp(22px, 2.5vw, 46px) 24px;
    text-align: center;
  }
  .hero-copy h1,
  .hero-copy h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.2vw, 3.7rem);
    font-weight: 600;
    line-height: 1.04;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    color: #fff4cf;
    text-shadow:
      0 2px #6f3b53,
      0 4px 16px #110620;
  }
  .hero-copy h1 em,
  .hero-copy h2 em {
    font-size: 0.67em;
    color: #f2cd93;
  }
  .hero-copy .eyebrow {
    font-size: 0.62rem;
    margin-bottom: 12px;
  }
  .hero-copy p {
    font-size: 0.8rem;
    line-height: 1.65;
    margin: 15px 0 20px;
    color: #f7e6f8;
  }
  .hero-copy .button {
    min-height: 46px;
    padding: 12px 26px;
    border-radius: 12px;
    border: 1px solid #f4d4a4;
    font-size: 0.78rem;
  }
  .hero-guest {
    display: block;
    margin-top: 16px;
    font-size: 0.73rem;
    color: #a4ffec;
    font-weight: 700;
  }
  .hero-carousel {
    position: relative;
    grid-row: 2;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 6px 15px 10px;
  }
  .hero-carousel > button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    border: 1px solid #c9a6cb88;
    background: linear-gradient(#56305d, #2c1839);
    box-shadow:
      inset 0 1px #fff3,
      0 3px 0 #150c20;
  }
  .hero-carousel > div {
    display: flex;
    align-items: center;
    gap: 11px;
  }
  .hero-carousel [data-hero-index] {
    padding: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ad8daf88;
    border: 1px solid #dcb4db88;
  }
  .hero-carousel [aria-pressed="true"] {
    background: #ff89b3;
    box-shadow: 0 0 9px #ff89b3;
  }
  .hero-boundary {
    position: relative;
    grid-row: 3;
    z-index: 2;
    padding: 2px 15px 14px;
    text-align: center;
    font-size: 0.62rem;
    line-height: 1.5;
    color: #e3cfe8;
  }
  .game-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 20px 14px;
  }
  .game-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #b99b75;
    border-radius: 18px;
    background: linear-gradient(145deg, #40274e, #21142e);
    box-shadow:
      0 7px 18px #09060f77,
      inset 0 1px #fff2;
    transition:
      transform 0.2s,
      border-color 0.2s;
  }
  .game-card:hover {
    transform: translateY(-3px);
    border-color: #e5c397;
  }
  .poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #35213f;
  }
  .poster-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .poster-link:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 17px 17px 0 0;
    box-shadow: inset 0 0 0 2px #eac08055;
  }
  .card-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 7px;
    font-size: 0.55rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffe3aa;
    border: 1px solid #dcb88899;
    border-radius: 6px;
    background: #201126ed;
    box-shadow: 0 2px 7px #0007;
  }
  .card-actions {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
    padding: 10px 8px 12px;
    border-top: 1px solid #d3ad7944;
    background: linear-gradient(#402a4b, #291a37);
  }
  .card-play,
  .card-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 42px;
    padding: 9px 6px;
    border-radius: 9px;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    color: #fff8fb;
    border: 1px solid #deb6e0aa;
    box-shadow:
      inset 0 1px #fff5,
      inset 0 -2px #170b2f66,
      0 3px 0 #160c20;
    transition:
      transform 0.15s,
      filter 0.15s;
  }
  .card-play {
    background: linear-gradient(135deg, #9260e9, #8c3dc3 52%, #d7558e);
    border-color: #e1b8f1;
    text-shadow: 0 1px 2px #270c47;
  }
  .card-preview {
    background: linear-gradient(#5a4268, #35233f);
    color: #f5deef;
  }
  .card-action-icon {
    font-size: 0.65rem;
  }
  .preview-word {
    display: inline;
  }
  .card-play:hover,
  .card-preview:hover {
    filter: brightness(1.15);
  }
  .card-play:active,
  .card-preview:active {
    transform: translateY(2px);
    box-shadow:
      inset 0 1px #fff3,
      0 1px 0 #160c20;
  }
  game-catalogue[compact] .game-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 84px) / 7);
    gap: 14px;
    overflow-x: auto;
    padding: 5px 2px 17px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #8e6589 transparent;
  }
  game-catalogue[compact] .game-card {
    scroll-snap-align: start;
  }
  .player-load-message {
    margin: 20px auto;
    padding: 25px;
    max-width: 650px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
  }
  .player-load-message .button {
    margin-top: 18px;
  }
}
@layer responsive {
  @media (min-width: 1600px) {
    .game-grid {
      grid-template-columns: repeat(8, minmax(0, 1fr));
    }
    game-catalogue[compact] .game-grid {
      grid-auto-columns: calc((100% - 98px) / 8);
    }
  }
  @media (min-width: 851px) and (max-width: 1190px) {
    .game-grid {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    game-catalogue[compact] .game-grid {
      grid-auto-columns: calc((100% - 56px) / 5);
    }
    .hero-slides {
      width: 47%;
    }
    .hero-copy {
      padding: 22px 15px;
    }
    .hero-copy p {
      font-size: 0.74rem;
    }
    .card-actions {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 850px) {
    .game-grid {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    game-catalogue[compact] .game-grid {
      grid-auto-columns: calc((100% - 56px) / 5);
    }
    .hero-slides {
      width: 45%;
    }
    .hero-copy {
      padding: 22px 14px;
    }
    .hero-copy h1,
    .hero-copy h2 {
      font-size: 2rem;
    }
    .hero-copy p {
      font-size: 0.73rem;
    }
    .hero-copy .eyebrow {
      font-size: 0.56rem;
    }
    .card-actions {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 700px) {
    .hero-visual {
      grid-area: 1 / 1;
      align-self: start;
    }
    .hero-slides {
      grid-area: 2 / 1;
      width: 100%;
    }
    .hero-copy {
      max-width: 550px;
      margin: 0 auto;
      padding: 22px 24px 20px;
    }
    .hero-copy h1,
    .hero-copy h2 {
      font-size: clamp(2rem, 7vw, 2.8rem);
    }
    .hero-copy h1 em,
    .hero-copy h2 em {
      font-size: 0.72em;
    }
    .hero-copy p {
      font-size: 0.82rem;
      margin: 14px 0 18px;
    }
    .hero-copy .eyebrow {
      font-size: 0.62rem;
    }
    .hero-copy .button {
      font-size: 0.8rem;
      min-height: 46px;
    }
    .hero-guest {
      font-size: 0.76rem;
      margin-top: 14px;
    }
    .hero-carousel {
      grid-row: 3;
      padding-top: 0;
    }
    .hero-boundary {
      grid-row: 4;
      font-size: 0.59rem;
      padding-bottom: 14px;
    }
    .hero:after {
      background: linear-gradient(0deg, transparent 55%, #21102d22);
    }
  }
  @media (max-width: 600px) {
    .hero-art {
      aspect-ratio: 3/2;
      width: 100%;
      height: auto;
      object-fit: contain;
    }
    .game-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px 10px;
    }
    game-catalogue[compact] .game-grid {
      grid-auto-columns: calc((100% - 20px) / 3);
      gap: 10px;
      margin: 0;
      padding: 4px 1px 16px;
    }
    .game-card {
      border-radius: 13px;
    }
    .poster-link:after {
      border-radius: 12px 12px 0 0;
    }
    .card-actions {
      grid-template-columns: 1fr;
      gap: 7px;
      padding: 9px 7px 12px;
    }
    .card-play,
    .card-preview {
      min-height: 40px;
      font-size: 0.74rem;
      padding: 8px;
      border-radius: 8px;
    }
    .card-badge {
      font-size: 0.48rem;
      padding: 4px 5px;
      bottom: 6px;
      left: 6px;
    }
  }
  @media (max-width: 359px) {
    .game-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    game-catalogue[compact] .game-grid {
      grid-auto-columns: calc((100% - 15px) / 2.6);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .game-card:hover,
    .card-play:active,
    .card-preview:active {
      transform: none;
    }
  }
}
@layer components {
  .game-card {
    container-type: inline-size;
  }
  @container (max-width: 160px) {
    .card-actions {
      grid-template-columns: 1fr;
    }
  }
}
