.stack { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.stack .brand { font-size: 34px; justify-content: center; margin-bottom: 18px; }
.ribbon.small { align-self: center; font-size: 26px; letter-spacing: .08em; margin-bottom: 8px; }
.ribbon.me { font-size: 30px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 28px; }

.big-msg { font-size: 24px; font-weight: 800; line-height: 1.25; max-width: 18em; }
.center .muted { margin-top: 8px; }

.me-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.28);
  font-weight: 700; font-size: 17px;
}
.me-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-bar b { font-weight: 900; font-stretch: 115%; background: var(--chalk); color: var(--ink); padding: 3px 10px; border-radius: 6px; }

/* answering */
.a-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px 0; font-weight: 800; font-stretch: 110%; }
.a-kind { flex: 1; text-align: center; color: var(--ribbon); font-weight: 700; font-stretch: 100%; }
.timer.small { width: 52px; height: 52px; }
.timer.small span { font-size: 19px; }
.a-prompt { padding: 10px 16px 0; font-weight: 700; font-size: 17px; text-align: center; color: var(--chalk-dim); }
.play-tiles { flex: 1; padding: 12px 16px; gap: 10px; grid-auto-rows: 1fr; }
.play-tiles .tile { flex-direction: column; justify-content: center; text-align: center; gap: 10px; font-size: 18px; padding: 12px; min-height: 0; }
.play-tiles .tile.sel { outline: 5px solid var(--chalk); outline-offset: -5px; }
.play-tiles .tile.sel::after {
  content: "✓"; position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--chalk); color: var(--ink); display: grid; place-items: center; font-weight: 900;
}
.play-tiles .tile .txt { flex: none; }
.play-tiles .tile:active { transform: scale(.97); }
.play-tiles .tile:disabled { cursor: default; }
.send { padding: 0 16px 12px; }

/* result */
.result { transition: background .3s; }
.result.right { background: var(--right); }
.result.half { background: var(--half); }
.result.wrong, .result.none { background: var(--wrong); }
.res-icon {
  width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: grid; place-items: center; font-size: 54px; font-weight: 900; margin-bottom: 18px;
  animation: pop .35s cubic-bezier(.3,1.6,.5,1);
}
.result.right .res-icon { color: var(--right); }
.result.half .res-icon { color: var(--half); }
.result.wrong .res-icon, .result.none .res-icon { color: var(--wrong); }
.res-title { font-size: 34px; font-weight: 900; font-stretch: 110%; }
.res-gain { margin-top: 14px; font-size: 22px; font-weight: 800; background: rgba(0,0,0,.2); padding: 6px 18px; border-radius: 8px; }
.res-gain:empty { display: none; }
.res-rank { margin-top: 22px; font-size: 18px; font-weight: 600; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.place { font-size: 110px; font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--ribbon); margin: 10px 0 16px; }
.a-prompt.quote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 20px; color: var(--chalk); line-height: 1.25; }
.field.code::placeholder { font-size: 22px; letter-spacing: .02em; font-stretch: 100%; font-weight: 600; }
