/* Player phone: one job per glance. Cards and chips at the top, the three moves at thumb height. */
body { min-height: 100dvh; padding-block-end: env(safe-area-inset-bottom, 0px); }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px var(--gutter); background: var(--wall); border-block-end: 2px solid var(--rule); }
.bar .brand { margin-inline-end: auto; white-space: nowrap; }
.bar .brand b { font-size: 20px; }
.bar .lang button { padding: 6px 9px; min-height: 36px; font-size: 14px; }
.me-plate { padding: 5px 12px; font-weight: 800; font-size: 15px; box-shadow: var(--note-shadow); max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-plate.y { background: var(--yellow); } .me-plate.m { background: var(--magenta); } .me-plate.c { background: var(--cyan); } .me-plate.l { background: var(--lime); }
.mine .card.big:not(.slot)::before { content: ''; position: absolute; inset-block-start: -9px; inset-inline-start: 50%; translate: -50% 0; width: 44%; height: 14px; background: var(--tape); rotate: -4deg; }
.mine .card.big:nth-child(2)::before { rotate: 5deg; }
.hand-row { margin-block-start: 6px; }
.round-chip { background: var(--yellow); padding: 4px 8px; font-weight: 800; font-size: 13px; box-shadow: var(--note-shadow); max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--warn); }
.net svg { width: 18px; height: 18px; }
.phone { max-width: 520px; margin-inline: auto; padding: 14px var(--gutter) 28px; display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.join-note { padding: 22px 18px 18px; margin-block-start: 8px; }
.join-note h1 { font-size: 44px; margin: 0 0 8px; }
.join-note p { margin: 0; font-size: 16px; }
.code-input { font-family: var(--display); font-weight: 900; font-stretch: 75%; font-size: 30px; letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.btn.big { min-height: 56px; font-size: 18px; }
.err { color: var(--warn); font-weight: 700; min-height: 1.2em; margin: 0; }
.wait-note { padding: 26px 18px; margin-block-start: 20px; }
.wait-note .disp { font-size: 38px; margin: 0 0 8px; }
.wait-note p { margin: 0; font-size: 17px; }

.goal { margin: 0; background: var(--yellow); padding: 8px 12px; font-weight: 700; font-size: 15px; box-shadow: var(--note-shadow); }
.goal.off { background: transparent; box-shadow: none; outline: 2px dashed var(--ink-2); outline-offset: -2px; color: var(--ink-2); font-weight: 600; }

.hand-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: stretch; }
.mine { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mine .cards { gap: 8px; flex-wrap: nowrap; }
.mine .card.big { width: min(112px, calc((100vw - 2 * var(--gutter) - 108px - 28px) / 2)); }
.mine .card.big .r { font-size: clamp(26px, 8vw, 36px); }
.peek { border: 0; background: transparent; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; padding: 6px 2px; min-height: 40px; text-decoration: underline; text-underline-offset: 4px; }
.peek svg { width: 20px; height: 20px; }
.chips-note { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; width: 108px; background: var(--paper); text-align: end; }
.chips-note b { font-size: 52px; }

/* strength: a word, a bar, one line */
.help { display: grid; gap: 6px; }
.help .verdict { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.help .verdict b { font-size: 30px; }
.meter { height: 12px; background: var(--wall-2); outline: 2px solid var(--ink); outline-offset: -2px; position: relative; }
.meter i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--ink); }
.help p { margin: 0; font-size: 14px; }
.lvl-strong { background: var(--lime); } .lvl-medium { background: var(--yellow); } .lvl-weak { background: var(--paper); }
.rec { font-weight: 800; font-size: 17px; }

/* the three moves: notes at thumb height */
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.act { position: relative; border: 0; min-height: 76px; padding: 10px 6px 8px; box-shadow: var(--note-shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--paper); transition: transform .12s ease-out; }
.act b { font-family: var(--display); font-weight: 900; font-stretch: 75%; font-size: 24px; text-transform: uppercase; line-height: 1; }
[dir="rtl"] .act b { font-family: var(--he); text-transform: none; font-size: 22px; }
.act small { font-size: 12px; line-height: 1.2; text-align: center; }
.act.call { background: var(--cyan); } .act.raise { background: var(--yellow); }
.act:active:not([disabled]) { transform: translateY(2px); }
.act[disabled] { opacity: .35; cursor: not-allowed; box-shadow: none; outline: 2px dashed var(--ink-2); outline-offset: -2px; background: transparent; }
.act .sug { position: absolute; inset-block-start: -10px; inset-inline-end: -6px; background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 2px 7px; }
.act.picked { outline: 3px solid var(--ink); outline-offset: -3px; }

.shared { border-block: 2px solid var(--rule); padding-block: 12px; display: grid; gap: 10px; }
.shared-head { display: flex; justify-content: space-between; align-items: baseline; }
.shared .card { width: 52px; }
.pot b { font-size: 34px; }
.result { margin: 0; font-weight: 700; }
.result:empty { display: none; }

.secret.m { background: var(--magenta); } .secret.y { background: var(--yellow); }
.secret .lbl { margin: 0 0 4px; }
.secret p { margin: 0; font-size: 16px; font-weight: 600; }
.advice-note .acts { margin-block-start: 8px; }
.mates { display: grid; gap: 8px; }
.mate { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mate .cards { gap: 4px; }

.flag { width: 100%; }
.flag.done { background: var(--magenta); outline: 0; box-shadow: var(--note-shadow); }
.ranks { background: var(--paper); box-shadow: var(--note-shadow); padding: 12px 14px; }
.ranks summary { font-weight: 700; min-height: 32px; cursor: pointer; }
.ranks ol { margin: 8px 0 0; padding-inline-start: 22px; display: grid; gap: 4px; font-size: 14px; }
