/* Visual system ported from ../dominion/public/style.css. Additions for Clock Domain:
   role lines on cards, Pipelined frames, the team-bonus stat, rooms, seats and chat. */
:root {
  --bg: #1d1a16;
  --panel: #2a2621;
  --panel-2: #353029;
  --line: #4a4339;
  --ink: #f2ece0;
  --ink-2: #c9bfae;
  --ink-3: #958b7b;
  --accent: #e9c75a;
  --focus: #ffffff;
  /* card type frames: each type also has a glyph + label on the card */
  --t-action: #efe7d6; --t-treasure: #ecc94b; --t-victory: #8fc77a;
  --t-curse: #b49bd3; --t-reaction: #8db6e6; --t-pipelined: #f0a65a;
  --card-ink: #1d1a16;
  font-family: ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body { font-size: 14px; }
a { color: var(--accent); }
button {
  font: inherit; color: var(--card-ink); background: var(--accent); border: 0; border-radius: 6px;
  padding: 7px 14px; font-weight: 600; cursor: pointer;
}
button.secondary { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
button.small { padding: 3px 10px; font-size: 12px; }
button:disabled { opacity: .35; cursor: default; }
button:focus-visible, .card:focus-visible, input:focus-visible, .rec:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
kbd { font: 11px ui-monospace, monospace; border: 1px solid var(--ink-3); border-radius: 3px; padding: 0 4px; margin-left: 6px; opacity: .8; }
.hidden { display: none !important; }
select, input[type=text] { font: inherit; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.code { font-family: ui-monospace, monospace; letter-spacing: 3px; text-transform: uppercase; }
.logo { display: inline-block; width: 1.15em; height: .8em; margin-right: .3em; vertical-align: -.02em;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cpath d='M1 18H7V2H15V18H23V2H29' fill='none' stroke='%23e9c75a' stroke-width='3'/%3E%3C/svg%3E"); }

/* ---------------- Home / room ---------------- */
.setup { max-width: 1180px; margin: 0 auto; padding: 24px 16px 60px; }
.setup h1 { font-size: 34px; margin: 0 0 4px; letter-spacing: .5px; }
.setup .sub { color: var(--ink-2); margin-bottom: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.setup .sub .code { color: var(--ink); font-size: 20px; }
.setup-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.setup-grid > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.box h2 { font-size: 15px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-2); }
.row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.row label { min-width: 90px; color: var(--ink-2); }
.row input[type=text] { flex: 1; min-width: 0; }
.join-row { margin-top: 16px; }
.join-row input.code { flex: 0 0 96px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { border-radius: 0; background: transparent; color: var(--ink-2); font-weight: 500; padding: 6px 12px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { background: var(--panel-2); color: var(--ink); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.tabs button.on { background: var(--panel-2); color: var(--ink); border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.tabs.small { margin: 0; gap: 4px; }
.tabs.small button { padding: 2px 10px; font-size: 12px; }
.tabs button.unread::after { content: ' •'; color: var(--accent); }
.rec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rec { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--panel-2); }
.rec.pick { cursor: pointer; }
.rec.pick:hover { border-color: var(--ink-3); }
.rec.on { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.rec.on .rec-name::before { content: '✓ '; color: var(--accent); }
.rec-name { font-weight: 700; }
.rec-group { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.rec-cards { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.rec .row { margin: 8px 0 0; }
.empty-note { color: var(--ink-3); grid-column: 1 / -1; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.gallery .card { width: 100%; }
.gallery .card.dim { opacity: .45; }
.pickbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pickbar .count { font-weight: 700; }
.chosen-strip { display: flex; gap: 6px; flex-wrap: wrap; min-height: 28px; margin-bottom: 12px; }
.chip { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: var(--ink); font-weight: 500; }
.chip:hover { border-color: var(--ink-3); }
.start-row { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.start-row button { padding: 10px 22px; font-size: 16px; }
#screen-home .start-row button { padding: 9px 16px; font-size: 15px; }
.note { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.4; }
.seat-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.seat { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-left: 6px solid var(--pc); border-radius: 6px; background: var(--panel-2); }
.seat .nm { font-weight: 700; flex: 1; }
.seat .tag { font-size: 11px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 7px; }
.seat .tag.off { border-style: dashed; color: var(--ink-3); }
.chat-box { display: flex; flex-direction: column; }
.chat-log { background: #221f1a; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: 13px; line-height: 1.45; height: 180px; overflow-y: auto; margin-bottom: 8px; }
.chat-log b { color: var(--ink); }
.chat-log .sys { color: var(--ink-3); }
.chat-form { display: flex; gap: 6px; }
.chat-form input { flex: 1; min-width: 0; }

/* ---------------- Cards ---------------- */
.card {
  --frame: var(--t-action);
  position: relative; width: 118px; height: 184px; border-radius: 9px;
  background: var(--frame); color: var(--card-ink);
  border: 2px solid rgba(0,0,0,.55); box-shadow: 0 2px 6px rgba(0,0,0,.45);
  display: flex; flex-direction: column; overflow: hidden; user-select: none; flex: none;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s;
}
.card .cname { font-weight: 800; font-size: 12.5px; text-align: center; padding: 5px 4px 3px; background: rgba(255,255,255,.55); border-bottom: 1px solid rgba(0,0,0,.2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .cname.long { font-size: 10.5px; letter-spacing: -.2px; }
/* Names longer than the card is wide wrap to two lines instead of being cut off. */
.card .cname { white-space: normal; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; }
.pile .card .cname.long { font-size: 10px; }
.pile .card .cname { padding-left: 14px; padding-right: 14px; } /* clear the count badge */
.card .art { flex: 0 0 48px; display: flex; align-items: center; justify-content: center; font-size: 36px; position: relative; }
.card .role { font-size: 9.5px; font-weight: 800; text-align: center; letter-spacing: .3px; padding: 1px 4px 2px; margin: 0 4px 3px; border-radius: 3px; background: rgba(0,0,0,.72); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .text { flex: 1; font-size: calc(var(--tfs, 10px) * var(--tk, 1)); line-height: 1.25; padding: 4px 6px; background: rgba(255,255,255,.72); margin: 0 4px; border-radius: 4px; overflow: hidden; text-align: center; }
.card .text .rule { display: block; border-top: 1px solid rgba(0,0,0,.35); margin: 3px 6px; }
.card .foot { display: flex; align-items: center; gap: 4px; padding: 3px 5px 4px; font-size: 9.5px; font-weight: 700; }
.card .cost { width: 22px; height: 22px; border-radius: 50%; background: #f2c94c; border: 2px solid #8a6a12; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; flex: none; }
.card .tline { flex: 1; text-align: center; text-transform: uppercase; letter-spacing: .3px; }
.card .glyphs { position: absolute; top: 24px; right: 4px; font-size: 11px; display: flex; flex-direction: column; gap: 1px; }
.card.t-treasure { --frame: var(--t-treasure); }
.card.t-victory { --frame: var(--t-victory); }
.card.t-curse { --frame: var(--t-curse); }
.card.t-action-reaction { --frame: linear-gradient(180deg, var(--t-action) 50%, var(--t-reaction) 50%); }
.card.t-action-pipelined { --frame: linear-gradient(180deg, var(--t-action) 50%, var(--t-pipelined) 50%); }
.card.t-action-attack .tline { text-decoration: underline wavy rgba(0,0,0,.5); }

/* Fit levels for long rules text, set by fitCards() in card-view.js. */
.card.fit-1 { --tk: .92; } .card.fit-1 .art { flex-basis: 38px; font-size: 28px; }
.card.fit-2 { --tk: .86; } .card.fit-2 .art { flex-basis: 28px; font-size: 21px; }
.card.fit-3, .card.fit-4, .card.fit-5 { --tk: .8; }
.card.fit-3 .art { flex-basis: 28px; font-size: 21px; }
.card:is(.fit-3, .fit-4, .fit-5) .text { line-height: 1.15; padding: 3px 4px; }
.card:is(.fit-3, .fit-4, .fit-5) .text .rule { margin: 2px 6px; }
.card:is(.fit-4, .fit-5) :is(.art, .glyphs) { display: none; }
.card.fit-5 .text { position: relative; }
.card.fit-5 .text::after { content: '⋯ hover'; position: absolute; left: 0; right: 0; bottom: 0; padding-top: 10px; font-weight: 800; background: linear-gradient(rgba(255,255,255,0), #fff 60%); }
.card.clickable { cursor: pointer; }
.card.clickable:hover { transform: translateY(-6px); box-shadow: 0 8px 16px rgba(0,0,0,.55); }
.card.playable { box-shadow: 0 0 0 3px var(--accent), 0 2px 6px rgba(0,0,0,.5); }
.card.selected { transform: translateY(-14px); box-shadow: 0 0 0 4px #fff, 0 10px 18px rgba(0,0,0,.6); }
.card.selected::after { content: '✓'; position: absolute; top: 26px; left: 6px; background: #fff; color: #000; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.card.unavailable { opacity: .4; }

/* Supply piles: compact cards */
.pile { position: relative; }
.pile .card { width: 104px; height: 136px; }
.pile .card .text { display: none; }
.pile .card .art { flex: 1; font-size: 34px; }
.pile .count { position: absolute; top: -7px; right: -7px; z-index: 2; background: #111; color: #fff; border: 2px solid var(--ink-2); border-radius: 12px; min-width: 26px; height: 24px; padding: 0 5px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.pile.empty .card { opacity: .3; }
.pile.empty .count { background: transparent; border-style: dashed; color: var(--ink-2); }
.pile.empty::after { content: 'EMPTY'; position: absolute; inset: 50% 0 auto; transform: translateY(-50%); text-align: center; font-weight: 900; letter-spacing: 2px; color: var(--ink); text-shadow: 0 0 4px #000; }
.pile .card.buyable { box-shadow: 0 0 0 3px var(--accent), 0 2px 6px rgba(0,0,0,.5); cursor: pointer; }
.pile .card.buyable:hover { transform: translateY(-4px); }
.pile .card.cantafford { opacity: .45; }

/* ---------------- Game layout ---------------- */
#screen-game { display: grid; grid-template-rows: auto auto 1fr auto auto auto; height: 100vh; }
#topbar { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: #15130f; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
#topbar .title { font-weight: 900; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; }
#topbar .spacer { flex: 1; }
#topbar .info { color: var(--ink-2); }
#opponents { display: flex; gap: 10px; padding: 8px 14px; flex-wrap: wrap; }
.opp { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--pc); border-radius: 8px; padding: 6px 12px; display: flex; gap: 10px; align-items: center; min-width: 260px; }
.opp.current { box-shadow: 0 0 0 2px var(--accent); }
.opp.current .pname::after { content: '  ◀ playing'; color: var(--accent); font-size: 11px; font-weight: 600; }
.opp.waiting .pname::after { content: '  ⏳ choosing'; color: var(--ink-2); font-size: 11px; font-weight: 600; }
.opp.off { opacity: .7; border-style: dashed; border-left-style: solid; }
.opp .avatar { font-size: 30px; }
.opp .pname { font-weight: 800; }
.opp .persona { font-size: 11px; color: var(--ink-3); }
.opp .zones { font-size: 12px; color: var(--ink-2); display: flex; gap: 10px; flex-wrap: wrap; }
.opp .vp { margin-left: auto; text-align: right; font-size: 22px; font-weight: 900; }
.opp .vp small { display: block; font-size: 10px; color: var(--ink-3); font-weight: 600; }

#board { display: grid; grid-template-columns: 1fr 330px; gap: 10px; padding: 4px 14px; min-height: 0; overflow: hidden; }
#supply { display: flex; flex-wrap: wrap; gap: 18px; overflow: auto; padding: 10px 6px; align-content: flex-start; }
.basecol { display: grid; grid-template-columns: repeat(4, 104px); gap: 14px 10px; align-content: start; }
.kingdom { display: grid; grid-template-columns: repeat(5, 104px); gap: 14px 10px; align-content: start; }
.supply-meta { font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; gap: 8px; min-width: 120px; }
.supply-meta b { color: var(--ink); }
#side { display: flex; flex-direction: column; gap: 8px; min-height: 0; position: relative; }
#scores { width: 100%; flex: none; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
#scores th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
#scores td { padding: 4px 8px; color: var(--ink-2); }
#scores th:not(:first-child), #scores .num { text-align: right; font-variant-numeric: tabular-nums; }
#scores tr.lead td { color: var(--ink); font-weight: 700; }
#scores .turnmark { display: inline-block; width: 14px; font-size: 10px; color: var(--ink); }
/* Shown only while hovering a card, drawn over the log (the scoreboard stays visible). */
#preview { position: absolute; inset: 0; overflow: hidden; z-index: 5; display: flex; align-items: flex-start; gap: 10px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; pointer-events: none; }
#preview .card { width: 160px; height: min(250px, 100%); min-height: 200px; --tfs: 12px; }
#preview .card .text { flex: 1 1 auto; }
/* Only the rules text may shrink; fitCards() then sizes it to fit. */
.card > :is(.cname, .role, .foot) { flex-shrink: 0; }
#preview .card .cname { font-size: 16px; }
#preview .card .art { flex-basis: 64px; font-size: 46px; }
#preview .card .role { font-size: 11.5px; }
#preview .card .foot { font-size: 11px; }
#preview .card .cost { width: 28px; height: 28px; font-size: 15px; }
#preview .notes { flex: 1; min-width: 0; }
#preview .flavor { font-size: 11.5px; font-style: italic; color: var(--ink-3); margin-top: 8px; }
.typehelp { list-style: none; margin: 0; padding: 0; font-size: 11.5px; line-height: 1.35; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.typehelp b { display: block; color: var(--ink); }
.dialog .typehelp { font-size: 13px; max-width: 60ch; }
.help td:first-child { white-space: nowrap; vertical-align: top; }
.help td { color: var(--ink-2); }
.help td b { color: var(--ink); }
#logwrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.loghead { display: flex; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink-2); font-size: 12px; }
#log { overflow-y: auto; padding: 6px 10px; font-size: 12.5px; line-height: 1.45; flex: 1; }
#log .e.turn { margin-top: 6px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 4px; }
#log .e .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--pc); }
#log .e.bonus { color: var(--accent); font-weight: 700; }
#game-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 6px 10px; }
#game-chat .chat-log { flex: 1; height: auto; }

#table { padding: 4px 14px; display: flex; gap: 14px; align-items: center; min-height: 104px; border-top: 1px solid var(--line); background: #221f1a; }
.status { display: flex; gap: 8px; flex: none; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; text-align: center; min-width: 64px; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; }
.stat.coins b { color: var(--accent); }
.stat.team { min-width: 92px; }
.stat.team b { font-size: 16px; line-height: 27px; letter-spacing: 2px; }
.playarea { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; padding: 6px 2px; flex: 1; align-items: center; }
.playarea .card { width: 70px; height: 100px; }
.playarea .card .text { display: none; }
.playarea .card .art { flex: 1; font-size: 28px; }
.playarea .card .cname { font-size: 9px; letter-spacing: -.2px; padding: 3px 2px 2px; }
.playarea .card .role { font-size: 8px; margin: 0 2px 3px; }
.playarea .card .foot { display: none; }
.playarea .label { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.playarea .gap { width: 10px; flex: none; }

#prompt { padding: 8px 14px; background: #2f2a22; border-top: 2px solid var(--accent); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; min-height: 54px; }
#prompt.waiting { border-top-color: var(--line); background: #221f1a; color: var(--ink-3); }
#prompt .ptext { font-weight: 700; font-size: 15px; }
#prompt .psub { color: var(--ink-2); font-size: 12px; }
#prompt .loose { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; padding-top: 6px; }

#me { padding: 6px 14px 12px; display: flex; gap: 14px; align-items: flex-end; background: #1a1713; border-top: 1px solid var(--line); }
#me .zones { display: flex; flex-direction: column; gap: 8px; flex: none; width: 150px; }
#me .whoami { font-weight: 800; border-left: 6px solid var(--pc); padding-left: 8px; }
#me .whoami small { display: block; color: var(--ink-3); font-weight: 500; }
#me .zinfo { font-size: 12px; color: var(--ink-2); }
.hand { display: flex; gap: 8px; flex: 1; overflow-x: auto; padding: 18px 4px 4px; min-height: 208px; align-items: flex-end; }
.hand .label { color: var(--ink-3); }
.actions-col { display: flex; flex-direction: column; gap: 8px; flex: none; width: 190px; }

/* ---------------- Modal / end-game ---------------- */
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.dialog { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; max-width: 980px; width: 100%; max-height: 92vh; overflow: auto; }
.dialog h2 { margin: 0 0 6px; font-size: 26px; }
.dialog .loose { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.scores { width: 100%; border-collapse: collapse; margin: 14px 0; }
.scores th, .scores td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.scores td.num, .scores th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scores tr.win td { font-weight: 800; }
.scores .crown { margin-right: 4px; }
.decklist { font-size: 12px; color: var(--ink-2); line-height: 1.5; font-weight: 400; }
.help td { padding: 4px 10px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #111; color: var(--ink); border: 1px solid var(--accent); padding: 10px 18px; z-index: 60; max-width: calc(100% - 32px); border-radius: 8px; }

.coin { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; color: #1d1a16; border: 3px solid rgba(0,0,0,.45); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.coin.m-seat-license { background: #c27a45; }
.coin.m-floating-license { background: #d9d9d9; }
.coin.m-enterprise-license { background: #f5cf3b; }
#preview .coin { width: 70px; height: 70px; font-size: 28px; }
.playarea .coin { width: 36px; height: 36px; font-size: 14px; }
.vpbadge { position: absolute; bottom: 2px; left: 6px; background: #1d1a16; color: #fff; font-weight: 900; font-size: 13px; border-radius: 4px; padding: 0 5px; line-height: 1.4; }
.vpbadge small { font-size: 8px; margin-left: 2px; }
.playarea .vpbadge { display: none; }

@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card.clickable:hover, .card.selected, .pile .card.buyable:hover { transform: none; } }
@media (max-width: 1100px) {
  #board { grid-template-columns: 1fr; overflow: visible; }
  #screen-game { height: auto; min-height: 100vh; }
  #side { height: 340px; }
  #preview { display: none; }
  .setup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #screen-game { display: block; height: auto; }
  #board { overflow: visible; padding: 4px 8px; }
  #supply { overflow: visible; gap: 12px; }
  .basecol, .kingdom { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 12px 8px; }
  .pile .card { width: 100%; }
  .opp { min-width: 0; flex: 1 1 100%; }
  #table { flex-wrap: wrap; }
  #prompt { position: sticky; bottom: 0; z-index: 5; }
  #me { flex-wrap: wrap; }
  #me .zones { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .actions-col { width: 100%; flex-direction: row; }
  .actions-col button { flex: 1; }
  .hand { min-height: 0; width: 100%; }
}
