/* WILDS: the website (front page, world select, how it works), the login hall, the character maker and the money sheets.
   The 2004-2007 site rebuilt: black page, a column of dark cracked flagstone between stone pillars, boxes with a light rule
   and their title set into it, green links. The live world shows behind it all. */
@font-face { font-family: 'Wilds'; src: url('/fonts/wilds-plain.woff') format('woff'); font-display: block; }
@font-face { font-family: 'Wilds Bold'; src: url('/fonts/wilds-bold.woff') format('woff'); font-display: block; }
@font-face { font-family: 'Cinzel'; src: url('/fonts/cinzel.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
:root {
  --ink: #f0e6cf; --ink2: #cbbd9b; --ink3: #8f8269; --link: #a6d46a; --link2: #d8f29a; --gold: #ffcf3f; --orange: #ff981f; --yellow: #ffff00;
  --stone: #3e3529; --stone2: #2c251c; --rule: #9c8f74; --rule2: #5d5241; --red: #e8341c; --green: #3fd65a;
  --px: 'Wilds', 'Verdana', sans-serif; --pxb: 'Wilds Bold', 'Verdana', sans-serif; --serif: 'Cinzel', 'Georgia', serif; --sans: Verdana, Tahoma, 'DejaVu Sans', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--ink); font: 12px/1.5 var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--link); text-decoration: none; } a:hover { color: var(--link2); text-decoration: underline; }
.is-hidden { display: none !important; }
::selection { background: #6b5a2a; color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#world { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
#over { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1; }
#veil { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 60% 75% at 50% 45%, rgba(0, 0, 0, .25), rgba(0, 0, 0, .82) 70%, #000); transition: opacity .6s; }
body.s-game #veil { opacity: 0; } body.s-login #veil { background: radial-gradient(ellipse 55% 70% at 50% 52%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .9)); }
body:not(.s-site) .site, body:not(.s-login) .login, body:not(.s-maker) .maker, body:not(.s-game) .game { display: none; }
body.s-photo #veil { opacity: 0; }

/* ---------------------------------------------------------------- the website */
/* The front page is the live world: the nav and the hero sit on Kelwick at golden hour, the sections below are dark flagstone
   bands with the era's gold, pixel type and stone frames. */
.site { position: fixed; inset: 0; z-index: 3; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #5d5241 #0b0907; font: 15px/1.6 var(--sans); }
body.s-site #veil { background: radial-gradient(ellipse 95% 85% at 50% 38%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .5)); }
.nav { position: sticky; top: 0; z-index: 5; height: 64px; display: flex; align-items: center; gap: 22px; padding: 0 max(18px, calc((100vw - 1240px) / 2)); background: linear-gradient(rgba(8, 6, 4, .7), rgba(8, 6, 4, 0)); transition: background .25s var(--ease), box-shadow .25s; }
.site.is-scrolled .nav { background: rgba(13, 10, 7, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(156, 143, 116, .25), 0 8px 24px rgba(0, 0, 0, .45); }
.nav-logo img { height: 46px; width: auto; display: block; filter: drop-shadow(0 2px 4px #000); }
.nav-links { display: flex; gap: 24px; margin-left: 6px; }
.nav-links a { font: 15px var(--pxb); color: #eadfc4; text-shadow: 1px 1px 0 #000; letter-spacing: .02em; }
.nav-links a:hover { color: var(--gold); text-decoration: none; }
.nav-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 15px var(--px); color: #eadfc4; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
.nav-live b { font: 15px var(--pxb); color: var(--yellow); font-variant-numeric: tabular-nums; font-weight: normal; min-width: 2ch; text-align: right; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5af06a; box-shadow: 0 0 0 0 rgba(90, 240, 106, .6); animation: live 1.8s ease-out infinite; }
@keyframes live { to { box-shadow: 0 0 0 9px rgba(90, 240, 106, 0); } }
.nav-x { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 10px; border: 1px solid rgba(240, 180, 64, .45); border-radius: 4px; color: #f0d48a; font: 700 19px/1 var(--sans); text-decoration: none; background: rgba(0, 0, 0, .35); transition: color .15s, border-color .15s; }
.nav-x:hover { color: #fff; border-color: #f0b440; }
.nav-play { height: 40px; padding: 0 20px; font: 900 15px/1 var(--serif); letter-spacing: .05em; color: #2a1a04; background: linear-gradient(#ffe39a, #f0b440 52%, #c8801a); border: 1px solid #3a2405; border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(90, 50, 0, .35), 0 2px 0 #1c1203, 0 6px 16px rgba(0, 0, 0, .45); white-space: nowrap; }
.nav-play:hover { filter: brightness(1.08); } .nav-play:active { transform: translateY(1px); }

/* the hero */
.hero { position: relative; min-height: 100vh; margin-top: -64px; padding: 64px 18px 0; display: grid; grid-template-rows: 1fr auto; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36vh; background: linear-gradient(rgba(13, 10, 7, 0), rgba(13, 10, 7, .82) 68%, #0d0a07); pointer-events: none; }
.hero-in { position: relative; z-index: 1; align-self: center; display: grid; justify-items: center; text-align: center; gap: 12px; padding: 3vh 0 2vh; }
.logo { display: block; position: relative; width: min(540px, 84vw); aspect-ratio: 2.07; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .75)) drop-shadow(0 0 46px rgba(255, 190, 90, .16)); }
.logo img.is-missing { display: none; }
.logo-text { display: none; }
.logo img.is-missing + .logo-text { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; font: 900 88px/1 var(--serif); letter-spacing: .04em;
  background: linear-gradient(#fff6c8, #ffd54a 45%, #c27b12 55%, #ffe27a); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 2px #3a2405; filter: drop-shadow(0 4px 0 #1c1203) drop-shadow(0 8px 14px #000); }
.hero-h { margin: 4px 0 0; font: 900 clamp(30px, 4.3vw, 58px)/1.04 var(--serif); letter-spacing: .01em; color: #fff4dc; text-shadow: 0 2px 0 #1a1003, 0 6px 26px rgba(0, 0, 0, .85); }
.hero-h em { font-style: normal; color: var(--gold); text-shadow: 0 2px 0 #3a2405, 0 0 30px rgba(255, 170, 40, .35), 0 6px 26px rgba(0, 0, 0, .85); }
.hero-s { margin: 0; max-width: 58ch; font: 17px/1.6 var(--sans); color: #f2e7cc; text-shadow: 0 1px 2px #000, 0 0 22px rgba(0, 0, 0, .9); }
.hero-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 270px)); gap: 14px; margin-top: 10px; }
.playing { margin: 4px 0 0; font: 15px var(--pxb); color: #fff; text-shadow: 1px 1px 0 #000, 0 0 10px #000; }
.playing b { color: var(--yellow); font-weight: normal; font-variant-numeric: tabular-nums; }
.hero-strip { position: relative; z-index: 2; width: min(1180px, 100%); margin: 0 auto 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 1px; background: rgba(156, 143, 116, .32); border: 1px solid rgba(156, 143, 116, .48); box-shadow: 0 14px 44px rgba(0, 0, 0, .65); }
.hs { display: grid; gap: 2px; align-content: start; padding: 14px 18px 13px; background: rgba(16, 12, 8, .88); min-width: 0; }
.hs-l { font: 13px var(--px); color: var(--ink3); text-transform: uppercase; letter-spacing: .08em; }
.hs-v { font: 30px/1.1 var(--pxb); color: var(--orange); text-shadow: 0 2px 0 #000; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: normal; overflow: hidden; text-overflow: ellipsis; }
.hs-s { font: 14px var(--px); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-ca .ca-row { margin-top: 8px; }
.hero-down { position: absolute; z-index: 2; left: 50%; bottom: 8px; width: 30px; height: 18px; margin-left: -15px; opacity: .65; }
.hero-down i { position: absolute; left: 7px; top: 0; width: 14px; height: 14px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px) rotate(45deg); } }
.big-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 74px; padding: 10px 16px;
  border: 2px solid #1a140d; background: url('/img/tex/frame.png') center / 128px, #3e3529; box-shadow: inset 0 0 0 1px #7d6d52, inset 0 2px 0 1px #a08b66, inset 0 -3px 0 #1c160f, 0 3px 0 #000, 0 10px 26px rgba(0, 0, 0, .5);
  color: var(--gold); transition: transform .12s var(--ease), filter .12s; }
.big-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(255, 220, 140, .14), transparent 45%, rgba(0, 0, 0, .25)); pointer-events: none; }
.big-btn:hover { filter: brightness(1.18); } .big-btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px #7d6d52, inset 0 2px 0 1px #a08b66, 0 1px 0 #000; }
.bb-t { font: 900 22px/1.1 var(--serif); letter-spacing: .03em; color: var(--gold); text-shadow: 0 2px 0 #241602, 0 0 12px rgba(255, 180, 40, .25); }
.bb-s { font: 14px var(--px); color: #e8dcc0; text-shadow: 0 1px 0 #000; }
.big-new .bb-t { color: #9ff07a; text-shadow: 0 2px 0 #0e2405, 0 0 12px rgba(120, 255, 80, .18); }
.big-btn.big-sm { min-height: 50px; } .big-btn.big-sm .bb-t { font-size: 18px; }
.ca-row { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.ca-lab { font: 15px var(--pxb); color: var(--yellow); flex: none; }
.ca-addr { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 9px; border: 1px solid var(--rule2); background: rgba(0, 0, 0, .5); font: 14px var(--px); color: var(--ink2); max-width: 100%; }
.ca-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ca-addr:not([disabled]):hover { border-color: var(--rule); color: #fff; }
.ca-copy { font-style: normal; color: var(--link); } .ca-link { font: 14px var(--px); }

/* sections */
.sect { position: relative; padding: 72px 18px; background: linear-gradient(rgba(12, 9, 6, .62), rgba(12, 9, 6, .62)), url('/img/tex/site-dark.png') 0 0 / 256px, #110d09; }
.sect::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 50% 35%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6)); pointer-events: none; }
#trip { background: linear-gradient(#0d0a07, rgba(12, 9, 6, .62) 140px), url('/img/tex/site-dark.png') 0 0 / 256px, #110d09; }
.sect + .sect { box-shadow: inset 0 1px 0 rgba(156, 143, 116, .16); }
.sect-in { position: relative; width: min(1180px, 100%); margin: 0 auto; }
.sect-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 20px; padding-bottom: 14px; margin-bottom: 28px; border-bottom: 1px solid rgba(156, 143, 116, .32); }
.eyebrow { grid-column: 1 / -1; font: 14px var(--pxb); color: var(--orange); letter-spacing: .07em; text-transform: uppercase; }
.sect-h h2 { margin: 0; font: 900 clamp(24px, 2.8vw, 36px)/1.12 var(--serif); color: #fff1d0; letter-spacing: .01em; text-shadow: 0 2px 0 #000; }
.sect-more { font: 15px var(--px); color: var(--link); white-space: nowrap; }
span.sect-more { color: var(--ink3); }
.trip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step figure { position: relative; margin: 0 0 14px; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid #000; box-shadow: 0 0 0 1px rgba(156, 143, 116, .55), 0 12px 28px rgba(0, 0, 0, .55); background: #1a1510; }
.step img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease), filter .3s; filter: saturate(.94) contrast(1.02); }
.step:hover img { transform: scale(1.045); filter: saturate(1.06) contrast(1.04); }
.step figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .35), transparent 30%); pointer-events: none; }
.step-n { position: absolute; z-index: 1; left: 10px; top: 7px; font: 22px var(--pxb); color: var(--yellow); text-shadow: 1px 1px 0 #000, 0 0 10px #000; font-weight: normal; }
.step h3 { margin: 0 0 6px; font: 900 18px/1.25 var(--serif); color: var(--gold); }
.step p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.pot-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; }
.pot-card { padding: 22px 24px; background: rgba(8, 6, 4, .55); border: 1px solid rgba(156, 143, 116, .42); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), 0 12px 30px rgba(0, 0, 0, .35); }
.pot-lead { margin: 0 0 14px; color: var(--ink); max-width: 66ch; }
.pot-fine { margin: 14px 0 0; font-size: 13.5px; color: var(--ink3); }
.pot-rules { display: grid; gap: 12px; align-content: start; }
.rule { padding: 14px 16px; background: rgba(8, 6, 4, .5); border-left: 3px solid var(--orange); box-shadow: inset 0 0 0 1px rgba(156, 143, 116, .24); }
.rule b { font: 16px var(--pxb); color: var(--yellow); font-weight: normal; } .rule p { margin: 4px 0 0; color: var(--ink2); font-size: 14px; }
.pay-table { width: 100%; border-collapse: collapse; font: 16px var(--px); }
.pay-table th { text-align: left; color: var(--yellow); font-family: var(--pxb); font-weight: normal; padding: 6px 10px; border-bottom: 1px solid var(--rule2); }
.pay-table td { padding: 7px 10px; border-bottom: 1px solid rgba(93, 82, 65, .45); color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-table td:last-child { color: #5af06a; font-family: var(--pxb); }
.pay-table tr:first-child td { color: #fff; } .pay-table tr:first-child td:last-child { color: #5af06a; }
.live-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; }
.tape { min-height: 120px; max-height: 420px; overflow: hidden; border: 1px solid rgba(156, 143, 116, .42); background: rgba(8, 6, 4, .55); display: grid; align-content: start; }
.tape-head, .tape-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 110px 120px 90px; gap: 12px; align-items: center; padding: 9px 16px; }
.tape-head { font: 13px var(--px); color: var(--ink3); text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid rgba(156, 143, 116, .32); }
.tape-row { border-bottom: 1px solid rgba(93, 82, 65, .32); font: 16px var(--px); color: var(--ink); animation: rowIn .6s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); background: rgba(255, 207, 63, .16); } }
.tape-row i { width: 18px; height: 18px; background: var(--ic-skull) center / contain no-repeat; filter: drop-shadow(1px 1px 0 #000); }
.tr-n { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tr-gp { color: var(--yellow); text-align: right; font-variant-numeric: tabular-nums; }
.tr-sol { color: #5af06a; text-align: right; font-family: var(--pxb); font-variant-numeric: tabular-nums; } .tr-t { color: var(--ink3); text-align: right; font-size: 14px; }
.tape-empty { margin: 0; padding: 30px 24px 30px 70px; color: var(--ink2); font: 16px var(--px); position: relative; }
.tape-empty::before { content: ''; position: absolute; left: 24px; top: 50%; width: 30px; height: 30px; margin-top: -15px; background: var(--ic-skull) center / contain no-repeat; opacity: .8; filter: drop-shadow(1px 1px 0 #000); }
.tape-empty a { color: var(--link); }
.worlds-box { padding: 18px; border: 1px solid rgba(156, 143, 116, .42); background: rgba(8, 6, 4, .55); display: grid; gap: 12px; align-content: start; }
.worlds-box h3 { margin: 0; font: 900 19px var(--serif); color: var(--gold); }
.wl-mini { display: grid; gap: 4px; }
.wlm { display: grid; grid-template-columns: 76px minmax(0, 1fr) 36px; gap: 10px; align-items: center; padding: 6px 8px; font: 16px var(--px); color: var(--ink); cursor: pointer; border: 1px solid transparent; }
.wlm:hover { background: rgba(255, 207, 63, .07); border-color: rgba(255, 207, 63, .25); }
.wlm.is-best b { color: #9ff07a; } .wlm span { text-align: right; color: var(--yellow); font-variant-numeric: tabular-nums; }
.wlm i { height: 8px; background: #120e0a; border: 1px solid #4d4232; position: relative; overflow: hidden; } .wlm i b { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#58d05c, #2e8a32); }
.skills { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.skt { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px; background: rgba(8, 6, 4, .5); border: 1px solid rgba(156, 143, 116, .28); transition: border-color .15s, transform .15s var(--ease); }
.skt:hover { border-color: rgba(255, 207, 63, .6); transform: translateY(-2px); }
.skt i { width: 38px; height: 38px; background: var(--ic) center / contain no-repeat; filter: drop-shadow(1px 1px 0 #000); }
.skt b { display: block; font: 15px var(--pxb); color: #fff; font-weight: normal; line-height: 1.2; } .skt span { display: block; font: 13px var(--px); color: var(--ink3); line-height: 1.25; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news { display: grid; gap: 12px; align-content: start; }
.news-pic { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #000; box-shadow: 0 0 0 1px rgba(156, 143, 116, .5), 0 10px 26px rgba(0, 0, 0, .5); background: #1a1510; display: block; }
.news time { font: 14px var(--px); color: var(--ink3); }
.news h3 { margin: 2px 0 6px; font: 900 18px/1.25 var(--serif); color: var(--gold); }
.news p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; align-items: start; }
.faq details { border: 1px solid rgba(156, 143, 116, .32); background: rgba(8, 6, 4, .5); padding: 0 16px; transition: border-color .15s; }
.faq details[open] { border-color: rgba(255, 207, 63, .45); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font: 16px var(--pxb); color: #fff; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--orange); font: 18px/1 var(--pxb); } .faq details[open] summary::after { content: '–'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 14px; color: var(--ink2); font-size: 14.5px; }
.site-page-sub { padding-top: 64px; min-height: calc(100vh - 160px); background: #0d0a07; }
.site-page-sub .sect { min-height: calc(100vh - 220px); }
.ws-box { padding: 20px 22px; border: 1px solid rgba(156, 143, 116, .42); background: rgba(8, 6, 4, .55); }
.ws-h { margin: 6px 0 10px; font: 15px var(--pxb); color: var(--yellow); }
.ws-quick { margin-bottom: 18px; } .ws-quick .big-btn { width: 100%; max-width: 520px; }
.ws-table { width: 100%; border-collapse: collapse; font: 16px var(--px); }
.ws-table th { text-align: left; padding: 7px 10px; color: var(--yellow); font-weight: normal; font-family: var(--pxb); border-bottom: 1px solid var(--rule2); cursor: pointer; user-select: none; white-space: nowrap; }
.ws-table th .srt::after { content: '▲▼'; font-size: 9px; letter-spacing: -1px; color: #c8a040; margin-left: 4px; }
.ws-table td { padding: 7px 10px; border-bottom: 1px solid rgba(93, 82, 65, .45); white-space: nowrap; }
.ws-table tbody tr { cursor: pointer; transition: background .12s; }
.ws-table tbody tr:hover { background: rgba(255, 207, 63, .08); }
.ws-table tr.is-best td { color: #9ff07a; } .ws-table tr.is-best td:first-child::after { content: ' ★ best'; color: var(--gold); font-family: var(--px); }
.ws-table tr.is-mem { cursor: default; opacity: .38; } .ws-table tr.is-mem:hover { background: none; }
.ws-pop { display: inline-grid; grid-template-columns: 90px auto; gap: 8px; align-items: center; }
.ws-pop i { display: block; height: 7px; background: #120e0a; border: 1px solid #4d4232; position: relative; overflow: hidden; }
.ws-pop i b { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#58d05c, #2e8a32); }
.flag { display: inline-block; width: 18px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 1px solid #000; background: linear-gradient(#273f8f, #273f8f); position: relative; }
.flag::after { content: ''; position: absolute; inset: 2px 5px; border-radius: 50%; border: 1px dotted #ffd84a; }
.star { color: #d8b040; }
.man-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.man-grid > div { padding: 16px 18px; background: rgba(8, 6, 4, .5); border: 1px solid rgba(156, 143, 116, .3); }
.man-grid h3 { margin: 0 0 6px; font: 900 17px var(--serif); color: var(--gold); }
.man-grid p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.site-foot { position: relative; padding: 44px 18px 34px; background: #0a0806; box-shadow: inset 0 1px 0 rgba(156, 143, 116, .22); }
.sf-in { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 28px; align-items: center; }
.sf-logo { height: 52px; width: auto; display: block; }
.sf-line { margin: 0; color: var(--ink2); font-size: 14px; max-width: 62ch; }
.sf-links { display: flex; gap: 18px; font: 15px var(--px); flex-wrap: wrap; }
.sf-fine { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(156, 143, 116, .16); color: var(--ink3); font: 13px var(--px); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .site { scroll-behavior: auto; } .live-dot, .hero-down i { animation: none; } }
@media (max-width: 1080px) { .trip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .skills { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hero-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hs-ca { grid-column: 1 / -1; } .nav-links { gap: 16px; } .man-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .nav { gap: 12px; } .nav-links { display: none; } .nav-logo img { height: 38px; } .nav-play { height: 36px; padding: 0 14px; }
  .hero { min-height: 100svh; } .hero-cta { grid-template-columns: 1fr; width: min(340px, 100%); } .hero-s { font-size: 15.5px; }
  .hero-strip { grid-template-columns: 1fr 1fr; margin-bottom: 18px; } .hs { padding: 11px 13px; } .hs-v { font-size: 23px; }
  .pot-grid, .live-grid, .news-grid, .faq, .trip, .man-grid { grid-template-columns: minmax(0, 1fr); } .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sect { padding: 50px 14px; } .sect-h { grid-template-columns: minmax(0, 1fr); } .sect-more { white-space: normal; }
  .tape-head, .tape-row { grid-template-columns: 22px minmax(0, 1fr) 76px 84px; gap: 8px; padding: 9px 12px; } .tape-head span:last-child, .tr-t { display: none; }
  .sf-in { grid-template-columns: minmax(0, 1fr); } .ws-table th:nth-child(3), .ws-table td:nth-child(3) { display: none; } .ws-pop { grid-template-columns: 60px auto; }
}
/* ---------------------------------------------------------------- the login hall */
.login { position: fixed; inset: 0; z-index: 3; display: grid; grid-template-rows: auto auto 1fr; justify-items: center; padding-top: max(3vh, 12px); }
.lg-top { position: relative; display: grid; grid-template-columns: 110px auto 110px; align-items: center; gap: 8px; height: min(30vh, 220px); }
.lg-logo { height: min(26vh, 190px); width: auto; max-width: 52vw; filter: drop-shadow(0 6px 14px #000); }
.lg-logo.is-missing { display: none; } .lg-logo.is-missing + .lg-logo-text { display: block; font-size: min(13vh, 96px); }
.flame { width: 110px; height: 165px; image-rendering: pixelated; filter: drop-shadow(0 0 22px rgba(255, 120, 20, .6)); }
.lg-box { width: min(388px, 92vw); margin-top: 8px; padding: 18px 20px 16px; background: url('/img/tex/frame.png') center / 128px, #3e3529;
  border: 2px solid #000; box-shadow: inset 0 0 0 1px #8c7b5c, inset 0 0 0 3px #2a2219, inset 0 0 0 4px #6b5b42, 0 14px 40px rgba(0, 0, 0, .85); text-align: center; }
.lg-pane { display: grid; gap: 10px; justify-items: center; }
.lg-yellow { margin: 0 0 4px; font: 16px/1.25 var(--pxb); color: var(--yellow); text-shadow: 1px 1px 0 #000; }
.lg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.lg-btn { min-height: 38px; padding: 6px 10px; font: 16px var(--pxb); color: #fff; text-shadow: 1px 1px 0 #000; background: linear-gradient(#5a4c39, #3a3024); border: 2px solid #000; box-shadow: inset 0 0 0 1px #8a7656, inset 0 2px 0 1px rgba(255, 230, 170, .12); }
.lg-btn:hover { filter: brightness(1.2); color: var(--yellow); } .lg-btn:active { transform: translateY(1px); }
.lg-link { background: none; border: 0; padding: 2px 4px; font: 15px var(--px); color: #9ff07a; text-shadow: 1px 1px 0 #000; }
.lg-link:hover { color: #fff; text-decoration: underline; }
.lg-f { display: grid; grid-template-columns: 88px 1fr; align-items: center; width: 100%; font: 16px var(--pxb); color: #fff; text-shadow: 1px 1px 0 #000; text-align: right; gap: 8px; }
.lg-f input { width: 100%; height: 26px; padding: 0 6px; font: 16px var(--px); color: #fff; background: rgba(0, 0, 0, .45); border: 1px solid #000; box-shadow: inset 0 0 0 1px #5d5241; caret-color: var(--yellow); }
.lg-f input:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--gold); }
.lg-bar { width: 100%; height: 14px; border: 1px solid #000; background: #1b140d; box-shadow: inset 0 0 0 1px #6b5b42; }
.lg-bar i { display: block; height: 100%; width: 0; background: linear-gradient(#e2301c, #8c1508); transition: width .3s var(--ease); }
.lg-world, .lg-music { position: fixed; bottom: 14px; background: url('/img/tex/frame.png') center / 128px, #3e3529; border: 2px solid #000; box-shadow: inset 0 0 0 1px #8c7b5c; color: #fff; padding: 6px 12px; text-shadow: 1px 1px 0 #000; }
.lg-world { left: 14px; display: grid; text-align: left; font: 13px var(--px); } .lg-world b { font: 16px var(--pxb); color: var(--yellow); }
.lg-music { right: 14px; width: 46px; height: 46px; display: grid; place-items: center; font: 22px var(--pxb); }
.lg-music::before { content: '♪'; } .lg-music.is-off::after { content: ''; position: absolute; width: 30px; height: 3px; background: var(--red); transform: rotate(-40deg); }
.lg-world:hover, .lg-music:hover { filter: brightness(1.2); }

/* ---------------------------------------------------------------- the character maker */
.maker { position: fixed; inset: 0; z-index: 3; display: grid; place-items: center; }
.mk-frame { width: min(820px, 96vw); padding: 14px 18px 18px; background: url('/img/tex/frame.png') center / 128px, #3e3529; border: 2px solid #000;
  box-shadow: inset 0 0 0 1px #8c7b5c, inset 0 0 0 3px #2a2219, inset 0 0 0 4px #6b5b42, 0 20px 60px rgba(0, 0, 0, .9); display: grid; gap: 10px; }
.mk-title { margin: 0; text-align: center; font: 20px var(--pxb); color: var(--orange); text-shadow: 1px 1px 0 #000; }
.mk-cols { display: grid; grid-template-columns: 210px 1fr 210px; gap: 12px; align-items: stretch; }
.mk-side { display: grid; gap: 6px; align-content: start; padding: 8px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px #2a2219, inset 0 0 0 2px #5d5241; }
.mk-h { font: 15px var(--pxb); color: var(--orange); text-align: center; margin: 2px 0 2px; text-shadow: 1px 1px 0 #000; }
.mk-row { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; gap: 4px; font: 15px var(--px); color: var(--yellow); text-align: center; text-shadow: 1px 1px 0 #000; }
.mk-arrow { height: 26px; border: 1px solid #000; background: linear-gradient(#6a593f, #3d3224); box-shadow: inset 0 0 0 1px #9b8661; color: #fff; font: 15px var(--pxb); text-shadow: 1px 1px 0 #000; }
.mk-arrow:hover { filter: brightness(1.25); } .mk-arrow:active { transform: translateY(1px); }
.mk-sw { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; border: 1px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.mk-mid { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 8px; background: radial-gradient(ellipse 60% 45% at 50% 88%, rgba(0, 0, 0, .65), transparent 70%), radial-gradient(ellipse 70% 80% at 50% 40%, #4a3a26, #1a130c 75%); box-shadow: inset 0 0 0 1px #2a2219, inset 0 0 0 2px #5d5241, inset 0 0 50px rgba(0, 0, 0, .7); padding: 2px; min-height: 420px; }
#mk-view { width: 100%; height: 100%; display: block; min-height: 370px; }
.mk-gender { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 8px 8px; }
.mk-g { height: 32px; border: 1px solid #000; background: linear-gradient(#5a4c39, #3a3024); box-shadow: inset 0 0 0 1px #8a7656; color: #fff; font: 16px var(--pxb); text-shadow: 1px 1px 0 #000; }
.mk-g.is-on { color: var(--yellow); box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 12px rgba(255, 200, 60, .25); }
.mk-accept { justify-self: center; min-width: 220px; height: 44px; border: 2px solid #000; background: linear-gradient(#3e8a2c, #1f4d15); box-shadow: inset 0 0 0 1px #8fe070, inset 0 2px 0 1px rgba(255, 255, 255, .15); color: #fff; font: 20px var(--pxb); text-shadow: 1px 1px 0 #000; }
.mk-accept:hover { filter: brightness(1.15); } .mk-accept:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- sheets */
.sheet { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; background: rgba(0, 0, 0, .55); }
.sheet.is-open { display: grid; animation: shIn .25s var(--ease); }
@keyframes shIn { from { opacity: 0; } }
.sh-card { width: min(520px, 94vw); position: relative; padding: 26px 30px 22px; color: #2b1d0e; background: url('/img/tex/parchment.png') center / 256px, #d6c7a0;
  border: 2px solid #3a2a14; box-shadow: inset 0 0 0 2px #b9a477, inset 0 0 40px rgba(110, 80, 30, .35), 0 24px 60px rgba(0, 0, 0, .8); animation: shCard .35s var(--ease); }
@keyframes shCard { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.sh-card::before, .sh-card::after { content: ''; position: absolute; left: -10px; right: -10px; height: 16px; background: linear-gradient(#8a6a3a, #5a4020); border: 2px solid #2b1d0e; border-radius: 8px; }
.sh-card::before { top: -12px; } .sh-card::after { bottom: -12px; }
.sh-t { margin: 0 0 4px; text-align: center; font: 24px var(--pxb); color: #6b0000; }
.sh-t.is-good { color: #0b5c12; }
.sh-amt { text-align: center; font: 40px/1.1 var(--pxb); color: #2b1d0e; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.sh-sub { text-align: center; font: 16px var(--px); color: #4a3519; margin: 0 0 12px; }
.sh-rows { display: grid; gap: 1px; background: rgba(58, 42, 20, .35); border: 1px solid rgba(58, 42, 20, .45); margin: 6px 0 12px; }
.sh-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 6px 10px; background: rgba(240, 228, 196, .55); font: 15px var(--px); }
.sh-row b { font-family: var(--pxb); font-weight: normal; color: #4a3519; } .sh-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1c1206; }
.sh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 2px 0 14px; }
.sh-step { padding: 6px 4px; text-align: center; font: 14px var(--px); color: #6b5838; border: 1px solid rgba(58, 42, 20, .4); background: rgba(240, 228, 196, .35); }
.sh-step.is-on { color: #fff; background: #2f6b1f; border-color: #173a0d; } .sh-step.is-now { color: #fff; background: #8a6a1a; border-color: #4a3608; animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { filter: brightness(1.25); } }
.sh-note { margin: 0 0 12px; font: 15px var(--px); color: #4a3519; text-align: center; }
.sh-addr { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 12px; }
.sh-addr input { height: 32px; padding: 0 8px; border: 1px solid #3a2a14; background: rgba(255, 250, 235, .75); font: 15px var(--px); color: #1c1206; min-width: 0; }
.sh-btns { display: flex; gap: 10px; justify-content: center; }
.sh-btn { min-width: 150px; height: 38px; padding: 0 14px; border: 2px solid #2b1d0e; background: linear-gradient(#6a593f, #3d3224); box-shadow: inset 0 0 0 1px #b39b6e; color: #fff; font: 17px var(--pxb); text-shadow: 1px 1px 0 #000; }
.sh-btn.is-main { background: linear-gradient(#3e8a2c, #1f4d15); box-shadow: inset 0 0 0 1px #8fe070; }
.sh-btn:hover { filter: brightness(1.15); }
.sh-link { color: #0b4c8a; } .sh-link:hover { color: #052c50; }
@media (max-width: 760px) {
  .mk-cols { grid-template-columns: 1fr; } .mk-mid { min-height: 260px; order: -1; } #mk-view { min-height: 220px; } .mk-side { grid-template-columns: 1fr 1fr; }
  .lg-top { grid-template-columns: 54px auto 54px; height: 22vh; } .flame { width: 54px; height: 80px; }
}
