:root {
  --bg:#101315; --surface:#171c1e; --raised:#202527; --text:#efeadf;
  --muted:#bebbb1; --line:#373b3b; --accent:#e2c596; --mint:#e6ca92;
  --font:"Segoe UI",Arial,sans-serif;
}
html { scroll-padding-top:20px }
.wrap { width:min(1264px,calc(100% - clamp(40px,12vw,176px))) }
.section { padding-block:clamp(48px,6vw,86px) }
h1 { font-weight:710; line-height:1.02; letter-spacing:-.055em }
h2 { font-size:clamp(32px,4vw,54px); letter-spacing:-.05em }
h3 { letter-spacing:-.025em }
.site-header { min-height:70px; border-color:#353a3a }
.site-header .brand { gap:0;font-size:32px;letter-spacing:-.045em }
.site-header .brand span,.site-footer .footer-brand span { color:var(--accent);margin-left:.035em }
.site-header .brand-caption { display:none }
.site-header nav { gap:clamp(14px,2.4vw,36px);font-size:14px }
.site-header nav a[aria-current="page"] { color:var(--accent);text-decoration:underline;text-underline-offset:6px }
.site-header .header-play { padding:0;background:none;border:0;border-radius:0;box-shadow:none;font-weight:650 }
.site-header .menu-button { border-radius:5px; padding:6px 12px }
.btn,.btn.primary,.btn.hot { min-height:48px;padding:0 19px;gap:10px;border-radius:5px;box-shadow:none }
.btn.primary,.btn.hot { background:#eee5d2;color:#22211e;border-color:transparent }
.btn.primary:hover,.btn.hot:hover { background:#fff2d9 }
.btn:disabled,.btn.primary:disabled,.btn.hot:disabled { color:#aaa397;background:#282827;border-color:#47443f;opacity:1 }
.text-link,.back-link,.inline-link { color:var(--text);border:0;text-decoration:underline;text-decoration-color:#a69575;text-underline-offset:5px }
.editorial-actions { display:flex;align-items:center;flex-wrap:wrap;gap:24px;margin-top:26px }
.site-footer { border-top:1px solid var(--line) }
.site-footer .footer-bottom { padding-block:26px;align-items:center;gap:16px;border:0 }
.site-footer .footer-bottom nav { gap:11px 22px }
.site-footer .footer-brand { color:var(--text);font-size:30px;letter-spacing:-.04em }
.site-footer .footer-top { padding-block:17px;gap:16px }
.site-footer .footer-top .footer-brand { font-size:30px }
.site-footer .footer-top p { font-size:14px;color:var(--muted) }
.site-hero { position:relative;isolation:isolate;background:#242b2d url('/static/rift-concept.jpg') center 52%/cover no-repeat }
.site-hero::before { position:absolute;inset:0;content:"";z-index:-1;background:linear-gradient(90deg,#0c0f11ef 0%,#101416cf 26%,#0d111545 59%,transparent 83%),linear-gradient(0deg,#101315e0,transparent 27%) }
.site-hero-inner { min-height:612px;display:flex;align-items:center;position:relative;padding-block:72px 84px }
.site-hero h1 { font-size:clamp(64px,7.25vw,108px);line-height:.99;letter-spacing:-.054em }
.site-hero .hero-copy { max-width:560px }
.site-hero .hero-copy p { max-width:421px;margin-top:23px;font-size:clamp(16px,1.4vw,19px);line-height:1.5;color:#e1e0d9 }
.hero-credit { position:absolute;right:0;bottom:20px;color:#ded5c7;font-size:11px }
.featured-modes h2 { margin-bottom:24px }
.feature-grid { display:grid;grid-template-columns:1.2fr 1fr;gap:18px }
.mode-tile { display:flex;align-items:flex-end;position:relative;isolation:isolate;min-height:240px;padding:28px;overflow:hidden;background-color:var(--surface);background-position:center;background-size:cover }
.mode-tile::before { position:absolute;inset:0;content:"";z-index:-1;background:linear-gradient(90deg,#121618 6%,#121618e8 35%,#12161835 100%),linear-gradient(0deg,#121618bf,transparent 65%) }
.mode-tile.rpg-tile { background-image:url('/static/hunter-expedition.jpg');background-position:65% 48% }
.mode-tile.games-tile { background-image:url('/static/game-night.jpg');background-position:76% 52% }
.mode-tile h3 { font-size:clamp(26px,3vw,39px) }
.mode-tile p { color:#e1ddd4;max-width:255px;font-size:15px;margin:10px 0 4px }
.dark-section,.first-day { background:var(--surface);border-color:var(--line) }
.world-layout { padding-block:clamp(48px,6vw,84px) }
.world-stories article { background:none;box-shadow:none;border-color:var(--line);border-radius:0 }
.world-stories .story-number { color:var(--accent);font-weight:550 }
.class-card,.class-focus { border-color:var(--line);border-radius:5px;box-shadow:none;background:var(--surface) }
.class-card.active { background:#29271f;border-color:#8c7854 }
.class-card strong,.class-card small { min-width:0 }
.class-card .class-index,.class-focus .focus-number { color:#bca57a }
.class-card .class-arrow,.class-focus .focus-number { display:none }
.class-focus { grid-template-columns:minmax(0,1fr) minmax(0,.82fr) }
.focus-paths b { background:#212524;border-color:var(--line);border-radius:4px }
.home-page .first-day { width:100%;padding-inline:max(clamp(20px,6vw,88px),calc((100% - 1264px)/2));background:#e6dfd0;color:#29251f }
.home-page .first-day p { color:#504b42 }
.home-page .first-day .inline-link { color:#342819;text-decoration-color:#674f2a }
.home-page .steps li { background:none;border:0;border-top:1px solid #a99f8d;border-radius:0;min-width:0 }
.home-page .steps li h3 { margin:8px 0 6px }
.faq-list details { background:transparent;border-color:var(--line);border-radius:0 }
.editorial-hero { display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(30px,7vw,100px);align-items:center;min-height:0;padding-block:clamp(42px,6vw,92px) 24px }
.editorial-hero h1,.class-page-hero h1,.page-heading h1,.not-found h1 { font-size:clamp(44px,6vw,83px);margin:0 0 18px }
.editorial-hero > div > p { max-width:380px;font-size:18px }
.editorial-hero-image { width:100%;height:auto;aspect-ratio:1.65;object-fit:cover;object-position:center 60%;border:0;border-radius:2px }
.game-directory .directory-heading { display:flex;justify-content:space-between;align-items:end;gap:12px 30px;margin-bottom:24px }
.game-directory .games-ledger { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;border:0 }
.game-directory .game-row { min-width:0;display:grid;border:0;background:var(--surface);padding:0 }
.game-directory .game-feature { grid-template-columns:minmax(0,.93fr) minmax(0,1fr);align-items:stretch;gap:0 }
.game-feature img { width:100%;height:100%;min-height:166px;aspect-ratio:1.35;object-fit:cover }
.game-feature div { min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:16px clamp(12px,2vw,25px) }
.game-directory .game-row h3 { font-size:23px;margin-bottom:5px }
.game-directory .game-row p { font-size:14px;line-height:1.45 }
.game-directory .game-row code { min-width:0;white-space:nowrap;max-width:100%;width:max-content;font-size:12px;padding:2px 7px;border:1px solid #554b39;border-radius:3px;background:#23231e;color:#e9d1a1;margin-top:9px }
.game-directory .game-other { display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-top:1px solid var(--line);background:none;padding:17px 0 }
.social-section { padding-block:48px }
.social-columns { gap:18px;margin-top:22px }
.social-columns article { background:none;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;padding:15px 0 }
.class-page-hero { min-height:0;padding-block:clamp(42px,7vw,86px);gap:clamp(24px,5vw,74px) }
.class-page-hero .class-role,.class-page-hero [id="class-role"] { margin:16px 0 9px;color:var(--accent);font-size:14px;letter-spacing:0;text-transform:none }
.class-page-hero .class-emblem { display:block;padding:0;overflow:hidden;min-height:0;aspect-ratio:1.5;background:var(--surface);border:0;border-radius:2px;box-shadow:none }
.class-page-hero + .class-path-section { padding-top:32px }
.class-emblem::before,.class-emblem::after { display:none }
.class-emblem img { width:100%;height:100%;object-fit:cover }
.class-emblem [hidden],.class-path-grid article > small,.class-path-grid article > span { display:none }
.class-path-grid article { min-height:0;background:var(--surface);border-color:var(--line);border-radius:5px;box-shadow:none;padding:22px }
.class-path-grid article h3 { margin:0 0 8px }
.itb-public-subpage .page-heading { padding-block:clamp(42px,6vw,83px) 32px }
.itb-public-subpage .page-heading p { max-width:580px;font-size:17px }
.contact-section .contact-link { grid-template-columns:minmax(105px,.65fr) minmax(0,1.2fr);background:none;border-color:var(--line);border-radius:0;overflow-wrap:anywhere }
.contact-section .contact-link:hover { background:var(--surface) }
.help-topics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,4vw,48px);padding-block:12px 52px }
.help-topics article { padding-top:16px;border-top:1px solid var(--line) }
.help-topics h2,.contact-section h2 { font-size:clamp(24px,3vw,34px);letter-spacing:-.03em;margin-bottom:12px }
.help-topics a,.receipt-bottom a { text-decoration:underline;text-underline-offset:4px;color:var(--text) }
.help-topics a:hover,.receipt-bottom a:hover { color:var(--accent) }
.checkout-aside .receipt-bottom { display:block }
.checkout-aside .receipt-bottom h3 { font-size:19px;margin:0 0 6px }
.checkout-aside .receipt-bottom p { margin:0 }
.checkout-aside .receipt-bottom p a { display:inline;min-height:0;padding:0;margin:0 }
.checkout .id-field > span { white-space:nowrap }
.checkout-form,.checkout-aside,.legal article,.payment-result { background:var(--surface);border-color:var(--line);border-radius:5px;box-shadow:none }
.checkout .id-field,.checkout input:not([type="checkbox"]),.checkout .amounts button { border-radius:5px;box-shadow:none }
.checkout .id-field,.checkout input:not([type="checkbox"]) { background:#111618;border-color:#54554d }
.checkout button,.checkout input:not([type="checkbox"]) { min-height:44px }
.checkout .amounts button.active,.checkout .amounts button[aria-pressed="true"] { background:#29271f;border-color:#8c7854;color:#f4dfb4 }
.checkout .step b { background:#272720;border-color:var(--line);color:var(--accent);border-radius:4px }
.legal-layout { padding-block:clamp(40px,6vw,78px) }
.legal,.legal-layout aside { min-width:0 }
.legal h1 { font-size:clamp(34px,5vw,70px);overflow-wrap:anywhere }
.legal article { max-width:74ch }
.legal article h2 { font-size:clamp(23px,2.5vw,34px) }
.legal-layout aside nav a[aria-current="page"] { text-decoration:underline;text-underline-offset:5px;color:var(--accent) }
.not-found { min-height:440px;padding-block:68px }
.not-found .error-code { display:block;color:var(--accent);font-size:14px;margin-bottom:12px }
.not-found .text-link { margin-inline-start:18px }
@media(max-width:820px) {
  .wrap { width:calc(100% - 40px) }
  .site-header { min-height:64px }
  .site-header nav { gap:10px }
  .site-header nav.open { background:#181c1e;border-color:var(--line);border-radius:5px;box-shadow:0 10px 30px #0006 }
  .site-header .header-play { margin-left:0 }
  .site-hero-inner { min-height:540px }
  .editorial-hero { gap:26px }
  .game-directory .game-feature { grid-template-columns:1fr }
  .game-feature img { height:auto;min-height:0;aspect-ratio:1.65 }
  .game-feature div { padding:14px }
}
@media(max-width:600px) {
  .site-hero { background-position:73% 48% }
  .site-hero::before { background:linear-gradient(0deg,#101315 1%,#0d1012f2 21%,#0d1012aa 52%,#0d101212 92%),linear-gradient(90deg,#10131528,transparent 85%) }
  .site-hero-inner { min-height:530px;align-items:flex-end;padding-block:124px 68px }
  .site-hero h1 { font-size:clamp(49px,13vw,74px) }
  .site-hero .hero-copy p { margin-top:16px }
  .hero-credit { bottom:12px }
  .editorial-actions { gap:18px;margin-top:18px }
  .feature-grid,.editorial-hero,.game-directory .games-ledger,.class-focus { grid-template-columns:1fr }
  .mode-tile { min-height:185px;padding:18px }
  .mode-tile p { max-width:200px }
  .game-directory .directory-heading { display:block }
  .game-directory .directory-heading p { margin-top:8px }
  .game-directory .game-feature { grid-template-columns:minmax(0,.85fr) minmax(0,1fr) }
  .game-feature img { height:100%;aspect-ratio:1.1 }
  .game-directory .game-row h3 { font-size:19px }
  .game-directory .game-feature p { font-size:13px }
  .game-directory .game-other { margin-top:-4px }
  .class-page-hero { padding-block:33px }
  .contact-section .contact-link { grid-template-columns:1fr;gap:3px }
  .help-topics { grid-template-columns:1fr;padding-bottom:34px }
  .legal-layout { grid-template-columns:minmax(0,1fr) }
  .site-footer .footer-bottom { display:grid;grid-template-columns:auto 1fr;gap:12px }
  .site-footer .footer-bottom nav { grid-row:2;grid-column:1/-1;display:flex;flex-wrap:wrap;flex-direction:row;gap:10px 18px }
  .site-footer .footer-bottom > span:last-child { justify-self:end }
}
@media(max-width:365px) {
  .editorial-actions { gap:13px }
  .game-directory .game-feature { grid-template-columns:1fr }
  .game-feature img { height:auto;aspect-ratio:1.68 }
  .game-directory .game-other { flex-wrap:wrap }
  .not-found .text-link { margin-inline-start:0;display:flex;width:max-content }
}
@media(prefers-reduced-motion:reduce) { html{scroll-behavior:auto} }
