/* SHARKOPOLY on a computer. Loaded only for a mouse or trackpad and a roomy window (see the <link media> in
   index.html), and every rule hangs off html.desk, which the app sets from the same query. Phones never match. */
.desk { --dt: 56px; --hud: 14px; --turn-w: 368px; }
.desk .hdr { display: none; }
.desk .main { top: 0; }

/* ---------- what a mouse expects: hover, focus rings, quiet scrollbars, key caps ---------- */
.desk :focus-visible { outline: 2px solid rgba(255,255,255,.9); outline-offset: 2px; }
.desk .scroll { scrollbar-width: thin; scrollbar-color: rgba(238,234,226,.16) transparent; }
.desk .scroll::-webkit-scrollbar { width: 10px; }
.desk .scroll::-webkit-scrollbar-track { background: transparent; }
.desk .scroll::-webkit-scrollbar-thumb { background: rgba(238,234,226,.15); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
.desk .btn { transition: transform .12s, opacity .2s, background .15s, color .15s, border-color .15s; }
.desk .btn:active { transform: scale(.98); }
.desk .btn.pri:hover { background: #E4E6E8; }
.desk .btn.sec:hover { background: rgba(255,255,255,.09); }
.desk .btn.ghost:hover { color: var(--chalk); }
.desk .btn.bad:hover { background: rgba(255,122,102,.1); }
.desk .btn.gold:hover { background: #F7D65E; }
.desk .inp:hover { border-color: rgba(255,255,255,.42); }
.desk .inp:focus { border-color: #fff; }
.desk .seg button:not(.on):not([disabled]):hover { color: #fff; background: rgba(255,255,255,.07); }
.desk .tokpick button { transition: background .15s, border-color .15s, color .15s; }
.desk .tokpick button:hover:not(.on):not(.taken) { border-color: rgba(255,255,255,.6); color: #fff; }
.desk kbd { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line2); background: rgba(255,255,255,.04);
  font: 600 11px/1 var(--font); color: var(--chalk); }

/* ---------- the top bar (lobby + table) ---------- */
.desk .dbar { height: var(--dt); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 14px 0 22px; background: var(--bg); border-bottom: 1px solid var(--line); }
.desk .dbar-l, .desk .dbar-r { display: flex; align-items: center; gap: 4px; min-width: 0; }
.desk .dbar .wordmark { font-size: 22px; }
.desk .dsep { width: 1px; height: 22px; background: var(--line2); margin: 0 12px 0 14px; flex: none; }
.desk .dcrumb { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 12px; border-radius: 11px; font-size: 14px; font-weight: 500; color: var(--gs-grey); white-space: nowrap; }
.desk .dcrumb b { color: var(--chalk); font-weight: 800; letter-spacing: .14em; font-stretch: 112%; }
.desk .dcrumb svg { width: 16px; height: 16px; opacity: .65; }
.desk button.dcrumb:hover { background: rgba(255,255,255,.06); color: var(--chalk); }
.desk button.dcrumb:hover svg { opacity: 1; }
.desk .dconn { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; }
.desk body.netoff .dconn { background: var(--bad); animation: blink 1s infinite; }
.desk .dround { margin-left: 8px; font-size: 13px; color: var(--faint); white-space: nowrap; }
.desk .dicon { position: relative; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--dim); transition: background .15s, color .15s; }
.desk .dicon svg { width: 20px; height: 20px; }
.desk .dicon:hover { background: var(--panel2); color: var(--chalk); }
.desk .dlink { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 11px; font-size: 14px; font-weight: 500; color: var(--dim); white-space: nowrap; transition: background .15s, color .15s; }
.desk .dlink svg { width: 18px; height: 18px; }
.desk .dlink:hover { background: var(--panel2); color: var(--chalk); }

/* ---------- home: the reel is the screen, the way in sits in the clear right side it was shot for ---------- */
.desk .dhome .reelshade { background:
  linear-gradient(270deg, rgba(9,10,11,.96) 0, rgba(9,10,11,.93) 33%, rgba(9,10,11,.62) 45%, rgba(9,10,11,0) 61%),
  linear-gradient(0deg, rgba(9,10,11,.6) 0, rgba(9,10,11,0) 26%); }
.desk .dhome .panel { --pw: clamp(420px, 30vw, 560px); top: 0; bottom: 0; left: auto; right: clamp(56px, 7vw, 136px); width: var(--pw); padding: 64px 0 40px; background: none;
  display: flex; flex-direction: column; justify-content: center; overflow-y: auto; scrollbar-width: none; }
.desk .dhome .panel::-webkit-scrollbar { display: none; }
.desk .dhome .brand { display: block; margin-bottom: 30px; }
.desk .dhome .brand .big { font-size: calc(var(--pw) * var(--wm, .175)); line-height: .8; }
.desk .dhome .brand .sub { margin-top: 16px; font-size: 16.5px; line-height: 1.45; color: rgba(255,255,255,.72); max-width: 400px; }
.desk .dhome .rejoin { margin-bottom: 20px; }
.desk .dhome .field { margin-bottom: 16px; }
.desk .dhome .inp { height: 50px; font-size: 16px; }
.desk .dhome .tokpick { gap: 8px; }
.desk .dhome .btn.block { margin-top: 4px; }
.desk .dor { display: flex; align-items: center; gap: 14px; margin: 18px 0 12px; color: var(--gs-grey); font-size: 13px; }
.desk .dor::before, .desk .dor::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.desk .dhome .joinrow { margin-top: 0; }
.desk .dhome .foot { margin-top: 8px; font-size: 11.5px; color: rgba(255,255,255,.36); }
.desk .dhome .reelcap { top: auto; right: auto; left: clamp(36px, 4.4vw, 80px); bottom: clamp(30px, 5vh, 64px); width: min(50vw, 860px); }
.desk .dhome .reelcap b { font-size: clamp(48px, 5vw, 92px); }
.desk .dhome .reelcap span { margin-top: 10px; font-size: 17px; }
@media (min-width: 2200px) { .desk .dhome .panel, .desk .dnav { zoom: 1.25; } }
.desk .dnav { position: absolute; z-index: 3; top: 20px; right: clamp(20px, 3vw, 44px); display: flex; align-items: center; gap: 6px; }
.desk .dnav .dlink, .desk .dnav .dicon { color: rgba(255,255,255,.85); }
.desk .dnav .dlink:hover, .desk .dnav .dicon:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- lobby: the invite card left, the table being set right, the start button where a cursor ends ---------- */
.desk .dlobby { display: flex; flex-direction: column; }
.desk .dlobby .dbar { flex: none; }
.desk .dl-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 372px) minmax(0, 1fr); gap: 30px; width: min(1260px, 100%); margin: 0 auto; padding: 30px 32px 0; }
.desk .dl-invite { align-self: start; display: flex; flex-direction: column; padding: 26px 26px 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.desk .dl-invite .k { font-size: 13px; color: var(--gs-grey); }
.desk .dl-invite .code { font-weight: 900; font-stretch: 72%; font-size: 118px; line-height: .84; letter-spacing: .02em; margin: 8px 0 20px; }
.desk .dl-link { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line2); }
.desk .dl-link .u { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk .dl-link .btn { flex: none; }
.desk .dl-link .btn svg { width: 16px; height: 16px; }
.desk .dl-qr { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.desk .dl-qr .qr { width: 116px; height: 116px; flex: none; background: #fff; border-radius: 12px; padding: 7px; }
.desk .dl-qr .qr svg { width: 100%; height: 100%; display: block; }
.desk .dl-qr p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--faint); }
.desk .dl-qr p b { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 700; color: var(--chalk); }
.desk .dl-main { min-height: 0; padding: 0 8px 30px 2px; }
.desk .dl-main section { margin-bottom: 28px; }
.desk .dl-main > .hint { text-align: left; margin: 0 0 28px; }
.desk .dl-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin: 0 2px 12px; }
.desk .dl-h h2 { margin: 0; font-size: 21px; font-weight: 900; font-stretch: 74%; text-transform: uppercase; letter-spacing: -.003em; }
.desk .dl-h h2 em { font-style: normal; margin-left: 6px; color: var(--faint); font-weight: 700; }
.desk .dl-h .btn svg { width: 17px; height: 17px; }
.desk .dl-note { font-size: 13px; color: var(--faint); }
.desk .dl-seats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.desk .dseat { position: relative; display: flex; align-items: center; gap: 14px; height: 70px; padding: 0 12px 0 14px; border-radius: 16px; text-align: left;
  background: color-mix(in srgb, var(--pc) 7%, var(--panel)); border: 1px solid color-mix(in srgb, var(--pc) 30%, var(--line)); }
.desk .dseat.me { border-color: color-mix(in srgb, var(--pc) 70%, transparent); }
.desk .dseat .tok { width: 44px; height: 44px; }
.desk .dseat .nm { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk .dseat .nm em { font-style: normal; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.08); font-size: 11px; font-weight: 600; color: var(--gs-grey); vertical-align: 2px; }
.desk .dseat .nm small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--faint); }
.desk .dseat .x { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--faint); opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.desk .dseat:hover .x { opacity: 1; }
.desk .dseat .x:hover { background: rgba(255,122,102,.12); color: var(--bad); }
.desk .dseat .x svg { width: 16px; height: 16px; }
.desk .dseat.open { width: 100%; background: transparent; border: 1px dashed rgba(238,234,226,.2); transition: border-color .15s, background .15s; }
.desk .dseat.open:hover { border-color: rgba(238,234,226,.5); background: rgba(255,255,255,.03); }
.desk .dseat.open .ring { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed rgba(238,234,226,.3); color: var(--dim); }
.desk .dseat.open .ring svg { width: 18px; height: 18px; }
.desk .dseat.open .nm { color: var(--chalk); font-weight: 600; font-size: 15px; }
.desk .dseat.open .nm small { color: var(--faint); }
.desk .dlobby .tokpick { grid-template-columns: repeat(8, 64px); gap: 10px; }
.desk .dl-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.desk .dl-rules .opt { margin: 0; padding: 14px 14px 14px 16px; }
.desk .dl-foot { flex: none; display: flex; align-items: center; gap: 24px; padding: 14px max(32px, calc((100vw - 1260px) / 2 + 32px)); background: var(--bg); border-top: 1px solid var(--line); }
.desk .dl-foot .hint { flex: 1; margin: 0; text-align: right; font-size: 13.5px; }
.desk .dl-foot .btn { width: 300px; }

/* ---------- the table: the board owns the whole window; the HUD floats over its edges ---------- */
.desk .dgame { position: absolute; inset: 0; overflow: hidden; background: #0b0c0d; }
.desk .dgame .boardvp { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.desk .dgame:not(.three) .boardvp { border-radius: 10px; }
.desk .dgame canvas.gl { cursor: grab; }
.desk .dgame canvas.gl.overtile { cursor: pointer; }

/* the players, top left: token, name, cash — and a pip per squad member they hold */
.desk .dplayers { position: absolute; z-index: 5; left: var(--hud); top: var(--hud); width: 256px; max-height: calc(100% - var(--hud) * 2); display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto; scrollbar-width: none; pointer-events: none; }
.desk .dplayers::-webkit-scrollbar { display: none; }
.desk .dpc { pointer-events: auto; position: relative; flex: none; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px;
  align-items: center; width: 100%; padding: 8px 12px 8px 8px; border-radius: 14px; text-align: left; background: color-mix(in srgb, var(--pc) 13%, rgba(14,16,18,.86));
  border: 1px solid color-mix(in srgb, var(--pc) 38%, transparent); box-shadow: 0 8px 24px rgba(0,0,0,.32); transition: border-color .15s, background .2s, box-shadow .25s; }
.desk .dpc:hover { border-color: color-mix(in srgb, var(--pc) 75%, transparent); }
.desk .dpc .tok { grid-row: 1 / span 2; width: 38px; height: 38px; }
.desk .dpc-n { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.desk .dpc-n b { min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk .dpc-n em { flex: none; padding: 0 5px; border-radius: 5px; background: rgba(255,255,255,.1); font-style: normal; font-size: 10px; font-weight: 600; line-height: 16px; color: var(--gs-grey); }
.desk .dpc-c { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 7px; min-width: 0; }
.desk .dpc-c .num { font-weight: 900; font-stretch: 88%; font-size: 18px; line-height: 1.1; }
.desk .dpc-c .badge { padding: 0 6px; border-radius: 5px; background: rgba(255,255,255,.13); font-size: 10.5px; font-weight: 600; line-height: 17px; color: var(--chalk); }
.desk .dpc-own { grid-column: 3; grid-row: 1 / span 2; display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 3px 4px; justify-items: end; align-content: center; }
.desk .dpc-own.none { display: none; }
.desk .dpc.turn { background: color-mix(in srgb, var(--pc) 25%, rgba(18,20,23,.92)); border-color: var(--pc);
  box-shadow: 0 0 0 1px var(--pc), 0 0 24px color-mix(in srgb, var(--pc) 36%, transparent), 0 8px 24px rgba(0,0,0,.32); }
.desk .dpc.out { opacity: .45; }
.desk .pipg { display: inline-flex; gap: 2px; }
.desk .pipg i { position: relative; width: 8px; height: 8px; border-radius: 2px; box-shadow: inset 0 0 0 1.3px color-mix(in srgb, var(--g) 55%, transparent); }
.desk .pipg i.on { background: var(--g); box-shadow: none; }
.desk .pipg.full i.on { box-shadow: 0 0 6px color-mix(in srgb, var(--g) 60%, transparent); }
.desk .pipg i.m { opacity: .35; }
.desk .pipg i.pl::after, .desk .pipg i.red::after { content: ''; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: #0d1012; }
.desk .pipg i.red::after { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: #E2492B; box-shadow: 0 0 0 1px #0d1012; }
.desk .dplayers.many { gap: 5px; }
.desk .dplayers.many .dpc { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 6px 10px 6px 7px; border-radius: 12px; }
.desk .dplayers.many .dpc .tok { width: 30px; height: 30px; }
.desk .dplayers.many .dpc-n b { font-size: 13px; }
.desk .dplayers.many .dpc-c .num { font-size: 16px; }

/* the tools, top right: the camera, the drop-down's three doors, sound / full screen / menu */
.desk .dtools { position: absolute; z-index: 6; top: var(--hud); right: var(--hud); display: flex; align-items: center; gap: 8px; }
.desk .dcam { display: flex; align-items: center; gap: 8px; }
.desk .dgame .dcam .viewseg, .desk .dgame .dcam .autocam { position: static; }
.desk .dgame .dcam .viewseg { border-color: rgba(255,255,255,.22); background: rgba(14,16,18,.86); box-shadow: 0 8px 24px rgba(0,0,0,.32); }
.desk .dgame .dcam .viewseg button { height: 38px; min-width: 50px; padding: 0 14px; transition: background .15s, color .15s; }
.desk .dgame .dcam .viewseg button:not(.on):hover { background: rgba(255,255,255,.12); color: #fff; }
.desk .dgame .dcam .autocam { height: 40px; background: rgba(14,16,18,.86); }
.desk .dgame .dcam .autocam:hover { background: rgba(40,44,48,.95); }
.desk .dseg { display: flex; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); background: rgba(14,16,18,.86); box-shadow: 0 8px 24px rgba(0,0,0,.32); }
.desk .dseg button { position: relative; height: 38px; padding: 0 15px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); transition: background .15s, color .15s; }
.desk .dseg button + button { border-left: 1px solid rgba(255,255,255,.12); }
.desk .dseg button:not(.on):hover { background: rgba(255,255,255,.1); color: #fff; }
.desk .dseg button.on { background: #fff; color: var(--gs-ink); }
.desk .dseg .dot { position: absolute; top: 8px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.desk .dico { display: flex; gap: 2px; padding: 2px; border-radius: 13px; background: rgba(14,16,18,.86); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 8px 24px rgba(0,0,0,.32); }
.desk .dico .dicon { width: 36px; height: 36px; border-radius: 10px; color: rgba(255,255,255,.82); }
.desk .dico .dicon:hover { background: rgba(255,255,255,.1); color: #fff; }
.desk body.netoff .dmenu::after { content: ''; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); animation: blink 1s infinite; }

/* the drop-down: activity · your assets · trades — it stops short of your turn's card */
.desk .dpanel { position: absolute; z-index: 7; top: calc(var(--hud) + 50px); right: var(--hud); width: 408px; min-height: 160px;
  max-height: calc(100% - var(--hud) * 3 - 50px - var(--turn-h, 220px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: rgba(16,18,20,.97); border: 1px solid rgba(255,255,255,.13); box-shadow: 0 26px 70px rgba(0,0,0,.6); animation: dpane .18s cubic-bezier(.2,.9,.3,1); }
.desk .dpanel[hidden] { display: none; }
@keyframes dpane { from { opacity: 0; transform: translateY(-8px); } }
.desk .dpanel header { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 4px 18px; }
.desk .dpanel h3 { margin: 0; font-size: 21px; font-weight: 900; font-stretch: 74%; text-transform: uppercase; }
.desk .dpanel header .dicon { width: 34px; height: 34px; }
.desk .dpane { flex: 1; min-height: 0; padding: 4px 16px 16px; }
.desk .dlog-l { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 11px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--faint); }
.desk .dlog-l:last-child { border-bottom: 0; }
.desk .dlog-l i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--pc); }
.desk .dlog-l:nth-child(-n+4) { color: var(--dim); }
.desk .dlog-l:first-child { color: var(--chalk); }
.desk .dsub { margin: 4px 2px 10px; font-size: 16px; font-weight: 900; font-stretch: 76%; text-transform: uppercase; }
.desk .dpane .offer + .dsub { margin-top: 18px; }
.desk .dtw { display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; margin-bottom: 8px; padding: 0 14px 0 10px; border-radius: 14px; background: var(--panel2);
  border: 1px solid var(--line); font-weight: 700; text-align: left; transition: border-color .15s; }
.desk .dtw span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk .dtw em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--faint); }
.desk .dtw:hover { border-color: color-mix(in srgb, var(--pc) 65%, transparent); }
.desk .dpane .offer { padding: 12px; }
.desk .dpane .offer .oa .btn { height: 42px; padding: 0 10px; font-size: 14px; }
.desk .asset { transition: border-color .15s; }
.desk .asset:hover { border-color: var(--line2); }
.desk .asset .ab button { transition: border-color .15s, background .15s; }
.desk .asset .ab button:not([data-why]):hover { border-color: rgba(238,234,226,.38); }
.desk .asset .ab button.go:hover { background: #2BB377; border-color: #2BB377; }

/* your turn, bottom right: whose it is, what the table waits on, the one button that matters (Space presses it) */
.desk .dturn { --pc: rgba(255,255,255,.2); position: absolute; z-index: 6; right: var(--hud); bottom: var(--hud); width: var(--turn-w); padding: 17px 16px 14px; overflow: hidden;
  border-radius: 18px; background: rgba(14,16,18,.9); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 50px rgba(0,0,0,.5); transition: background .3s, border-color .3s; }
.desk .dturn::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--pc); }
.desk .dturn.mine { background: color-mix(in srgb, var(--pc) 10%, rgba(14,16,18,.93)); border-color: color-mix(in srgb, var(--pc) 50%, transparent); }
.desk .dturn-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.desk .dturn-h .tok.sm { width: 28px; height: 28px; }
.desk .dturn-h b { flex: 1; min-width: 0; font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 25px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk .dturn-h span { flex: none; font-size: 12.5px; color: var(--faint); }
.desk .dturn-t { margin-top: 10px; font-size: 14px; line-height: 1.42; color: var(--dim); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.desk .dturn-t b { color: var(--chalk); font-weight: 700; }
.desk .dturn-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.desk .dturn-a .btn { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 12px; font-size: 14.5px; }
.desk .dturn-a .btn.pri { flex: 1 1 100%; height: 52px; padding: 0 14px 0 18px; justify-content: space-between; font-size: 16px; }
.desk .dturn-a .btn.pri::after { content: 'Space'; padding: 4px 7px; border-radius: 7px; border: 1px solid rgba(13,16,18,.25); font-size: 11px; font-weight: 600; color: rgba(13,16,18,.6); }
.desk .dturn-a .btn.pri[disabled]::after { display: none; }
.desk .dhint { flex: 1 1 100%; margin: 0; text-align: center; font-size: 12.5px; color: var(--faint); }
.desk .droll { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: 12px; height: 52px; border-radius: 14px; border: 1px solid var(--line2); color: var(--dim); font-weight: 600; }
.desk .droll .sw { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.18); border-top-color: #fff; border-right-color: #fff; animation: swirl .5s linear infinite; }

/* the hover card follows the mouse; a first-visit how-to sits bottom left until you move the table */
.desk .dhelp { position: absolute; z-index: 4; left: 18px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; max-width: calc(100% - var(--turn-w) - 60px); font-size: 12px;
  color: rgba(238,234,226,.55); text-shadow: 0 1px 6px rgba(0,0,0,.8); pointer-events: none; transition: opacity .8s; }
.desk .dhelp b { color: rgba(238,234,226,.88); font-weight: 600; }
.desk .dhelp.gone { opacity: 0; }
.desk .dtip { position: absolute; left: 0; top: 0; z-index: 7; width: 296px; padding: 10px 12px 10px 10px; border-radius: 16px; background: rgba(17,19,21,.96); border: 1px solid var(--line2);
  box-shadow: 0 18px 50px rgba(0,0,0,.55); pointer-events: none; will-change: transform; }
.desk .dtip[hidden] { display: none; }
.desk .dtip .tc { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.desk .dtip img, .desk .dtip .ico { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #2a2d31; box-shadow: 0 0 0 2px var(--g); }
.desk .dtip .ico { display: grid; place-items: center; color: var(--chalk); box-shadow: none; background: #202326; }
.desk .dtip .ico svg { width: 38px; height: 38px; }
.desk .dtip .tt { min-width: 0; }
.desk .dtip small { display: block; font-size: 11.5px; font-weight: 600; color: var(--gs-grey); }
.desk .dtip .tc:not(.ic) small { color: color-mix(in srgb, var(--g) 70%, #fff); }
.desk .dtip .tt > b { display: block; margin-top: 1px; font-size: 14px; font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk .dtip .tt > b span, .desk .dtip .ic .tt > b { font-weight: 900; font-stretch: 74%; text-transform: uppercase; font-size: 19px; }
.desk .dtip p { display: flex; align-items: center; gap: 6px; margin: 5px 0 0; font-size: 12.5px; color: var(--dim); }
.desk .dtip p b { font-weight: 800; color: var(--chalk); }
.desk .dtip .tok.xs { width: 16px; height: 16px; }
.desk .dtip .pl { display: flex; align-items: center; gap: 3px; margin-top: 6px; }
.desk .dtip .pl .plate { width: 11px; height: 11px; }
.desk .dtip .pl .plate.red { width: 15px; height: 15px; }

/* ---------- dialogs instead of bottom sheets; the menu drops from its button ---------- */
.desk .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(580px, calc(100vw - 64px)); max-height: min(84vh, 880px); margin: 0; padding-bottom: 4px;
  border-radius: 22px; border: 1px solid var(--line2); box-shadow: 0 40px 120px rgba(0,0,0,.75);
  transform: translate(-50%, -47%) scale(.98); opacity: 0; transition: transform .24s cubic-bezier(.2,.9,.3,1), opacity .18s; }
.desk .sheet.on { transform: translate(-50%, -50%); opacity: 1; }
.desk .sheet .grab { display: none; }
.desk .sheet .sh { padding: 20px 18px 12px 24px; }
.desk .sheet .sh h3 { font-size: 25px; }
.desk .sheet .sh .ib:hover { background: var(--panel2); }
.desk .sheet .sb { padding: 0 24px 22px; }
.desk .sheet[data-kind="trade"] { width: min(920px, calc(100vw - 64px)); }
.desk .sheet[data-kind="rules"] { width: min(680px, calc(100vw - 64px)); }
.desk .sheet[data-kind="menu"] { top: calc(var(--hud) + 50px); left: auto; right: var(--hud); width: 384px; max-height: calc(100vh - var(--hud) * 2 - 60px); border-radius: 18px;
  transform: translateY(-8px); }
.desk .sheet[data-kind="menu"].on { transform: none; }
.desk .sheet[data-kind="menu"] .sh { display: none; }
.desk .sheet[data-kind="menu"] .sb { padding: 8px 10px 12px; }
.desk .scrim.clear { background: transparent; }
.desk .menu-item { padding: 12px; border-bottom: 0; border-radius: 12px; font-size: 15px; transition: background .15s; }
.desk .menu-item:hover { background: var(--panel2); }
.desk .sheet .hint { margin-top: 10px; }
.desk .dkeys { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; margin: 8px 4px 0; padding: 14px 8px 2px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
.desk .dkeys span { display: flex; align-items: center; gap: 8px; }
.desk .sheet .rules h4:first-child { margin-top: 4px; }
.desk .tr-players button { transition: border-color .15s; }
.desk .tr-players button:hover { border-color: rgba(238,234,226,.4); }
.desk .sheet[data-kind="trade"] .tr-cols { gap: 18px; }
.desk .tr-item { gap: 10px; padding: 8px; border-radius: 12px; transition: border-color .15s, background .15s; }
.desk .tr-item:hover { border-color: rgba(238,234,226,.34); }
.desk .tr-item img, .desk .tr-item .ico { width: 40px; height: 40px; border-radius: 9px; }
.desk .tr-item b { font-size: 14px; }
.desk .tr-item span { font-size: 12px; }
.desk .stepper button { transition: background .15s; }
.desk .stepper button:hover { background: #30353a; }

/* ---------- the deed: the wide swing tag ---------- */
.desk .deedwrap { container-type: inline-size; padding: 32px; }
.desk .deedwrap .scrim { background: rgba(5,6,7,.5); }
.desk .deed { max-height: 100%; }
@container (min-width: 600px) {
.desk .deed:not(.info) { width: min(740px, 100%); display: flex; align-items: stretch; border-radius: 20px; transform-origin: 50% 50%; }
.desk .deed:not(.info) .hole { left: 22%; top: 12px; width: 13px; height: 13px; margin-left: -6.5px; }
.desk .deed:not(.info) .x { top: 12px; right: 12px; width: 34px; height: 34px; color: var(--ink); background: rgba(21,19,15,.07); }
.desk .deed .x:hover { background: rgba(21,19,15,.15); }
.desk .deed .dl { flex: 0 0 44%; min-width: 0; padding: 36px 20px 20px; display: grid; grid-template-columns: 124px 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 14px;
  align-content: start; background: var(--g); color: var(--gi); }
.desk .deed .dl .dh { display: contents; }
.desk .deed .dl .dh .sq { position: static; grid-column: 1 / -1; grid-row: 1; justify-self: start; }
.desk .deed .dl .dh .cnt { position: static; grid-column: 1 / -1; grid-row: 1; justify-self: end; }
.desk .deed .dl .dh img, .desk .deed .dl .dh .ic { position: static; grid-column: 1; grid-row: 2; width: 124px; height: 124px; margin-top: 12px; border-radius: 18px;
  border: 3px solid rgba(255,255,255,.92); box-shadow: 0 10px 22px rgba(0,0,0,.28); }
.desk .deed .dl .dh .ic svg { width: 68px; height: 68px; }
.desk .deed .dl .nmw { grid-column: 2; grid-row: 2; align-self: end; min-height: 0; padding: 0 0 6px; }
.desk .deed .dl .nmw .f { font-size: 13px; color: var(--gi); opacity: .78; }
.desk .deed .dl .nmw .l { font-size: 31px; overflow-wrap: anywhere; }
.desk .deed .dl .claim { grid-column: 1 / -1; grid-row: 3; padding: 16px 0 0; font-size: 14px; color: var(--gi); opacity: .92; }
.desk .deed .dl .reach { grid-column: 1 / -1; grid-row: 4; padding: 12px 0 0; color: var(--gi); }
.desk .deed .dr { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 16px 20px 20px; }
.desk .deed .dr .owner { order: -1; min-height: 34px; margin: 0 44px 8px 0; padding: 0; background: none; font-size: 13.5px; }
.desk .deed .dr .owner .tok { width: 24px; height: 24px; }
.desk .deed .dr table { width: 100%; margin: 0; font-size: 14px; }
.desk .deed .dr td { padding: 5px 0; }
.desk .deed .dr .fine { padding: 10px 0 0; font-size: 12px; }
.desk .deed .dr .dact { margin-top: auto; padding: 16px 0 0; }
.desk .deed .dr .dact .btn { height: 48px; font-size: 15px; }
.desk .deed .dr .dpad { display: none; }
.desk .deed .dact .btn.pri:hover { background: #262b30; }
.desk .deed .dact .btn.sec:hover { background: rgba(13,16,18,.07); }
}
.desk .deed.info { width: min(440px, 100%); }

/* ---------- the table's moments: offers and auctions sit in the free space left of your turn ---------- */
.desk .cardstage { cursor: pointer; }
.desk .card3 { height: min(540px, calc(100vh - 170px)); width: auto; aspect-ratio: 5 / 7; }
.desk .auction { left: var(--hud); right: calc(var(--turn-w) + var(--hud) * 2); bottom: calc(var(--hud) + 6px); width: auto; max-width: 580px; margin: 0 auto; padding: 16px; }
.desk .incoming { left: var(--hud); right: calc(var(--turn-w) + var(--hud) * 2); top: auto; bottom: calc(var(--hud) + 6px); width: auto; max-width: 580px; margin: 0 auto;
  padding: 16px; border-radius: 20px; animation: rise .3s cubic-bezier(.2,1,.3,1); }
.desk .incoming .oh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 800; font-size: 15px; }
.desk .incoming .os { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13.5px; }
.desk .incoming .os h5 { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.desk .incoming .os p { margin: 0 0 4px; font-weight: 700; }
.desk .incoming .oa { display: flex; gap: 8px; margin-top: 14px; }
.desk .incoming .oa .btn { flex: 1; height: 46px; }
.desk .banner b { font-size: clamp(56px, 6.2vw, 112px); }
.desk .toast { bottom: 40px; }
.desk body.dgame-on .toast { left: calc((100vw - var(--turn-w) - var(--hud) * 2) / 2); bottom: 36px; max-width: calc(100vw - var(--turn-w) - 80px); }
.desk .over { align-items: center; padding: 64px 24px 40px; }
.desk .over > * { width: min(580px, 100%); }
.desk .over .crown { margin-top: 2vh; }
.desk .over .ranks { flex: 0 1 auto; }
.desk .over .oa .btn { height: 52px; }
