.tools { flex-wrap: nowrap; }
.tools .btn { white-space: nowrap; }
.tile-word { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; white-space: nowrap; margin: 0 2px; }
.tile-word .tile { flex: none; display: inline-block; width: 20px; height: 28px; border-radius: 2px; margin: 2px 0 5px; box-shadow: 0 2px 0 #8fa48c; }
.tile-word .tile .face { inset: 1px; }
.inline-face { width: 100%; height: 100%; display: block; }
.htitle .tile-word .tile { width: 27px; height: 38px; }
.hintbox .hrow > span:last-child { min-width: 0; }
.hintbox .hrow { line-height: 1.9; }
.hintbox .htag { letter-spacing: 0; }
.hand .tile.selected, .hand .tile.selected:hover { transform: translateY(-8px); outline: 2px solid #f5d48e; outline-offset: 1px; }
.hand .tile { touch-action: manipulation; }
.bottom.my-turn .handwrap { border-top: 1px solid #e8cd9166; }
.handwrap { border-top: 1px solid transparent; }
.turn-notice { position: absolute; right: 28px; top: 6px; color: #f9dda4; font-size: 11px; pointer-events: none; }
.bottom.turn-arrival { animation: turn-arrival 1s ease-out; }
@keyframes turn-arrival { 0%, 50% { box-shadow: inset 0 0 0 2px #edd49b88; } 100% { box-shadow: inset 0 0 0 2px transparent; } }
.comfort-modal { text-align: left; max-width: 450px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: 21px; color: #f4e0b0; }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid #bdc8ad44; background: transparent; border-radius: 4px; cursor: pointer; }
.icon-btn:hover { background: #ffffff0c; }
.setting-field { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.setting-field legend { padding: 0; margin-bottom: 10px; font-size: 13px; color: #d6e1cf; }
.segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #a8bba04d; border-radius: 4px; overflow: hidden; }
.segments label { position: relative; cursor: pointer; }
.segments label + label { border-left: 1px solid #a8bba04d; }
.segments input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segments span { display: grid; place-items: center; min-height: 40px; font-size: 13px; }
.segments input:checked + span { background: #e2cd9b; color: #253f32; font-weight: 600; }
.segments input:focus-visible + span { outline: 2px solid white; outline-offset: -3px; }
.setting-toggle { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-top: 1px solid #ffffff12; gap: 12px; font-size: 13px; cursor: pointer; }
.setting-toggle input { width: 32px; height: 20px; accent-color: #e7cf98; cursor: pointer; }
.volume-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 34px 36px; align-items: center; gap: 12px; font-size: 12px; margin-top: 16px; }
.volume-row input { width: 100%; accent-color: #e7cf98; }
.volume-row output { color: #c6d4bd; text-align: right; }
.volume-row :disabled { opacity: .4; cursor: default; }
.panel-foot { display: flex; justify-content: flex-end; margin-top: 20px; }
.btn:disabled { opacity: .4; cursor: default; }
.round-review { padding: 14px 0; margin: 12px 0; border-top: 1px solid #c4cbaa33; border-bottom: 1px solid #c4cbaa33; text-align: left; }
.round-review h4 { color: #f1dbab; font-size: 14px; margin-bottom: 8px; }
.round-review p { color: #d2dfc9; font-size: 13px; line-height: 1.9; }
.review-hand { display: flex; flex-wrap: wrap; gap: 7px 4px; padding: 12px 0; }
.review-hand .tile { width: 27px; height: 38px; }
.review-hand .review-played { outline: 2px solid #d9927e; }
.review-hand .review-better { outline: 2px solid #b1d89d; }
.review-compare { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 12px; color: #c8d6bc; }
.round-review summary { color: #b3c8ad; cursor: pointer; font-size: 11px; margin-top: 10px; }
.review-summary { margin-bottom: 2px; }
.review-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.review-item { padding: 10px 12px; border-radius: 8px; border-left: 2px solid #d9bd7d66; background: rgba(0,0,0,.16); }
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.review-seq { font-size: 11.5px; color: #f1dbab; letter-spacing: .02em; }
.review-tag { font-size: 10.5px; color: #e7c58c; background: rgba(217,189,125,.14); border-radius: 20px; padding: 1px 8px; }
.review-item p { font-size: 12.5px; line-height: 1.9; color: #d2dfc9; }
.review-item .review-hand { padding-bottom: 4px; }
.review-item summary { margin-top: 6px; }
@media (max-width: 1100px) and (min-width: 561px) {
  .topbar { flex-wrap: wrap; height: auto; min-height: 110px; gap: 8px; }
  .tools { margin-left: auto; }
}
@media (max-width: 560px) {
  .tools { gap: 0; justify-content: space-between; width: 100%; }
  .tools .btn { min-height: 30px; padding: 3px 2px; font-size: 11px; }
  .turn-notice { top: 10px; right: 14px; font-size: 10px; }
  .hintbox .hrow { line-height: 1.8; }
  .tile-word .tile { width: 18px; height: 25px; }
  .htitle .tile-word .tile { width: 23px; height: 32px; }
  .comfort-modal { padding: 17px; }
  .overlay:has(.comfort-modal) { padding: 12px; z-index: 70; }
  .modal-head { margin-bottom: 12px; }
  .modal-head h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .bottom.turn-arrival { animation: none; }
}
