/* Landlords: warm board-game look. Cream paper, ink outlines, chunky buttons. Phone first. */
@font-face { font-family: "Lilita One"; src: url(/fonts/LilitaOne.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url(/fonts/Fredoka.ttf) format("truetype"); font-weight: 300 700; font-display: swap; }
:root {
  --bg: #fbf3e4; --paper: #fffaf0; --ink: #2b2a33; --ink2: #4a4858; --muted: #7b7685; --line: #e7dcc6;
  --green: #22a06b; --green-d: #157650; --gold: #f2b632; --gold-d: #b97f0a; --red: #d9423e; --red-d: #9f2824; --felt: #cfe8d9; --felt2: #b9dcc7;
  --font: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif; --head: "Lilita One", "Fredoka", system-ui, sans-serif;
  --r: 16px; --shadow: 0 3px 0 var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--font); background-image: radial-gradient(circle at 20% 0%, #fff7e6 0, transparent 40%), radial-gradient(circle at 100% 100%, #f6e9cc 0, transparent 35%); min-height: 100dvh; overscroll-behavior-y: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: .01em; margin: 0 0 .4rem; line-height: 1.1; }
h1 { font-size: 2rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .6rem; }
a { color: var(--green-d); }
button, input, select { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .good { color: var(--green-d); } .err { color: var(--red-d); min-height: 1.2em; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; } .row.end { justify-content: flex-end; margin-top: .8rem; }
:focus-visible { outline: 3px solid #2b6fff; outline-offset: 2px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1rem; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); font-family: var(--head); font-size: 1rem; letter-spacing: .02em; cursor: pointer; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .06s, box-shadow .06s, filter .15s; user-select: none; -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.btn.soft { opacity: .55; }
.btn.green { background: var(--green); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); } .btn.gold { background: var(--gold); } .btn.red { background: var(--red); color: #fff; } .btn.white { background: #fff; }
.btn.ghost { background: transparent; box-shadow: none; border-color: var(--line); color: var(--ink2); } .btn.ghost:hover { border-color: var(--ink); }
.btn.small { padding: .3rem .7rem; font-size: .88rem; border-radius: 11px; box-shadow: 0 2px 0 var(--ink); }
.btn.big { padding: .85rem 1.4rem; font-size: 1.25rem; border-radius: 16px; width: 100%; }
.iconbtn { border: 2px solid var(--line); background: #fff; border-radius: 11px; width: 2.2rem; height: 2.2rem; display: inline-grid; place-items: center; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.iconbtn:hover { border-color: var(--ink); }
.linkbtn { background: none; border: 0; color: var(--green-d); text-decoration: underline; cursor: pointer; padding: 0; }

/* ---- header ---- */
header.top { display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; max-width: 1200px; margin: 0 auto; }
.brand { font-family: var(--head); font-size: 1.5rem; color: var(--ink); text-decoration: none; display: flex; gap: .4rem; align-items: center; }
.brand-mark { color: var(--green); }
header.top nav { display: flex; gap: 1rem; flex: 1; } header.top nav a { color: var(--ink2); text-decoration: none; font-weight: 500; } header.top nav a:hover { color: var(--green-d); }
.who { display: flex; gap: .5rem; align-items: center; } .who .me { color: var(--ink); font-weight: 600; text-decoration: none; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ingame header.top { display: none; }
main { max-width: 1200px; margin: 0 auto; padding: 0 1rem 3rem; }
body.ingame main { max-width: 1500px; padding: 0 .5rem 1rem; }
.card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 1rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card.empty { text-align: center; max-width: 440px; margin: 3rem auto; }
.page { max-width: 760px; margin: 0 auto; } .page h1 { margin: .6rem 0 1rem; }
.badge { display: inline-block; font-size: .7rem; font-weight: 600; padding: .05rem .45rem; border-radius: 99px; background: #ece4d2; border: 1.5px solid var(--ink2); color: var(--ink2); margin-left: .3rem; vertical-align: middle; text-transform: uppercase; letter-spacing: .04em; }
.badge.gold { background: var(--gold); color: var(--ink); border-color: var(--ink); } .badge.warn { background: #ffe0b3; } .badge.off { background: #ddd; color: #666; }
.notice { background: #fff1c9; border: 2px dashed var(--gold-d); border-radius: 12px; padding: .5rem .7rem; font-size: .9rem; }
.field { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .7rem; } .field > span { font-weight: 600; font-size: .9rem; }
.field.check { flex-direction: row; align-items: center; gap: .5rem; }
input[type=text], input[type=number], input:not([type]), select { padding: .5rem .7rem; border: 2px solid var(--ink); border-radius: 11px; background: #fff; min-width: 0; }
.toasts { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: .4rem; z-index: 200; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: .6rem .9rem; border-radius: 12px; font-weight: 500; text-align: center; animation: toastin .25s; box-shadow: 0 4px 14px rgba(0,0,0,.3); } .toast.bad { background: var(--red-d); } .toast.good { background: var(--green-d); } .toast.out { opacity: 0; transition: opacity .3s; }
.boot { display: grid; place-items: center; min-height: 60vh; gap: 1rem; color: var(--muted); }
.boot-die { width: 56px; height: 56px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; animation: tumble 0.9s linear infinite; box-shadow: 0 4px 0 var(--ink); }

/* ---- modals ---- */
.modal-back { position: fixed; inset: 0; background: rgba(30, 26, 40, .55); display: grid; place-items: center; z-index: 100; padding: 12px; animation: fade .15s; }
.modal-back.out { opacity: 0; transition: opacity .15s; }
.modal-card { background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; width: min(100%, 460px); max-height: 90dvh; overflow: auto; box-shadow: 0 8px 0 rgba(0,0,0,.25); animation: pop .2s; }
.modal-card.wide { width: min(100%, 720px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; border-bottom: 2px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.modal-head h2 { margin: 0; } .modal-head .x { border: 0; background: none; font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 0 .3rem; }
.modal-body { padding: 1rem; }
.menu { display: grid; gap: .6rem; }
@media (max-width: 700px) { .modal-back { align-items: end; padding: 0; } .modal-card, .modal-card.wide { width: 100%; max-width: none; border-radius: 20px 20px 0 0; border-bottom: 0; max-height: 86dvh; animation: sheetup .22s; } }

/* ---- tokens ---- */
.tok { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--tc, #888); border: 2px solid var(--ink); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); flex: none; }
.tok.sm { width: 1.7rem; height: 1.7rem; } .tok svg { width: 68%; height: 68%; }

/* ---- home ---- */
.hero { text-align: center; padding: 1.2rem 0 .6rem; } .hero h1 { font-size: clamp(2.6rem, 9vw, 4.2rem); color: var(--green-d); text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); letter-spacing: .03em; } .hero .tagline { font-family: var(--head); font-size: 1.25rem; margin-bottom: .3rem; }
.play { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin: 1rem 0; } .play .card { margin: 0; display: flex; flex-direction: column; gap: .5rem; } .play .card .btn.big { margin-top: auto; }
@media (max-width: 800px) { .play { grid-template-columns: 1fr; } }
.chips { display: flex; gap: .4rem; } .chip { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-family: var(--head); font-size: 1.1rem; cursor: pointer; } .chip.on { background: var(--gold); box-shadow: var(--shadow); }
.joinrow { display: flex; gap: .4rem; } .codein { flex: 1; text-transform: uppercase; letter-spacing: .15em; text-align: center; font-family: var(--head); }
.who2 { display: flex; align-items: center; gap: .8rem; } .who2 > div { flex: 1; }
.resume { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #e5f6ec; }
.sech { margin: 1.4rem 0 .5rem; }
.tables { display: grid; gap: .5rem; } .trow { display: flex; align-items: center; gap: .5rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: .55rem .8rem; text-decoration: none; color: var(--ink); } .trow:hover { background: #fff; } .tr-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-note { padding: .8rem; text-align: center; border: 2px dashed var(--line); border-radius: 14px; }
.poolnum b { font-family: var(--head); font-size: 1.6rem; color: var(--gold-d); } .poolnum.big b { font-size: 2.6rem; }
table.lb { width: 100%; border-collapse: collapse; } table.lb th { text-align: left; font-size: .8rem; color: var(--muted); border-bottom: 2px solid var(--line); padding: .3rem; } table.lb td { padding: .35rem .3rem; border-bottom: 1px solid var(--line); } table.lb tr.me td { background: #fff1c9; font-weight: 600; }
.rr { display: flex; justify-content: space-between; padding: .2rem 0; border-bottom: 1px dotted var(--line); } .rr.strong { font-weight: 700; }

/* ---- lobby ---- */
.lobby { max-width: 560px; margin: 1rem auto; } .lhead { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; flex-wrap: wrap; } .lhead h1 { font-size: 1.6rem; }
.invite { display: flex; gap: .4rem; margin: .3rem 0 .8rem; } .invite input { flex: 1; font-size: .85rem; }
.seats { display: grid; gap: .45rem; margin-bottom: .8rem; }
.seat { display: flex; align-items: center; gap: .6rem; border: 2px solid var(--ink); border-radius: 14px; padding: .4rem .6rem; background: #fff; } .seat.me { background: #fff1c9; } .seat .sn { flex: 1; min-width: 0; } .seat.empty { border-style: dashed; border-color: var(--muted); background: transparent; color: var(--muted); min-height: 3rem; } .emptyslot { flex: 1; }
.toks { display: flex; gap: .4rem; flex-wrap: wrap; } .tokbtn { padding: 0; border: 3px solid transparent; border-radius: 50%; background: none; cursor: pointer; } .tokbtn.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--ink); } .tokbtn:disabled { opacity: .3; cursor: not-allowed; }
.tokenpick { margin-bottom: .8rem; } .settings { display: grid; gap: .5rem; margin-bottom: .9rem; } .setting { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.btnrow { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; } .btnrow .btn.big { flex: 1 1 100%; } .btnrow.wrapx { margin: 0; }

/* ---- the game screen ---- */
.gamescreen { padding-top: .4rem; }
.gbar { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.gtitle { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; } .gtitle b { font-family: var(--head); font-weight: 400; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gcode { font-size: .75rem; color: var(--muted); letter-spacing: .08em; }
.turnlabel { font-weight: 600; padding: .2rem .7rem; border-radius: 99px; background: #fff; border: 2px solid var(--ink); white-space: nowrap; } .turnlabel.mine { background: var(--gold); animation: pulse 1.4s infinite; }
.timer { min-width: 3rem; text-align: center; font-family: var(--head); font-size: 1.1rem; padding: .2rem .5rem; border-radius: 10px; background: #fff; border: 2px solid var(--line); } .timer:empty { visibility: hidden; } .timer.hot { background: var(--red); color: #fff; border-color: var(--ink); animation: pulse .6s infinite; } .timer.auc { background: #dff3ff; }
.conn { background: var(--red-d); color: #fff; text-align: center; padding: .3rem; border-radius: 10px; margin-bottom: .4rem; font-weight: 600; }
.gamescreen.offline .boardwrap, .gamescreen.offline .side { opacity: .6; pointer-events: none; }
.gamegrid { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .gamegrid { grid-template-columns: 245px minmax(0, 1fr) 350px; align-items: start; } .players { display: flex; flex-direction: column; } .boardwrap { position: sticky; top: 8px; } }
.players { display: flex; gap: .45rem; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.pcard { position: relative; display: flex; align-items: center; gap: .5rem; text-align: left; min-width: 150px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: .35rem .6rem; cursor: pointer; flex: none; transition: transform .15s, background .2s; }
@media (min-width: 1000px) { .pcard { min-width: 0; } }
.pcard.turn { background: #fff0b8; transform: scale(1.02); box-shadow: 0 0 0 3px var(--gold), 0 3px 0 var(--ink); } .pcard.out { opacity: .45; filter: grayscale(1); } .pcard.me { border-color: var(--green-d); }
.pinfo { min-width: 0; } .pname { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pname em { font-style: normal; color: var(--muted); font-weight: 400; } .pcash { font-family: var(--head); font-size: 1.15rem; }
.pdots { display: flex; gap: .3rem; flex-wrap: wrap; font-size: .72rem; color: var(--muted); } .jailtag { background: #ffd3d0; color: var(--red-d); border-radius: 6px; padding: 0 .3rem; font-weight: 600; } .jailtag.card { background: #d8f0ff; color: #1d5a82; }
.float { position: absolute; right: 8px; top: -4px; font-family: var(--head); font-size: 1.1rem; pointer-events: none; animation: floatup 1.4s ease-out forwards; text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff; } .float.up { color: var(--green-d); } .float.down { color: var(--red); }

.boardwrap { min-width: 0; }
.board { position: relative; width: min(100%, calc(100dvh - 70px)); aspect-ratio: 1; margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(9, 1fr) 1.5fr; grid-template-rows: 1.5fr repeat(9, 1fr) 1.5fr; background: var(--felt); border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; container-type: inline-size; box-shadow: 0 5px 0 var(--ink); user-select: none; }
.tile { position: relative; border: 1px solid rgba(43, 42, 51, .5); background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2cqw; padding: 0; margin: 0; cursor: pointer; overflow: hidden; text-align: center; color: var(--ink); font-family: var(--font); transition: background .2s; }
.tile:hover { background: #fff; z-index: 3; }
.tile .tname { font-size: 1.5cqw; line-height: 1.05; font-weight: 600; padding: 0 .4cqw; }
.tile .tprice { font-size: 1.4cqw; color: var(--ink2); font-weight: 500; }
.tile .icon { width: 3.6cqw; height: 3.6cqw; color: var(--ink2); }
.tile.side-c .icon { width: 5.6cqw; height: 5.6cqw; } .tile.side-c .tname { font-size: 1.7cqw; font-weight: 700; } .tile.side-c { background: #fff3d0; }
.tile.start { background: #d6f3df; } .tile.start .icon { color: var(--green-d); } .tile.gotolock { background: #ffd9d6; } .tile.gotolock .icon { color: var(--red-d); } .tile.lockup { background: #ffe9c2; } .tile.parking { background: #d6f3df; } .tile.parking .icon { color: var(--green-d); }
.tile.fortune { background: #fff0b8; } .tile.fortune .icon { color: #d89a0b; } .tile.council { background: #dff1ff; } .tile.council .icon { color: #2a7fb8; } .tile.tax .icon { color: var(--red); } .tile.station .icon { color: #5a5a6a; } .tile.utility .icon { color: #2a7fb8; }
.band { position: absolute; background: var(--g); border: 0 solid rgba(43, 42, 51, .6); display: flex; align-items: center; justify-content: center; }
.houses { display: flex; gap: .2cqw; align-items: center; justify-content: center; } .house { display: block; width: 1.5cqw; height: 1.5cqw; background: #34c070; border: .2cqw solid #0e4d2a; border-radius: .25cqw; } .hotel { display: block; width: 3.1cqw; height: 1.7cqw; background: #e0392f; border: .2cqw solid #650f0a; border-radius: .3cqw; }
.side-b .band { top: 0; left: 0; right: 0; height: 24%; border-bottom-width: 1px; } .side-b { padding-top: 24%; }
.side-t .band { bottom: 0; left: 0; right: 0; height: 24%; border-top-width: 1px; } .side-t { padding-bottom: 24%; }
.side-l .band { right: 0; top: 0; bottom: 0; width: 24%; border-left-width: 1px; flex-direction: column; } .side-l { padding-right: 24%; }
.side-r .band { left: 0; top: 0; bottom: 0; width: 24%; border-right-width: 1px; flex-direction: column; } .side-r { padding-left: 24%; }
.side-l .houses, .side-r .houses { flex-direction: column; } .side-l .hotel, .side-r .hotel { width: 1.7cqw; height: 3.1cqw; }
.own { position: absolute; display: none; } .tile.owned .own { display: block; }
.side-b .own { left: 0; right: 0; bottom: 0; height: 13%; } .side-t .own { left: 0; right: 0; top: 0; height: 13%; } .side-l .own { left: 0; top: 0; bottom: 0; width: 13%; } .side-r .own { right: 0; top: 0; bottom: 0; width: 13%; }
.tile.mortgaged { background: repeating-linear-gradient(45deg, #ebe5d6, #ebe5d6 .8cqw, #d9d2bf .8cqw, #d9d2bf 1.6cqw); } .tile.mortgaged .band { filter: grayscale(1) brightness(1.1); }
.tile.flash { animation: tileflash 1.1s; } .tile.bought { animation: tilebuy .9s; } .tile.rent { animation: tilerent .9s; }
.center { grid-area: 2 / 2 / 11 / 11; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.6cqw; background: radial-gradient(circle at 50% 40%, var(--felt) 0, var(--felt2) 100%); }
.logo { font-family: var(--head); font-size: 6.4cqw; line-height: .95; text-align: center; transform: rotate(-6deg); color: #fff; -webkit-text-stroke: .35cqw var(--ink); text-shadow: .5cqw .5cqw 0 var(--ink); letter-spacing: .05em; } .logo span { display: block; } .logo span:last-child { color: var(--gold); }
.dice { display: flex; gap: 2.2cqw; } .die { width: 7.6cqw; height: 7.6cqw; background: #fff; border: .35cqw solid var(--ink); border-radius: 1.5cqw; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 1cqw; box-shadow: 0 .6cqw 0 var(--ink); } .die i { display: block; } .die i.pip { background: var(--ink); border-radius: 50%; width: 76%; height: 76%; margin: auto; }
.die.rolling { animation: tumble .17s linear infinite; } .die.land { animation: dland .26s ease-out; }
.banner { min-height: 3.4cqw; max-width: 80%; font-weight: 600; font-size: max(12px, 2.1cqw); text-align: center; color: var(--ink); background: rgba(255, 255, 255, .6); border-radius: 99px; padding: .2cqw 2cqw; } .banner:empty { visibility: hidden; } .banner.pop { animation: banner .35s; }
.cardpop { position: absolute; inset: 9% 10%; z-index: 6; border: .5cqw solid var(--ink); border-radius: 2cqw; padding: 2.4cqw; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 1.2cqw; box-shadow: 0 1cqw 0 rgba(0, 0, 0, .25); transform: rotate(-2deg); animation: cardin .4s cubic-bezier(.2, 1.2, .4, 1); } .cardpop.fortune { background: #ffe9a8; } .cardpop.council { background: #cfe9ff; }
.cardpop .ch { font-family: var(--head); font-size: max(15px, 3.4cqw); letter-spacing: .08em; text-transform: uppercase; } .cardpop .cw { font-size: max(11px, 1.8cqw); color: var(--ink2); } .cardpop .ct { font-size: max(13px, 2.5cqw); font-weight: 500; line-height: 1.25; }
.toklayer { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.pawn { position: absolute; width: 5.4cqw; height: 5.4cqw; margin: -2.7cqw 0 0 -2.7cqw; transition: left .13s linear, top .13s linear; filter: drop-shadow(0 .4cqw 0 rgba(0, 0, 0, .3)); }
.pawn .tok { width: 100%; height: 100%; border-width: max(2px, .3cqw); } .pawn.slide { transition: left .6s cubic-bezier(.4, 0, .2, 1), top .6s cubic-bezier(.4, 0, .2, 1); } .pawn.hop .tok { animation: hop .13s ease-out; } .pawn.active:not(.moving) .tok { animation: bob 1.1s ease-in-out infinite; } .pawn.gone { display: none; } .pawn.jailed .tok { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 0 0 .3cqw var(--red); }
@container (max-width: 600px) { .tile .tname { display: none; } .tile .tprice { font-size: 2.1cqw; } .tile .icon { width: 5cqw; height: 5cqw; } .tile.side-c .icon { width: 7.5cqw; height: 7.5cqw; } .tile.side-c .tname { display: block; font-size: 2cqw; } .house { width: 1.9cqw; height: 1.9cqw; } .hotel { width: 3.6cqw; height: 2cqw; } .side-l .hotel, .side-r .hotel { width: 2cqw; height: 3.6cqw; } .logo { font-size: 7.5cqw; } .die { width: 9cqw; height: 9cqw; } .pawn { width: 6.4cqw; height: 6.4cqw; margin: -3.2cqw 0 0 -3.2cqw; } }

/* ---- dock & side panel ---- */
.side { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.dock { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: .7rem; box-shadow: var(--shadow); }
.dockin { display: grid; gap: .5rem; } .prompt b { font-family: var(--head); font-weight: 400; font-size: 1.2rem; } .prompt p { margin: .1rem 0 0; font-size: .92rem; } .owe { color: var(--red-d); }
.tools { display: flex; gap: .4rem; } .tools .btn { flex: 1; }
.buycard { display: flex; gap: .6rem; align-items: center; } .swatch { display: inline-block; width: 1.1rem; height: 1.6rem; border: 2px solid var(--ink); border-radius: 5px; flex: none; }
.offer { border: 2px dashed var(--gold-d); background: #fff6d6; border-radius: 12px; padding: .5rem .6rem; font-size: .92rem; animation: pop .25s; } .offer .oh { display: flex; align-items: center; gap: .4rem; margin-bottom: .2rem; } .offer.mine { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; background: #eef; border-color: var(--muted); }
.auction { display: grid; gap: .5rem; } .aucHead { display: flex; gap: .6rem; align-items: center; } .aucBid { text-align: center; position: relative; } .bidnow { font-family: var(--head); font-size: 2.2rem; line-height: 1; color: var(--gold-d); } .aucclock { position: absolute; right: 0; top: 0; font-family: var(--head); background: #dff3ff; border-radius: 8px; padding: 0 .4rem; }
.btnrow.bids .btn { flex: 1; } .custombid { display: flex; gap: .4rem; } .custombid input { flex: 1; width: 100%; }
.tabs { display: flex; gap: .3rem; } .tab { flex: 1; padding: .3rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; color: var(--muted); } .tab.on { border-color: var(--ink); color: var(--ink); background: var(--gold); }
.log, .chatlist { height: 150px; overflow-y: auto; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: .4rem .6rem; font-size: .88rem; } @media (min-width: 1000px) { .log, .chatlist { height: 260px; } }
.ll { padding: .12rem 0; border-bottom: 1px dotted var(--line); } .ll:last-child { font-weight: 600; } .cl { padding: .12rem 0; } .chatbox { display: flex; gap: .4rem; } .chatin { flex: 1; }

/* ---- sheets ---- */
.tilecard { display: grid; gap: .6rem; } .tc-head { display: flex; align-items: center; gap: .6rem; padding: .7rem; border: 2px solid var(--ink); border-radius: 12px; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); } .tc-head .tc-icon { width: 2rem; height: 2rem; color: #fff; } .tc-name { font-family: var(--head); font-size: 1.4rem; }
.tc-price { font-weight: 600; } .rents { border: 2px solid var(--line); border-radius: 12px; padding: .4rem .7rem; background: #fff; } .tc-owner { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.tag { background: var(--gold); border: 1.5px solid var(--ink); border-radius: 8px; padding: 0 .4rem; font-size: .75rem; } .setchip { border: 2px solid; border-radius: 8px; padding: 0 .4rem; font-size: .8rem; margin: 0 .2rem .2rem 0; display: inline-block; background: #fff; } .setchip.here { background: var(--gold); }
.props { display: grid; gap: .5rem; } .pm-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .2rem; }
.prow2 { border: 2px solid var(--line); border-radius: 12px; padding: .4rem .6rem; background: #fff; display: grid; gap: .3rem; } .prow2.mort { background: #f1ede2; } .pr-name { display: flex; gap: .5rem; align-items: center; text-align: left; border: 0; background: none; cursor: pointer; padding: 0; font-weight: 600; flex-wrap: wrap; } .pr-name.flat { border: 2px solid var(--line); border-radius: 12px; padding: .4rem .6rem; background: #fff; width: 100%; } .pr-name em { font-style: normal; font-weight: 500; font-size: .75rem; background: #e5f6ec; border-radius: 8px; padding: 0 .4rem; } .pr-name em.mort { background: #eee; color: #666; } .pr-name em.set { background: var(--gold); }
.partners { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .7rem; } .partner { display: flex; align-items: center; gap: .4rem; border: 2px solid var(--line); border-radius: 12px; padding: .25rem .6rem; background: #fff; cursor: pointer; font-weight: 600; } .partner.on { border-color: var(--ink); background: var(--gold); }
.tcols { display: grid; gap: .7rem; grid-template-columns: 1fr 1fr; } @media (max-width: 560px) { .tcols { grid-template-columns: 1fr; } }
.tside { border: 2px solid var(--line); border-radius: 12px; padding: .5rem; background: #fff; } .cashfield { display: flex; gap: .4rem; align-items: center; margin-bottom: .4rem; flex-wrap: wrap; } .cashfield input { width: 6.5rem; } .tlist { display: grid; gap: .25rem; max-height: 240px; overflow: auto; } .tpick { display: flex; align-items: center; gap: .4rem; padding: .2rem; border-radius: 8px; cursor: pointer; } .tpick:hover { background: #fff6d6; } .tpick em { font-style: normal; font-size: .72rem; background: #eee; border-radius: 8px; padding: 0 .35rem; }
.tsum { margin: .6rem 0; text-align: center; color: var(--ink2); }
.podium { display: grid; gap: .4rem; margin-bottom: .8rem; } .prow { display: flex; align-items: center; gap: .6rem; border: 2px solid var(--line); border-radius: 12px; padding: .4rem .7rem; background: #fff; } .prow.first { background: #fff1c9; border-color: var(--ink); } .prow b { flex: 1; } .place { font-family: var(--head); width: 2rem; } .pts { color: var(--green-d); font-weight: 700; }
.how .card p { margin-bottom: .5rem; }

/* ---- motion ---- */
@keyframes tumble { 0% { transform: rotate(0) scale(1.05); } 50% { transform: rotate(180deg) scale(.95) translateY(-6%); } 100% { transform: rotate(360deg) scale(1.05); } }
@keyframes dland { 0% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes hop { 0% { transform: translateY(0); } 50% { transform: translateY(-45%) scale(1.1); } 100% { transform: translateY(0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14%); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheetup { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastin { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes floatup { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-34px); opacity: 0; } }
@keyframes banner { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cardin { from { transform: translateY(40%) rotate(10deg) scale(.7); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
@keyframes tileflash { 0%, 100% { background-color: var(--paper); } 30% { background-color: #fff08a; } }
@keyframes tilebuy { 0% { transform: scale(1); } 30% { transform: scale(1.12); z-index: 5; } 100% { transform: scale(1); } }
@keyframes tilerent { 0%, 100% { background-color: var(--paper); } 30% { background-color: #ffb3ad; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---- small screens ---- */
@media (max-width: 640px) {
  header.top { flex-wrap: wrap; gap: .3rem .6rem; padding: .5rem .7rem; }
  header.top nav { order: 3; flex: 1 0 100%; gap: .9rem; font-size: .9rem; }
  .brand { flex: 1; } .who .me { max-width: 5.5rem; }
  main { padding: 0 .7rem 3rem; }
  .lhead h1 { font-size: 1.35rem; }
}
html, body { max-width: 100%; overflow-x: clip; }

/* ---- board skins (unlocked by burning, off until the coin launches) ---- */
.board[data-skin="night"] { --felt: #3b4a7a; --felt2: #2a3560; } .board[data-skin="night"] .logo { color: #dfe6ff; }
.board[data-skin="sunset"] { --felt: #f6c9a6; --felt2: #eba282; }
.board[data-skin="ocean"] { --felt: #a9dcec; --felt2: #7fc3dc; }

.emotes { display: flex; gap: .25rem; flex-basis: 100%; } .emote { font-size: 1.3rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: .1rem .4rem; cursor: pointer; } .emote:active { transform: scale(.9); }
.chatbox { flex-wrap: wrap; }
.emoji { position: absolute; left: 50%; top: -6px; font-size: 1.8rem; pointer-events: none; animation: floatup 2.1s ease-out forwards; }
.watching { font-size: .85rem; opacity: .75; white-space: nowrap; }
.hint { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: #e8f4ff; border: 2px dashed var(--ink); border-radius: 12px; padding: .3rem .6rem; font-size: .88rem; }
