:root {
    --bg: #e9eef3; --card: #ffffff; --ink: #1e2733; --muted: #6b7684; --line: #d3dbe4;
    --accent: #1f6fd0; --accent-ink: #fff; --warn: #c0392b; --gold: #f2b705; --ok: #1f7a45;
  }
  @media (prefers-color-scheme: dark) {
    :root { --bg: #0f1722; --card: #182333; --ink: #eef2f7; --muted: #9aa8ba; --line: #2a3a50; --accent: #4b97f0; --accent-ink: #07131f; --warn: #ff8a7a; --ok: #6fe0a0; }
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
  #app { max-width: 1180px; margin: 0 auto; padding: 14px 16px 24px; }
  h1 { font-size: 1.5rem; margin: 0; letter-spacing: .02em; }
  h2 { font-size: 1rem; margin: 0 0 10px; }
  .muted { color: var(--muted); }
  .small { font-size: .85rem; }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
  .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  input, select { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0; }
  button { font: inherit; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
  button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
  button.good { background: var(--ok); color: #fff; border-color: var(--ok); font-weight: 700; }
  button.danger { color: var(--warn); border-color: var(--warn); }
  button.big { padding: 14px 22px; font-size: 1.1rem; }
  button.sm { padding: 6px 10px; font-size: .85rem; }
  button:disabled { opacity: .45; cursor: not-allowed; }
  .err { color: var(--warn); margin-top: 8px; min-height: 1.4em; }
  .home { max-width: 460px; margin: 6vh auto 0; display: grid; gap: 14px; }
  .brand { display: flex; align-items: center; gap: 10px; }
  .brand .crown { font-size: 1.8rem; }
  .code { font-size: 1.5rem; letter-spacing: .25em; font-weight: 800; background: var(--card); border: 2px dashed var(--gold); border-radius: 10px; padding: 2px 12px; }
  .topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
  .players { display: grid; gap: 8px; }
  .player { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
  .player.turn { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 40%, transparent); }
  .player.out { opacity: .5; text-decoration: line-through; }
  .pawn { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.5), inset 0 -3px 0 rgba(0,0,0,.18); }
  .tag { font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
  .tag.ok { color: var(--accent); border-color: var(--accent); }
  .tag.bad { color: var(--warn); border-color: var(--warn); }
  .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .money { font-weight: 800; color: var(--ok); }

  /* Dados com pontinhos */
  .dice { display: inline-flex; gap: 8px; vertical-align: middle; }
  .die { --s: 40px; width: var(--s); height: var(--s); border-radius: 18%; padding: 12%; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); place-items: center;
         background: linear-gradient(145deg, #fff, #e3e8ee); border: 1px solid #aab4c0; box-shadow: 0 2px 4px rgba(0,0,0,.35); }
  .die .pip { width: 74%; height: 74%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #555, #111); }
  .die .pip.red { background: radial-gradient(circle at 35% 30%, #f06, #b0002f); width: 95%; height: 95%; }
  .die.lg { --s: 56px; }
  .die.anim { animation: tumble .65s ease-out; }
  @keyframes tumble { 0% { transform: rotate(-220deg) scale(.4); opacity: 0; } 70% { transform: rotate(14deg) scale(1.12); } 100% { transform: none; opacity: 1; } }

  .layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
  .side { display: grid; gap: 14px; }
  @media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
    #app { padding-bottom: 150px; }
    .actioncard { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-radius: 16px 16px 0 0; box-shadow: 0 -6px 18px rgba(0,0,0,.3); max-height: 46vh; overflow: auto; }
  }

  /* ===== Tabuleiro (1 unidade = 8cqw; casas normais 8x14, cantos 14x14) ===== */
  .board-wrap { width: min(100%, calc(100vh - 110px)); margin: 0 auto; }
  .board { container-type: inline-size; display: grid; aspect-ratio: 1; width: 100%;
           grid-template-columns: 1.75fr repeat(9, 1fr) 1.75fr; grid-template-rows: 1.75fr repeat(9, 1fr) 1.75fr;
           background: #0b1020; border: 4px solid #0b1020; border-radius: 6px; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
  .sq { position: relative; overflow: hidden; cursor: pointer; color: var(--txt, #fff);
        background: linear-gradient(180deg, var(--a, #888), var(--b, #555)); border: .25cqw solid #0b1020; }
  .sq:hover { filter: brightness(1.08); }
  .frame { display: flex; flex-direction: column; width: 100%; height: 100%; }
  .o-t .frame { flex-direction: column-reverse; }
  /* nas laterais a casa é girada para a faixa do nome ficar voltada para o centro */
  .o-l .frame, .o-r .frame { position: absolute; left: 50%; top: 50%; width: 8cqw; height: 14cqw; }
  .o-l .frame { transform: translate(-50%, -50%) rotate(90deg); }
  .o-r .frame { transform: translate(-50%, -50%) rotate(-90deg); }
  .nmbar { flex: 0 0 35%; background: var(--strip, #333); display: grid; place-items: center; text-align: center; padding: .15cqw .2cqw;
           font-weight: 800; font-size: 1.2cqw; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; box-shadow: inset 0 -.2cqw 0 rgba(255,255,255,.12); }
  .art { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
  .art svg { width: 74%; height: auto; max-height: 100%; filter: drop-shadow(0 .2cqw .2cqw rgba(0,0,0,.35)); }
  .art .emo { font-size: 3.6cqw; line-height: 1; filter: drop-shadow(0 .2cqw .2cqw rgba(0,0,0,.4)); }
  .hs { position: absolute; top: .15cqw; left: 0; right: 0; text-align: center; font-size: 1.7cqw; line-height: 1; filter: drop-shadow(0 .1cqw .1cqw rgba(0,0,0,.6)); }
  .prc { flex: 0 0 16%; display: grid; place-items: center; font-weight: 800; font-size: 1.3cqw; background: rgba(0,0,0,.14); }
  .sq.owned .prc { background: var(--own); color: #fff; text-shadow: 0 .1cqw .2cqw rgba(0,0,0,.7); box-shadow: inset 0 0 0 .2cqw rgba(255,255,255,.7); }
  .sq.mort .frame { filter: grayscale(.9) brightness(.72); }
  .sq.mort .prc { font-size: .95cqw; }
  /* cantos */
  .o-c .corner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5cqw; text-align: center; padding: 1cqw; }
  .o-c .cn { font-weight: 900; font-size: 1.9cqw; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; text-shadow: 0 .2cqw 0 rgba(0,0,0,.3); }
  .o-c .ce { font-size: 5.2cqw; line-height: 1; filter: drop-shadow(0 .3cqw .3cqw rgba(0,0,0,.4)); }
  .o-c .cs { font-size: 1.15cqw; font-weight: 700; opacity: .92; }
  .sq.cur { outline: .5cqw solid var(--gold); outline-offset: -.5cqw; z-index: 2; box-shadow: 0 0 1.4cqw var(--gold); }
  .sq.sel { outline: .4cqw dashed #fff; outline-offset: -.4cqw; z-index: 2; }
  .tokens { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3cqw; padding: .3cqw; pointer-events: none; z-index: 3; }
  .tok { width: 2.3cqw; height: 2.3cqw; border-radius: 50%; border: .3cqw solid #fff; box-shadow: 0 .25cqw .6cqw rgba(0,0,0,.7), inset 0 -.5cqw 0 rgba(0,0,0,.22); }

  /* Centro do tabuleiro */
  .center { grid-row: 2 / 11; grid-column: 2 / 11; position: relative; overflow: hidden;
            background: radial-gradient(circle at 50% 38%, #58bdf5 0%, #2c86d6 52%, #1a58a8 100%); }
  .center::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 .6cqw, transparent .6cqw 3cqw); }
  .city { position: absolute; left: 12%; top: 2%; width: 74%; }
  .city svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 1.2cqw 1.2cqw rgba(0,0,0,.3)); }
  .logo { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%) rotate(-33deg); white-space: nowrap;
          background: linear-gradient(180deg, #4a74e6 0%, #2447b8 48%, #14308f 52%, #0f2670 100%); color: #fff; font-weight: 900; letter-spacing: .08em; font-size: 4.2cqw;
          padding: .9cqw 3.6cqw; border: .55cqw solid #e3ecff; border-radius: 1.3cqw; text-shadow: 0 .3cqw 0 rgba(0,0,0,.4), 0 0 1cqw rgba(160,190,255,.6);
          box-shadow: 0 1cqw 1.8cqw rgba(0,0,0,.45), inset 0 .35cqw 0 rgba(255,255,255,.35); }
  .badge { position: absolute; left: 5%; top: 5%; width: 9cqw; height: 9cqw; border-radius: 50%; background: #fff; border: .7cqw solid #d9282f; display: grid; place-items: center; font-size: 4.6cqw; box-shadow: 0 .5cqw 1cqw rgba(0,0,0,.35); transform: rotate(-12deg); }
  .diamond { position: absolute; right: 7%; bottom: 7%; width: 12cqw; height: 12cqw; transform: rotate(45deg); border-radius: 1.4cqw;
             background: linear-gradient(135deg, #ffffff, #cfe6ff); border: .6cqw solid #fff; box-shadow: 0 .7cqw 1.4cqw rgba(0,0,0,.4); display: grid; place-items: center; }
  .diamond > div { transform: rotate(-45deg); display: flex; flex-direction: column; align-items: center; gap: .1cqw; color: #0d4b8f; font-weight: 900; font-size: 1.5cqw; line-height: 1.05; text-align: center; }
  .diamond .th { font-size: 2.6cqw; }
  .center-dice { position: absolute; left: 6%; bottom: 6%; text-align: center; }
  .center-dice .who { font-size: 1.5cqw; margin-bottom: .6cqw; font-weight: 800; color: #fff; text-shadow: 0 .2cqw .4cqw rgba(0,0,0,.6); }
  .center-dice .die { --s: 5.4cqw; }
  .drawn { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-3deg); width: 46%; z-index: 5; text-align: center; border-radius: 1.6cqw; padding: 1.6cqw 1.8cqw;
           color: #fff; border: .6cqw solid #fff; box-shadow: 0 1.2cqw 2.4cqw rgba(0,0,0,.5); animation: pop .35s ease-out; }
  .drawn.chance { background: linear-gradient(160deg, #47b0f8, #1c70c4); }
  .drawn.setback { background: linear-gradient(160deg, #ffa940, #e0661a); }
  .drawn .k { font-weight: 900; letter-spacing: .12em; font-size: 1.7cqw; }
  .drawn .t { font-size: 1.9cqw; font-weight: 700; margin-top: .6cqw; line-height: 1.25; }
  @keyframes pop { from { transform: translate(-50%, -50%) scale(.6) rotate(-10deg); opacity: 0; } }

  .info .chip { width: 22px; height: 34px; border-radius: 5px; border: 1px solid rgba(0,0,0,.4); flex: none; }
  .info .ic-lg { font-size: 1.8rem; width: 22px; text-align: center; }
  .rents { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: .85rem; margin: 8px 0; }
  .rents span:nth-child(even) { text-align: right; font-weight: 700; }
  .rents .on { color: var(--accent); font-weight: 800; }
  .log { font-size: .85rem; color: var(--muted); display: grid; gap: 4px; max-height: 220px; overflow: auto; }
  .big { font-size: 1.1rem; }
  .cardmsg { border-radius: 12px; padding: 10px 12px; color: #fff; font-weight: 600; }
  .cardmsg.chance { background: linear-gradient(160deg, #47b0f8, #1c70c4); }
  .cardmsg.setback { background: linear-gradient(160deg, #ffa940, #e0661a); }
  .trade { display: grid; gap: 10px; }
  .trade .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .trade label { display: flex; align-items: center; gap: 6px; font-size: .85rem; padding: 3px 0; }
  .trade .gdot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
  .trade input[type=number] { width: 100%; padding: 6px 8px; }
  .winner { text-align: center; border: 2px solid var(--gold); background: color-mix(in srgb, var(--gold) 14%, var(--card)); }
  .winner .trophy { font-size: 3rem; }
  #toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1e2733; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 99; max-width: 90vw; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
  #toast:empty { display: none; }
  @media (max-width: 860px) { #toast { bottom: 170px; } }

  /* tabuleiros pequenos (celular): só cor, desenho e preço; toque na casa para ver o nome */
  @container (max-width: 560px) {
    .sq:not(.o-c) .nmbar { font-size: 0; }
    .sq:not(.o-c) .nmbar { flex-basis: 22%; }
    .prc { font-size: 2.1cqw; }
    .art .emo { font-size: 5cqw; }
    .hs { font-size: 2.6cqw; }
    .o-c .cn { font-size: 2.2cqw; } .o-c .cs { display: none; }
    .logo { font-size: 3.8cqw; }
    .drawn .k { font-size: 2.4cqw; } .drawn .t { font-size: 2.6cqw; }
  }

/* ===================== Lote 1: capa, peões, escritura, efeitos ===================== */
.pawn { width: 28px; height: 28px; font-size: 16px; line-height: 1; display: inline-grid; place-items: center; }
.icon-btn { padding: 8px 12px; font-size: 1.1rem; line-height: 1; }
.home.card { color: var(--ink); }

/* escolha de peça no lobby */
.pieces { display: flex; gap: 10px; flex-wrap: wrap; }
.piece { position: relative; width: 56px; height: 56px; border-radius: 50%; font-size: 1.8rem; display: grid; place-items: center; padding: 0; border: 3px solid var(--line); background: var(--card); transition: transform .12s; }
.piece:hover:not(:disabled) { transform: scale(1.08); }
.piece.sel { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent); }
.piece.taken { opacity: .35; }
.piece .who { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }

/* peões sobre o tabuleiro: deslizam de casa em casa */
.tokenlayer { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.ptok { position: absolute; width: 3.5cqw; height: 3.5cqw; margin: -1.75cqw 0 0 -1.75cqw; transform: translate(var(--dx, 0), var(--dy, 0));
        transition: left .17s linear, top .17s linear, transform .25s ease; }
.ptok.jump { transition: left .65s cubic-bezier(.4, 0, .2, 1), top .65s cubic-bezier(.4, 0, .2, 1), transform .25s ease; }
.pbody { width: 100%; height: 100%; border-radius: 50%; border: .3cqw solid #fff; display: grid; place-items: center;
         box-shadow: 0 .35cqw .7cqw rgba(0, 0, 0, .55), inset 0 -.5cqw 0 rgba(0, 0, 0, .22); }
.pbody .pe { font-size: 2cqw; line-height: 1; filter: drop-shadow(0 .1cqw .1cqw rgba(0, 0, 0, .4)); }
.pbody.hop { animation: hop .19s ease-out; }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 45% { transform: translateY(-1.3cqw) scale(1.12); } 100% { transform: translateY(0) scale(1); } }
.ptok.active::after { content: ""; position: absolute; inset: -.4cqw; border-radius: 50%; border: .35cqw solid var(--gold); animation: ring 1.5s ease-out infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }

/* dinheiro que sobe ou desce perto do peão */
.floatd { position: absolute; transform: translate(-50%, -50%); font-weight: 900; font-size: 2.4cqw; white-space: nowrap; padding: .3cqw 1cqw; border-radius: 99px; color: #fff;
          box-shadow: 0 .4cqw 1cqw rgba(0, 0, 0, .4); animation: floatup 2s ease-out forwards; z-index: 7; }
.floatd.up { background: #1f9d57; }
.floatd.down { background: #d64545; }
@keyframes floatup { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 12% { opacity: 1; transform: translate(-50%, -90%) scale(1.1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }

/* brilho na casa comprada ou construída */
.sq.flash { animation: flash 1.4s ease-out; z-index: 3; }
@keyframes flash {
  0% { box-shadow: inset 0 0 0 .8cqw var(--fc); filter: brightness(1.6); }
  60% { box-shadow: 0 0 2.4cqw 1cqw var(--fc), inset 0 0 0 .8cqw var(--fc); filter: brightness(1.25); }
  100% { box-shadow: 0 0 0 0 transparent, inset 0 0 0 0 transparent; filter: none; }
}

/* escritura de compra */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(6, 14, 30, .62); backdrop-filter: blur(2px); padding: 16px; animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.deed { width: min(360px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fffdf5; color: #1e2733; border-radius: 14px; border: 3px solid #1e2733;
        box-shadow: 0 20px 50px rgba(0, 0, 0, .55); animation: deedin .4s cubic-bezier(.2, 1.2, .3, 1); }
@keyframes deedin { from { transform: translateY(40px) rotate(-4deg) scale(.85); opacity: 0; } }
.deed-head { padding: 14px 16px; text-align: center; border-bottom: 3px solid #1e2733; }
.deed-head small { display: block; letter-spacing: .14em; font-weight: 800; font-size: .7rem; opacity: .9; }
.deed-head h3 { margin: 4px 0 0; font-size: 1.5rem; text-transform: uppercase; }
.deed-body { padding: 12px 18px; }
.deed-row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dotted #c9c2ad; }
.deed-note { font-size: .8rem; color: #5b6573; text-align: center; margin-top: 8px; }
.deed-price { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; background: #eef3fb; font-size: 1.1rem; border-top: 2px solid #1e2733; }
.deed-price b { font-size: 1.5rem; }
.deed-balance { text-align: center; font-size: .85rem; color: #5b6573; padding: 6px 0 0; }
.deed-actions { display: flex; flex-direction: column; gap: 8px; padding: 12px 18px; }
.deed-timer { text-align: center; padding: 0 0 12px; font-size: .8rem; color: #5b6573; }
.deed .muted { color: #5b6573; }
.deed button:not(.good):not(.primary) { background: #fff; color: #1e2733; border-color: #b9c2cf; }

/* confete da vitória */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; opacity: 0; animation: fall linear forwards; }
@keyframes fall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 1; transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }

/* capa */
body.home-bg { background: radial-gradient(1100px 650px at 72% 18%, #49b3f5 0%, #2477cc 42%, #12347a 100%); color: #fff; min-height: 100vh; }
body.home-bg::before { content: ""; position: fixed; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 14px, transparent 14px 40px); pointer-events: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: calc(100vh - 28px); position: relative; }
.hero-main { max-width: 520px; }
.hero-bar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.hero-bar .icon-btn { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero-title { display: flex; align-items: center; gap: 12px; }
.hero-title .crown { font-size: 3rem; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.hero-title h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1; font-weight: 900; letter-spacing: .02em; text-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .35); }
.hero-sub { font-size: 1.1rem; opacity: .95; margin: 14px 0 20px; }
.hero-card { background: var(--card); color: var(--ink); border-radius: 18px; padding: 18px; display: grid; gap: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.hero-card input { width: 100%; font-size: 1.05rem; }
.hero-card .code-in { width: 8em; text-transform: uppercase; letter-spacing: .3em; text-align: center; font-weight: 800; }
.hero-card .err { margin: 0; min-height: 0; }
.wide { width: 100%; }
button.ghost { background: transparent; border-color: var(--line); }
.or { text-align: center; color: var(--muted); font-size: .85rem; }
.invite { font-size: 1.05rem; }
.steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; }
.steps b { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #1a58a8; display: grid; place-items: center; flex: none; }
.hero-foot { margin-top: 18px; font-size: .85rem; opacity: .85; }
.hero-art { position: relative; perspective: 1500px; display: grid; place-items: center; }
.hero-art .board { width: min(100%, 560px); transform: rotateX(22deg) rotateZ(-10deg); animation: bob 6s ease-in-out infinite; box-shadow: 0 40px 60px rgba(0, 0, 0, .45); }
@keyframes bob { 50% { transform: rotateX(22deg) rotateZ(-10deg) translateY(-10px); } }
.float-dice { position: absolute; right: 4%; bottom: 2%; transform: rotate(12deg); animation: bob2 5s ease-in-out infinite; }
@keyframes bob2 { 50% { transform: rotate(12deg) translateY(-8px); } }
.float-dice .die { --s: 58px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 20px; min-height: 0; }
  .hero-art { order: -1; }
  .hero-art .board { width: min(78%, 320px); }
  .hero-main { max-width: none; }
}

/* quem prefere menos movimento no sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* a camada dos peões se posiciona em relação ao tabuleiro */
.board { position: relative; }

/* fichas um pouco maiores para ler a peça */
.ptok { width: 4.4cqw; height: 4.4cqw; margin: -2.2cqw 0 0 -2.2cqw; }
.pbody .pe { font-size: 2.7cqw; }

.overlay.seen, .deed.seen, .drawn.seen { animation: none; }

/* acesso do anfitrião */
.lock-box { display: grid; gap: 8px; }
.lock-note, .unlocked-note { font-size: .85rem; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: .9rem; text-align: center; }
