/* LAND GRAB TV: a storybook village. Paper cards, ink lines, stamps. */
:root {
  --night: #1D2238; --night-2: #2B3A5C;
  --paper: #F3E9D2; --paper-2: #E9DBBE; --ink: #2A2420;
  --leaf: #5E8C4A; --leaf-2: #7FB069; --ochre: #D9A441; --brick: #B5462F; --water: #5FA3B8;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .14 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --wobble: 255px 14px 225px 16px / 16px 225px 14px 255px;
}
html { font-size: clamp(11px, 1.08vw, 26px); }
body { overflow: hidden; background: var(--night); }

/* ---------------- the village behind everything ---------------- */
#scenery { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--night); }
#scenery .art, #scenery .drawn { position: absolute; inset: -2%; background-size: cover; background-position: center; animation: drift 60s ease-in-out infinite alternate; }
#scenery .drawn svg { width: 100%; height: 100%; display: block; }
#scenery.has-art .drawn { display: none; }
#scenery .art { opacity: 0; transition: opacity 1.2s; }
#scenery.has-art .art { opacity: 1; }
#scenery .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,34,56,.55), rgba(29,34,56,.15) 22%, rgba(29,34,56,.15) 70%, rgba(29,34,56,.8)); transition: background 1s; }
#scenery.council .veil, #scenery.teashop .veil { background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(29,34,56,.55), rgba(29,34,56,.3) 70%), linear-gradient(180deg, rgba(29,34,56,.5), transparent 25%, transparent 70%, rgba(29,34,56,.85)); }
#scenery.dark .veil { background: linear-gradient(180deg, rgba(10,12,22,.2), transparent 40%, rgba(10,12,22,.75)); }
#scenery.title .veil { background: rgba(29,34,56,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.04) translate(-1%, -.6%); } }

/* ---------------- frame ---------------- */
#app { position: relative; z-index: 1; height: 100vh; display: grid; grid-template-rows: auto 1fr auto; padding: 1.1rem 1.6rem .8rem; gap: .5rem; }
#top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 2.6rem; }
.brand { font-family: var(--hand); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--paper); text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.brand small { display: block; font-family: var(--ui); font-weight: 600; font-size: .85rem; color: var(--ochre); margin-top: .2rem; }
.code { grid-column: 3; justify-self: end; text-align: right; line-height: 1.05; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.code b { font-size: 1.7rem; letter-spacing: .12em; color: var(--ochre); }
.code small { display: block; font-size: .8rem; color: var(--paper); opacity: .8; }
#mid { display: grid; grid-template-columns: 17rem 1fr 19rem; gap: 1.2rem; min-height: 0; }
body[data-phase="LOBBY"] #mid { grid-template-columns: 0 1fr 0; }
body[data-phase="INTRO"] #mid, body[data-phase="TUTORIAL"] #mid { grid-template-columns: 0 1fr 0; }
body[data-phase="ROLES"] #mid { grid-template-columns: 17rem 1fr 0; }
#stage { min-height: 0; display: grid; }
#board, #reg { display: flex; flex-direction: column; gap: .8rem; min-height: 0; }

/* paper cards with a hand-drawn edge */
.card { background: var(--paper) var(--grain); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--wobble); padding: .8rem 1rem; box-shadow: 3px 5px 0 rgba(42,36,32,.55), 0 14px 30px rgba(0,0,0,.35); }
.card h4 { font-family: var(--hand); font-weight: 700; font-size: 1.25rem; margin: 0 0 .4rem; display: flex; justify-content: space-between; align-items: baseline; }
.card h4 span { font-family: var(--ui); font-size: .95rem; color: #6B5D4F; }
.pw { font-size: .8rem; line-height: 1.35; color: #5D5045; margin: .45rem 0 0; }
.pw b { color: var(--brick); }
.slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; }
.track:first-child .slots { grid-template-columns: repeat(5, 1fr); }
.slot { aspect-ratio: 1; border: 2px dashed rgba(42,36,32,.45); border-radius: 30% 40% 35% 45%; display: grid; place-items: center; font-style: normal; font-size: 1.15rem; position: relative; }
.slot em { font-style: normal; font-size: .9rem; opacity: .75; }
.slot.g.on { background: #CFE3BF; border: 2px solid var(--leaf); animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.slot.r.on { background: #F0C6B8; border: 2px solid var(--brick); animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.trk { display: flex; gap: .5rem; }
.trk i { width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid var(--ink); }
.trk i.on { background: var(--brick); }
.track.small h4 { font-size: 1.05rem; }

.register { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.register ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; overflow: hidden; }
.register li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .1rem .4rem; padding-bottom: .45rem; border-bottom: 1.5px dashed rgba(42,36,32,.3); font-size: .82rem; }
.register li:first-child { animation: slidein .6s ease-out; }
.register .rn { grid-row: span 4; font-family: var(--hand); font-weight: 700; font-size: 1.1rem; color: #8A7B6A; }
.register .rwho { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; font-weight: 700; }
.register .rwho b { color: #8A7B6A; margin: 0 .1rem; }
.register .res { display: flex; gap: .3rem; flex-wrap: wrap; }
.tag { font-size: .72rem; padding: .05rem .45rem; border-radius: 6px; background: #E2D3B6; font-weight: 700; }
.tag.dark { background: var(--ink); color: var(--paper); }
.chip { font-size: .72rem; padding: .05rem .5rem; border-radius: 6px; font-weight: 800; color: #fff; }
.chip.g { background: var(--leaf); } .chip.r { background: var(--brick); }
.claims { display: flex; gap: .7rem; align-items: center; }
.claims span, .dots { display: inline-flex; gap: .15rem; }
.claims i, .dots i { width: .62rem; height: .62rem; border-radius: 50%; border: 1.5px solid var(--ink); font-style: normal; }
.claims i.g, .dots i.g { background: var(--leaf); } .claims i.r, .dots i.r { background: var(--brick); }
.claims i.nc, .dots i.nc { border: none; width: auto; height: auto; font-weight: 800; color: #8A7B6A; }
.clash { font-size: .7rem; color: #fff; background: var(--brick); padding: 0 .35rem; border-radius: 4px; transform: rotate(-4deg); }
.pwr { font-size: .78rem; font-weight: 700; color: #5D5045; }
.key { font-size: .7rem; color: #8A7B6A; margin: auto 0 0; padding-top: .4rem; }

/* players along the bottom */
.seats { display: flex; justify-content: center; gap: .9rem; flex-wrap: wrap; }
.seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 5.2rem; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
.seat b { font-size: .95rem; }
.seat .bust { box-shadow: 0 0 0 3px var(--paper), 0 6px 14px rgba(0,0,0,.5); }
.seat.out { opacity: .45; filter: grayscale(1); }
.seat.off b::after { content: ' (away)'; font-weight: 500; font-size: .75rem; }
.b { font-style: normal; font-size: .7rem; font-weight: 800; padding: .08rem .5rem; border-radius: 99px; text-shadow: none; white-space: nowrap; }
.b.pres { background: var(--ochre); color: var(--ink); }
.b.sec { background: var(--water); color: #fff; }
.b.lim { background: rgba(42,36,32,.75); color: var(--paper); }
.b.out { background: var(--ink); color: var(--paper); }

/* ---------------- the stage ---------------- */
.center { align-self: center; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; width: 100%; max-width: 62rem; text-shadow: 0 2px 12px rgba(0,0,0,.75); }
.center .card, .center .file, .center .gazette, .center .bubble, .center .vcard, .center .rcard, .center .chalk, .center .power { text-shadow: none; }
.say { font-family: var(--hand); font-weight: 700; font-size: 2.6rem; line-height: 1.1; margin: 0; }
.lede { font-size: 1.3rem; margin: 0; color: var(--paper); }
.lede.big { font-size: 1.8rem; }
.hint { font-size: 1.05rem; color: var(--paper); opacity: .85; margin: .3rem 0 0; }
.count { font-size: 1.3rem; font-weight: 700; margin: 0; }
.timer { font-family: var(--hand); font-weight: 700; font-size: 2.2rem; color: var(--ochre); min-width: 3ch; }
.gtext { color: #A6D98C; } .rtext { color: #F08A73; }

.duo { display: flex; align-items: center; justify-content: center; gap: 2.4rem; }
.duo .plus { font-family: var(--hand); font-size: 3rem; }
.who { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.who b { font-size: 1.4rem; }
.who.big b { font-size: 1.9rem; }
.who .bust.lg { box-shadow: 0 0 0 5px var(--paper), 6px 10px 0 rgba(0,0,0,.35); }
.duo.small { gap: 2rem; }
.desk { display: flex; gap: .6rem; padding: 0 1rem; }
.fileback { width: 6.4rem; height: 8.4rem; background: #E9C98E var(--grain); border: 2px solid var(--ink); border-radius: 6px 6px 10px 4px; transform: rotate(var(--r)); display: grid; place-items: center; box-shadow: 3px 5px 0 rgba(0,0,0,.35); animation: deal .5s calc(var(--i) * .12s) cubic-bezier(.2,1.3,.4,1) both; }
.fileback span { font-family: var(--script); font-weight: 700; color: rgba(42,36,32,.5); letter-spacing: .2em; }

.file { position: relative; width: 22rem; aspect-ratio: 2 / 3; max-height: 52vh; background: #EED9AE var(--grain); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 6px 10px 0 rgba(0,0,0,.35); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.file img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.file .ftitle { position: relative; margin: 0 1rem 1.2rem; background: rgba(243,233,210,.94); border: 1.5px solid var(--ink); padding: .6rem .8rem; font-family: var(--script); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-align: left; }
.file .stamp { position: absolute; top: 28%; left: 50%; transform: translateX(-50%) rotate(-12deg); font-family: var(--ui); font-weight: 800; font-size: 3.4rem; letter-spacing: .06em; padding: .1rem 1rem; border: .35rem solid currentColor; border-radius: 10px; mix-blend-mode: multiply; }
.file.protect .stamp { color: #3F7A2E; } .file.sell .stamp { color: #A8321F; }
.file:has(img) .stamp { display: none; }
.file.slam { animation: slam .7s cubic-bezier(.3,1.5,.5,1) both; }
.signed { flex-direction: row; justify-content: center; gap: 2.5rem; max-width: 76rem; }
.gazette { width: 30rem; background: var(--paper) var(--grain); color: var(--ink); border: 2px solid var(--ink); padding: 1rem 1.3rem 1.2rem; box-shadow: 6px 10px 0 rgba(0,0,0,.35); transform: rotate(-2deg); animation: deal .7s .5s both; text-align: left; }
.gazette .mast { font-family: var(--hand); font-weight: 700; font-size: 1.5rem; border-bottom: 3px double var(--ink); padding-bottom: .3rem; text-align: center; }
.gazette .head { font-family: var(--ui); font-weight: 800; font-size: 2.5rem; line-height: 1; margin: .7rem 0 .5rem; }
.gazette .sub { font-family: var(--script); font-size: 1.05rem; color: #5D5045; }

.vcards { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; max-width: 60rem; }
.vcard { width: 7.4rem; padding: .5rem .4rem .6rem; background: var(--paper) var(--grain); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; transform: rotate(var(--r)); display: flex; flex-direction: column; align-items: center; gap: .2rem; animation: flip .5s calc(var(--i) * .09s) both; box-shadow: 3px 5px 0 rgba(0,0,0,.35); }
.vcard b { font-size: .9rem; }
.vcard span { font-weight: 800; font-size: 1.3rem; }
.vcard.yes span { color: var(--leaf); } .vcard.no span { color: var(--brick); }
.verdict { font-family: var(--ui); font-weight: 800; font-size: 2.6rem; letter-spacing: .06em; padding: .1rem 1.2rem; border: .35rem solid currentColor; border-radius: 12px; transform: rotate(-6deg); text-transform: uppercase; animation: slam .6s .9s cubic-bezier(.3,1.5,.5,1) both; text-shadow: none; background: rgba(243,233,210,.92); }
.verdict.ok { color: #3F7A2E; } .verdict.bad { color: #A8321F; }
.verdict.huge { font-size: 6rem; animation-delay: .2s; }

.bubbles { display: flex; gap: 2.5rem; justify-content: center; }
.bubble { position: relative; width: 20rem; background: var(--paper) var(--grain); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--wobble); padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; box-shadow: 4px 7px 0 rgba(0,0,0,.35); }
.bubble p { margin: .2rem 0 0; font-size: 1rem; color: #5D5045; }
.bubble > b { font-family: var(--hand); font-size: 1.7rem; }
.bubble.wait > b { color: #8A7B6A; }
.bubble .dots i { width: 1.1rem; height: 1.1rem; }

.chalk { margin-top: .4rem; width: 34rem; background: #2F3B33; color: #F2F0E6; border: .6rem solid #6B4E35; border-radius: 6px; padding: .8rem 1.2rem 1rem; box-shadow: 0 14px 30px rgba(0,0,0,.45); transform: rotate(1.5deg); animation: deal .6s both; }
.chalk h4 { font-family: var(--hand); margin: 0 0 .3rem; font-size: 1.2rem; color: #E8D9A0; }
.chalk p { font-family: var(--hand); font-size: 1.7rem; line-height: 1.25; margin: 0; }

.power { background: var(--paper) var(--grain); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--wobble); padding: 1.2rem 2rem; max-width: 34rem; box-shadow: 5px 8px 0 rgba(0,0,0,.35); animation: deal .6s both; }
.power .ico { font-size: 3.6rem; }
.power h2 { font-family: var(--hand); font-size: 2.3rem; margin: .2rem 0; }
.power p { font-size: 1.15rem; margin: 0; }

.godfather { font-family: var(--hand); font-weight: 700; font-size: 4.6rem; color: var(--ochre); letter-spacing: .06em; align-self: flex-end; margin-top: 55vh; opacity: 0; animation: fadein 2s 1s forwards; }
.paper.big { padding: 1.6rem 2.6rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.paper.big h2 { font-family: var(--hand); font-size: 2.6rem; margin: 0; }
.paper.big p { margin: 0; font-size: 1.2rem; }
.ready { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }
.ready span { opacity: .3; transition: opacity .3s; } .ready span.on { opacity: 1; }

.banner { font-family: var(--hand); font-weight: 700; font-size: 5rem; line-height: 1; padding: .6rem 2rem; border-radius: var(--wobble); border: 3px solid var(--ink); color: var(--ink); box-shadow: 6px 10px 0 rgba(0,0,0,.35); animation: slam .8s cubic-bezier(.3,1.5,.5,1) both; text-shadow: none; }
.banner.v { background: #CFE3BF var(--grain); } .banner.g { background: #F0C6B8 var(--grain); }
.banner.sm { font-size: 2.6rem; }
.rcards { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; max-width: 70rem; }
.rcard { width: 9rem; padding: .7rem .5rem .8rem; background: var(--paper) var(--grain); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; transform: rotate(var(--r)); display: flex; flex-direction: column; align-items: center; gap: .3rem; box-shadow: 3px 5px 0 rgba(0,0,0,.35); animation: flip .6s calc(var(--i) * .15s) both; }
.rcard b { font-size: 1.05rem; }
.rcard span { font-size: .85rem; font-weight: 800; }
.rcard.v span { color: var(--leaf); } .rcard.g span { color: var(--brick); }
.rcard.puppet { background-color: #F0C6B8; transform: rotate(var(--r)) scale(1.1); }

/* tutorial */
.tut { gap: 1.1rem; max-width: 72rem; }
.tprog { display: flex; gap: .5rem; }
.tprog i { width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--paper); }
.tprog i.on { background: var(--ochre); border-color: var(--ochre); transform: scale(1.3); } .tprog i.done { background: var(--paper); }
.trow { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }
.tcard { width: 13rem; background: var(--paper) var(--grain); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--wobble); padding: .8rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; box-shadow: 4px 6px 0 rgba(0,0,0,.35); text-shadow: none; animation: deal .5s both; }
.tcard img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); }
.tcard .temo { font-size: 3.4rem; line-height: 1.2; }
.tcard b { font-family: var(--hand); font-size: 1.35rem; line-height: 1.1; text-align: center; }
.tcard span { font-weight: 800; color: #5D5045; }
.tcard.v b { color: #3F7A2E; } .tcard.g b { color: #A8321F; }
.tnote { font-size: 1.3rem; margin: 0; }
.tray { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.trayfiles { display: flex; gap: .3rem; padding: .7rem; background: rgba(243,233,210,.15); border-radius: 10px; }
.trayfiles i { width: 1.6rem; height: 2.3rem; border-radius: 3px; border: 2px solid var(--ink); animation: deal .4s calc(var(--i) * .05s) both; }
.trayfiles i.g { background: #8FBF6E; } .trayfiles i.r { background: #D9725C; }
.tray span { font-weight: 800; font-size: 1.2rem; }
.flow { display: flex; align-items: center; gap: 1rem; }
.flow > b { font-family: var(--hand); font-size: 1.5rem; color: var(--ochre); }
.flow .fileback { width: 4.6rem; height: 6rem; }
.file.tiny { width: 7rem; }
.file.tiny .stamp { font-size: 1.3rem; border-width: .2rem; top: 40%; }
.tshut { display: flex; gap: .8rem; align-items: center; font-size: 1.3rem; }
.tshut .trk { display: flex; gap: .4rem; } .tshut .trk i { width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid var(--paper); } .tshut .trk i.on { background: var(--brick); }
.wins { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; width: 100%; }
.wcol { background: var(--paper) var(--grain); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--wobble); padding: 1rem 1.4rem; text-shadow: none; box-shadow: 4px 6px 0 rgba(0,0,0,.35); text-align: left; animation: deal .5s both; }
.wcol h3 { font-family: var(--hand); font-size: 2rem; margin: 0 0 .4rem; }
.wcol p { font-size: 1.3rem; margin: .4rem 0; font-weight: 700; }
.wcol.v { border-top: .6rem solid var(--leaf); } .wcol.g { border-top: .6rem solid var(--brick); }

/* lobby */
.lobby.withart .titleart { grid-column: 1; grid-row: 1 / span 5; align-self: center; width: 100%; border-radius: 14px; border: 3px solid var(--paper); box-shadow: 6px 10px 0 rgba(0,0,0,.4), 0 30px 60px rgba(0,0,0,.5); transform: rotate(-1.2deg); }
.lobby.withart .ltitle { display: none; }
.lobby { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto auto; gap: 1.2rem 2rem; align-self: center; width: 100%; max-width: 86rem; }
.ltitle { grid-column: 2; text-align: left; }
.ltitle h1 { font-family: var(--hand); font-weight: 700; font-size: 6rem; line-height: .9; margin: 0; color: var(--paper); text-shadow: 0 4px 0 rgba(0,0,0,.4); }
.ltitle p { font-family: var(--hand); font-size: 1.8rem; color: var(--ochre); margin: .3rem 0 0; }
.join { grid-column: 2; display: flex; gap: 1.2rem; align-items: center; justify-self: start; }
.join img { width: 10rem; height: 10rem; border-radius: 8px; border: 2px solid var(--ink); }
.join p { margin: .1rem 0; color: #5D5045; }
.join .url { font-size: 1.4rem; }
.join .big { font-size: 3rem; letter-spacing: .15em; color: var(--brick); line-height: 1; }
.joiners { grid-column: 2; display: flex; flex-wrap: wrap; gap: .8rem; align-content: flex-start; }
.joiner { display: flex; flex-direction: column; align-items: center; gap: .2rem; transform: rotate(var(--r)); animation: pop .5s cubic-bezier(.2,1.6,.4,1); text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.joiner b { font-size: 1rem; } .joiner small { font-size: .7rem; color: var(--ochre); }
.lobby .hint { grid-column: 2; text-align: left; }
.testbar { grid-column: 2; display: flex; gap: .5rem; flex-wrap: wrap; }
.testbar button { background: var(--ochre); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: .45rem 1rem; font-weight: 800; font-size: 1rem; box-shadow: 2px 3px 0 rgba(0,0,0,.4); }
.testbar button:disabled { opacity: .4; }

/* caption, controls, gate */
#caption { position: fixed; z-index: 3; left: 50%; bottom: 7.4rem; transform: translateX(-50%); max-width: 56rem; padding: .6rem 1.4rem; border-radius: var(--wobble); background: rgba(243,233,210,.95) var(--grain); color: var(--ink); border: 2px solid var(--ink); font-family: var(--hand); font-size: 1.4rem; line-height: 1.35; text-align: center; opacity: 0; transition: opacity .3s; pointer-events: none; box-shadow: 3px 5px 0 rgba(0,0,0,.35); }
#caption.show { opacity: 1; }
body[data-phase="LOBBY"] #caption { bottom: 2rem; }
#controls { position: fixed; z-index: 6; right: .8rem; bottom: .6rem; display: flex; gap: .35rem; opacity: .2; transition: opacity .2s; }
#controls:hover, #controls:focus-within { opacity: 1; }
#controls button, #controls a { background: var(--night-2); color: var(--paper); border: 1px solid rgba(243,233,210,.2); border-radius: 8px; padding: .3rem .6rem; font-size: .75rem; text-decoration: none; }
#gate { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: radial-gradient(ellipse at 30% 70%, rgba(217,164,65,.25), transparent 60%), var(--night); }
#gate.hide { display: none; }
.gate-in { max-width: 36rem; text-align: center; padding: 2rem; }
.gate-title { font-family: var(--hand); font-size: 6rem; font-weight: 700; line-height: .9; color: var(--paper); }
.gate-in .hand { font-size: 1.9rem; color: var(--ochre); margin: .3rem 0 1.2rem; }
.gate-in p { font-size: 1.15rem; line-height: 1.5; }
#bOpen { margin-top: 1rem; background: var(--ochre); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: .8rem 1.8rem; font-weight: 800; font-size: 1.3rem; box-shadow: 3px 5px 0 rgba(0,0,0,.4); }

/* motion */
#stage.enter .center > :not(.verdict):not(.banner):not(.chalk):not(.power):not(.gazette):not(.file) { animation: rise .6s cubic-bezier(.2,1.2,.4,1) both; }
#stage.enter .center > *:nth-child(2) { animation-delay: .08s; } #stage.enter .center > *:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes deal { from { opacity: 0; transform: translateY(-30px) rotate(-8deg); } to { opacity: 1; } }
@keyframes slam { 0% { opacity: 0; transform: scale(2.2) rotate(-10deg); } 70% { opacity: 1; transform: scale(.95) rotate(-6deg); } 100% { opacity: 1; } }
@keyframes flip { from { opacity: 0; transform: rotateY(90deg); } to { opacity: 1; } }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes fadein { to { opacity: 1; } }

/* readability: calm the bright village art and give the words a dark backing */
#scenery.has-art .art { filter: brightness(.6) saturate(.92); }
#scenery.moment.has-art .art, #scenery.dark.has-art .art { filter: brightness(.8); }
#scenery .veil { background: radial-gradient(ellipse 48% 46% at 50% 50%, rgba(14,16,28,.6), rgba(14,16,28,.15) 80%), linear-gradient(180deg, rgba(14,16,28,.65), rgba(14,16,28,.2) 20%, rgba(14,16,28,.25) 72%, rgba(14,16,28,.88)); }
#scenery.council .veil, #scenery.teashop .veil { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(14,16,28,.62), rgba(14,16,28,.3) 80%), linear-gradient(180deg, rgba(14,16,28,.6), transparent 25%, transparent 70%, rgba(14,16,28,.88)); }
.center { text-shadow: 0 2px 3px rgba(0,0,0,.95), 0 0 26px rgba(0,0,0,.85); }
.center > .lede, .center > .hint, .center > .count, .tnote, .tray > span, .tshut { background: rgba(14,16,28,.66); padding: .25rem .9rem; border-radius: 10px; }
.seat b, .brand, .code { text-shadow: 0 2px 3px rgba(0,0,0,.95), 0 0 14px rgba(0,0,0,.8); }
.menubtn { margin-top: .4rem; background: var(--paper) var(--grain); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: .5rem 1.2rem; font-weight: 800; font-size: 1rem; box-shadow: 3px 4px 0 rgba(0,0,0,.4); text-shadow: none; }
