:root {
  color-scheme:dark;
  --bg:#142822;
  --panel:#1c302a;
  --ink:#f3ebdc;
  --muted:#a8b5aa;
  --line:#35473e;
  --red:#b64432;
  --gold:#d6b87c;
  --serif:Georgia,'Times New Roman',serif;
  --chinese:'Songti SC','STSong','Noto Serif CJK SC','SimSun',serif;
  font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:16px;
  font-synthesis:none
}

.fullscreen-status {
  display:none
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  min-width:320px
}

button,a {
  -webkit-tap-highlight-color:transparent
}

button {
  font:inherit;
  cursor:pointer
}

button:disabled {
  cursor:not-allowed;
  opacity:.35
}

button:focus-visible,a:focus-visible {
  outline:3px solid var(--gold);
  outline-offset:5px
}

a {
  color:inherit
}

svg {
  display:block
}

.app-shell {
  max-width:1300px;
  margin:auto;
  padding:0 56px
}

.site-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:104px;
  border-bottom:1px solid var(--line);
  gap:24px
}

.brand {
  display:flex;
  gap:15px;
  align-items:center;
  text-decoration:none
}

.brand-seal {
  width:47px;
  height:49px;
  background:var(--red);
  border-radius:3px;
  display:grid;
  place-items:center;
  font-family:var(--chinese);
  font-size:33px;
  box-shadow:inset 0 0 0 3px var(--red),inset 0 0 0 4px #df8c724d;
  transform:rotate(-3deg)
}

.brand-name {
  display:flex;
  gap:16px;
  align-items:baseline;
  font-family:var(--serif);
  font-size:31px;
  letter-spacing:-1px
}

.brand-chinese {
  font:14px var(--chinese);
  letter-spacing:3px;
  color:var(--muted)
}

.header-right {
  display:flex;
  align-items:center;
  gap:28px
}

.local-label {
  font-size:14px;
  color:var(--muted)
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:44px;
  padding:11px 17px;
  border:1px solid transparent;
  border-radius:5px;
  font-size:14px;
  font-weight:500;
  transition:background .16s,transform .16s
}

.button svg,.mode-badge svg {
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round
}

.button-quiet {
  color:var(--ink);
  background:transparent;
  padding:9px 8px
}

.button-quiet:hover:not(:disabled) {
  background:#ffffff09
}

.help-icon {
  display:grid;
  place-items:center;
  border:1px solid #95a79a;
  width:19px;
  height:19px;
  border-radius:50%;
  font-size:12px;
  color:var(--muted)
}

.game-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:58px;
  align-items:start;
  max-width:1100px;
  margin:27px auto 0
}

.board-area {
  width:100%;
  max-width:620px;
  margin:0 auto
}

.play-settings {
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel)
}

.choice-group {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px
}

.choice-button {
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:5px;
  background:transparent;
  color:var(--muted);
  font-size:14px
}

.choice-button[aria-pressed=true] {
  border-color:var(--gold);
  background:#d6b87c1c;
  color:var(--ink);
  font-weight:600
}

.choice-button:hover:enabled {
  border-color:var(--gold)
}

.side-choices {
  margin-top:10px
}

.side-symbol {
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  border:1px solid currentColor;
  border-radius:50%;
  font:20px var(--chinese)
}

.side-symbol.red {
  color:#f1bca2;
  background:#552c25
}

.side-symbol.black {
  color:#ded6b9;
  background:#354438
}

.mode-help {
  margin:10px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.7
}

.point.face-opponent .piece-symbol,.point.face-opponent .check-badge,.player-bar.face-opponent {
  transform:rotate(180deg)
}

.player-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:57px;
  padding:0 3px
}

.player-id {
  display:flex;
  align-items:center;
  gap:11px
}

.avatar {
  height:33px;
  width:33px;
  border:1px solid #56675b;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-family:var(--chinese);
  font-size:21px;
  color:#d4dcd0;
  background:#263b32
}

.avatar.red {
  color:#f1bca2;
  background:#552c25;
  border-color:#805247
}

.player-name {
  font-size:14px;
  font-weight:600
}

.player-description {
  font-size:12px;
  color:var(--muted);
  margin-left:8px;
  font-weight:400
}

.turn-tag {
  font-size:12px;
  color:var(--gold);
  background:#d6b87c12;
  padding:5px 9px;
  border-radius:4px;
  white-space:nowrap
}

.captures {
  display:flex;
  gap:2px;
  align-items:center;
  flex-wrap:wrap;
  max-width:50%;
  justify-content:flex-end
}

.captured-piece {
  font-family:var(--chinese);
  font-size:16px;
  color:#c3aa85
}

.captured-piece.red {
  color:#e1a086
}

.board-frame {
  background:#b8945b;
  border-radius:5px;
  padding:13px;
  box-shadow:0 22px 42px #07120e45,0 2px 3px #0003,inset 0 0 0 1px #e8c99155;
  position:relative
}

.board {
  position:relative;
  aspect-ratio:9/10;
  background:#dbc095;
  box-shadow:inset 0 0 50px #906c3320;
  color:#453b2c;
  border:1px solid #9c7e4c;
  border-radius:2px;
  user-select:none
}

.board-lines {
  position:absolute;
  inset:0;
  width:100%;
  height:100%
}

.river-label {
  font-family:var(--chinese);
  letter-spacing:8px
}

.point {
  position:absolute;
  width:10.5%;
  height:9.45%;
  padding:0;
  border:0;
  background:transparent;
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  border-radius:50%;
  z-index:2;
  color:#302f28;
  touch-action:manipulation
}

.point:focus {
  outline:none
}

.point:focus-visible {
  outline:3px solid #326859;
  outline-offset:1px
}

.point:not(.occupied):hover:enabled {
  background:#76582d0d
}

.piece {
  width:88%;
  height:88%;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-family:var(--chinese);
  font-size:clamp(21px,3.05vw,39px);
  line-height:1;
  background:radial-gradient(circle at 35% 25%,#ffedca,#e9cda3 80%);
  box-shadow:0 3px 0 #aa8252,0 4px 5px #4f341d55,inset 0 0 0 1px #b6936233;
  position:relative;
  border:1px solid #d9b88c;
  transition:transform .12s,box-shadow .12s
}

.piece:before {
  content:'';
  position:absolute;
  inset:7%;
  border:1px solid currentColor;
  border-radius:50%;
  opacity:.55
}

.piece.red {
  color:#aa3023
}

.piece.black {
  color:#29352b
}

.point.occupied:hover:enabled .piece {
  transform:translateY(-2px)
}

.point.selected .piece {
  transform:translateY(-3px);
  box-shadow:0 3px 0 #aa8252,0 0 0 4px #3b7564,0 5px 10px #3a291d70
}

.point.legal:after {
  content:'';
  width:19%;
  height:19%;
  border-radius:50%;
  background:#2c6657;
  box-shadow:0 0 0 5px #2c665718;
  position:absolute;
  pointer-events:none
}

.point.legal.occupied:after {
  width:96%;
  height:96%;
  background:none;
  box-shadow:none;
  border:3px solid #2c6657
}

.point.last-move:before {
  content:'';
  position:absolute;
  inset:8%;
  background:#a86c3030;
  border:1px solid #92622470;
  border-radius:7px;
  transform:rotate(45deg)
}

.point.in-check .piece {
  box-shadow:0 3px 0 #aa8252,0 0 0 4px #b7271b,0 0 0 6px #ffe5bf,0 0 22px #b64432a0
}

.check-badge {
  position:absolute;
  bottom:-8px;
  padding:2px 7px;
  border:1px solid #ffdec4;
  border-radius:4px;
  background:#9a291f;
  color:#fff3de;
  font:700 11px/1.4 sans-serif;
  white-space:nowrap;
  pointer-events:none
}

.game-alert {
  display:flex;
  align-items:center;
  gap:16px;
  max-width:1100px;
  margin:18px auto 0;
  padding:16px 22px;
  border:2px solid #f1a181;
  border-left:7px solid #ffb695;
  border-radius:8px;
  background:#782f25;
  color:#fff2db;
  box-shadow:0 8px 24px #0003;
  position:sticky;
  top:8px;
  z-index:5
}

.game-alert-symbol {
  display:grid;
  place-items:center;
  flex:0 0 48px;
  height:48px;
  border:2px solid currentColor;
  border-radius:50%;
  font:700 30px var(--chinese)
}

.game-alert h2 {
  margin:0;
  font:700 clamp(25px,3vw,32px)/1.25 var(--chinese);
  letter-spacing:2px
}

.game-alert p {
  margin:6px 0 0;
  font-size:14px;
  line-height:1.6
}

.game-alert-ended {
  background:#513b20;
  border-color:#eac587;
  color:#fff0cf
}

@media(max-width:800px) {
  .game-alert {
    max-width:560px;
    padding:12px;
    gap:12px
  }
  .game-alert-symbol {
    flex-basis:40px;
    height:40px;
    font-size:26px
  }
}

.file-label,.rank-label {
  position:absolute;
  font-size:11px;
  color:#5d4b32;
  pointer-events:none;
  line-height:1
}

.file-label {
  bottom:.5%;
  transform:translateX(-50%)
}

.rank-label {
  left:.75%;
  transform:translateY(-50%)
}

.board-toolbar {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding-top:2px
}

.board-toolbar .button {
  font-size:13px;
  color:#c0cbbb
}

.toolbar-divider {
  height:18px;
  width:1px;
  background:var(--line)
}

.board-hint {
  font:italic 14px var(--serif);
  color:#91a18f;
  margin-left:auto
}

.game-panel {
  margin-top:15px;
  padding-top:6px
}

.panel-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px
}

.eyebrow {
  font-size:11px;
  letter-spacing:1.7px;
  font-weight:600;
  color:var(--muted);
  margin:0
}

.mode-badge {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:#bbcabd
}

.mode-badge svg {
  width:15px;
  height:15px
}

.turn-section {
  display:flex;
  gap:15px;
  align-items:center;
  margin-top:36px
}

.turn-piece {
  font:32px var(--chinese);
  height:55px;
  width:55px;
  border-radius:50%;
  display:grid;
  place-items:center;
  border:1px solid #a56b56;
  color:#f1bd9b;
  background:#7e382a;
  box-shadow:inset 0 0 0 4px #7e382a,inset 0 0 0 5px #a56b56;
  flex-shrink:0
}

.turn-piece.black {
  color:#ded6b9;
  background:#354438;
  border-color:#8a9981;
  box-shadow:inset 0 0 0 4px #354438,inset 0 0 0 5px #8a9981
}

.turn-kicker {
  font-size:10px;
  letter-spacing:1.7px;
  color:#b6bdab;
  margin:0 0 7px
}

h1 {
  font:34px/1.1 var(--serif);
  font-weight:400;
  letter-spacing:-.8px;
  margin:0
}

.status-detail {
  font-size:14px;
  line-height:1.65;
  color:var(--muted);
  margin:20px 0 23px;
  min-height:46px
}

.button-primary {
  background:var(--gold);
  color:#253528;
  border-color:var(--gold)
}

.button-primary:hover {
  background:#e5c98f;
  border-color:#e5c98f
}

.game-panel>.button-primary {
  width:100%;
  min-height:47px
}

.button-secondary {
  background:#2a3f35;
  color:var(--ink);
  border:1px solid #4a6051
}

.history-section {
  margin-top:31px;
  border-top:1px solid var(--line);
  padding-top:24px
}

.section-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between
}

h2 {
  margin:0;
  font-size:15px;
  font-weight:500
}

.count-label {
  font-size:12px;
  color:var(--muted)
}

.history-columns {
  display:grid;
  grid-template-columns:35px 1fr 1fr;
  font-size:11px;
  color:#9bab9d;
  border-bottom:1px solid var(--line);
  padding:19px 8px 10px;
  letter-spacing:.4px
}

.history-columns span {
  display:flex;
  align-items:center;
  gap:7px
}

.red-dot,.black-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#c56c56;
  display:inline-block
}

.black-dot {
  background:#93a58f
}

.history-list {
  height:180px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#536451 transparent
}

.history-empty {
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#839681;
  text-align:center
}

.history-empty svg {
  width:30px;
  height:30px;
  stroke:currentColor;
  fill:none;
  stroke-width:1;
  margin-bottom:12px
}

.history-empty p {
  font-size:13px;
  line-height:1.65;
  margin:0
}

.history-empty small {
  font-size:12px;
  opacity:.7
}

.history-row {
  display:grid;
  grid-template-columns:35px 1fr 1fr;
  align-items:center;
  min-height:41px;
  padding:0 8px;
  font-size:13px;
  border-bottom:1px solid #35473e66
}

.history-row:nth-child(even) {
  background:#ffffff03
}

.move-number {
  font-size:12px;
  color:#849581
}

.move-entry {
  display:flex;
  gap:6px;
  align-items:center;
  color:#bdc8b9;
  white-space:nowrap
}

.move-glyph {
  font:19px var(--chinese);
  color:#ded7c4
}

.move-glyph.red {
  color:#df947d
}

.move-entry.latest {
  color:#f0dfb5
}

.move-mark {
  font-size:12px;
  color:var(--gold)
}





.game-actions {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:15px;
  margin-top:20px;
  color:#6d836e
}

.text-button {
  background:none;
  border:none;
  color:#a5b39f;
  padding:8px 1px;
  font-size:12px
}

.text-button:hover {
  color:var(--gold)
}

.site-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  border-top:1px solid var(--line);
  margin-top:28px;
  padding:21px 0 26px;
  font-size:12px;
  color:#859883
}

.site-footer [lang=zh] {
  font-family:var(--chinese);
  letter-spacing:3px
}

.modal {
  width:min(640px,calc(100% - 32px));
  max-height:calc(100dvh - 48px);
  padding:32px;
  background:#1c3028;
  color:var(--ink);
  border:1px solid #52604b;
  border-radius:9px;
  box-shadow:0 30px 80px #0006
}

.modal::backdrop {
  background:#04100ad9;
  backdrop-filter:blur(5px)
}

.modal-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px
}

.modal h2 {
  font:34px var(--serif);
  margin-top:10px
}

.icon-button {
  border:0;
  background:#ffffff08;
  color:var(--muted);
  font-size:28px;
  line-height:1;
  width:36px;
  height:36px;
  border-radius:50%
}

.modal-intro,.confirm-modal>p:not(.eyebrow) {
  font-size:15px;
  line-height:1.65;
  color:#b6c1af;
  margin:18px 0 23px
}

.piece-rules {
  display:grid;
  gap:16px;
  margin-bottom:24px
}

.rule-row {
  display:flex;
  gap:16px;
  align-items:flex-start
}

.rule-glyphs {
  font:25px var(--chinese);
  color:#d1b286;
  min-width:64px;
  padding-top:2px
}

.rule-row h3 {
  font-size:14px;
  margin:0 0 4px;
  font-weight:500
}

.rule-row p {
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
  margin:0
}

.guide-note {
  font-size:14px;
  line-height:1.6;
  background:#d6b87c0a;
  padding:15px;
  border-left:2px solid var(--gold);
  color:#c3c8b5
}

.guide-note strong {
  color:var(--gold);
  font-weight:500
}

.casual-note,.keyboard-note {
  font-size:12px;
  line-height:1.7;
  color:#9caa94
}

.rules-source {
  font-size:12px;
  color:var(--gold);
  display:inline-block;
  margin:2px 0 25px;
  text-underline-offset:3px
}

.guide-modal>.button {
  display:flex;
  width:100%
}

.confirm-modal {
  max-width:440px
}

.modal-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:25px
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}

@media(min-width:1000px) and (max-height:850px) {
  .site-header {
    min-height:87px
  }
  .game-layout {
    margin-top:17px;
    gap:50px;
    grid-template-columns:minmax(0,550px) 320px;
    justify-content:center
  }
  .board-area {
    max-width:calc((100dvh - 232px)*.9)
  }
  .player-bar {
    min-height:48px
  }
  .board-frame {
    padding:10px
  }
  .site-footer {
    margin-top:15px;
    padding:14px 0
  }
  .turn-section {
    margin-top:28px
  }
  .history-list {
    height:155px
  }

  .piece {
    font-size:clamp(24px,4.2vh,36px)
  }
}

@media(max-width:1050px) {
  .app-shell {
    padding:0 32px
  }
  .game-layout {
    gap:32px;
    grid-template-columns:minmax(0,1fr) 292px
  }
  .brand-chinese {
    display:none
  }
  .board-frame {
    padding:10px
  }
  .board-hint {
    display:none
  }
  .piece {
    font-size:3.3vw
  }
  .history-list {
    height:150px
  }
  .turn-section {
    gap:12px
  }
  h1 {
    font-size:31px
  }
}

@media(max-width:800px) {
  .app-shell {
    padding:0 24px
  }
  .site-header {
    min-height:86px
  }
  .game-layout {
    grid-template-columns:minmax(0,1fr);
    gap:27px;
    max-width:560px;
    margin-top:16px
  }
  .board-area {
    max-width:none
  }
  .game-panel {
    margin-top:0;
    padding:22px;
    border:1px solid var(--line);
    border-radius:7px;
    background:#192d25
  }
  .turn-section {
    margin-top:24px
  }
  .piece {
    font-size:clamp(23px,5.8vw,40px)
  }
  .board-hint {
    display:block
  }
  .history-list {
    height:200px
  }
  .history-section {
    margin-top:26px
  }

  .game-actions {
    margin-top:14px
  }
  .site-footer {
    max-width:560px;
    margin-left:auto;
    margin-right:auto
  }
  .status-detail {
    min-height:0
  }
  .local-label {
    display:none
  }
  .board-frame {
    padding:11px
  }
}

@media(max-width:440px) {
  .app-shell {
    padding:0 14px
  }
  .site-header {
    min-height:78px;
    gap:10px
  }
  .brand {
    gap:10px
  }
  .brand-name {
    font-size:27px
  }
  .brand-seal {
    width:39px;
    height:41px;
    font-size:28px
  }
  .header-right .button {
    font-size:12px;
    gap:6px
  }
  .help-icon {
    width:17px;
    height:17px
  }
  .game-layout {
    margin-top:8px
  }
  .board-frame {
    padding:8px
  }
  .piece {
    font-size:6.3vw
  }
  .player-description {
    display:none
  }
  .player-bar {
    min-height:50px
  }
  .board-hint {
    display:none
  }
  .board-toolbar {
    justify-content:center;
    padding-top:5px
  }
  .game-panel {
    padding:20px
  }
  .modal {
    padding:23px
  }
  .site-footer {
    font-size:11px;
    gap:10px
  }
  .site-footer [lang=zh] {
    letter-spacing:1px
  }
  .file-label,.rank-label {
    font-size:8px
  }
  .rule-glyphs {
    min-width:56px;
    font-size:23px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    transition:none!important;
    scroll-behavior:auto!important
  }
}

/* Chinese typography and shared-game connection status. */
.brand-name {
  font-family:var(--chinese);
  font-size:30px;
  letter-spacing:2px
}

.brand-chinese {
  font:12px var(--chinese);
  letter-spacing:2px
}

.turn-kicker {
  font-size:12px;
  letter-spacing:2px
}

h1 {
  font-family:var(--chinese);
  letter-spacing:1px;
  font-size:33px
}

.eyebrow {
  font-size:12px;
  letter-spacing:2px
}

.status-detail {
  line-height:1.8;
  margin-bottom:12px
}

.sync-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:28px;
  margin-bottom:15px;
  font-size:12px;
  color:#97b39a
}

.sync-error {
  color:#edbb82
}

.sync-line .text-button {
  padding:3px 0;
  color:var(--gold)
}

[hidden] {
  display:none!important
}

.point:disabled {
  opacity:1
}

.board[aria-busy=true] {
  cursor:wait
}

.history-empty p {
  font-size:14px;
  letter-spacing:1px
}



.board-toolbar .button,.game-actions .text-button {
  font-size:14px
}

.modal h2 {
  font-family:var(--chinese)
}

.modal-intro {
  line-height:1.9
}

.board-hint {
  font:13px var(--chinese);
  letter-spacing:1px
}

.turn-tag {
  font-size:12px
}

.turn-piece {
  line-height:1
}

.brand-chinese {
  display:none
}

.history-list {
  height:163px
}

@media(max-width:800px) {
  .history-list {
    height:200px
  }
}

@media(max-width:440px) {
  .brand-name {
    font-size:25px;
    letter-spacing:1px
  }
  .header-right .button {
    font-size:14px
  }
  .game-panel {
    padding:20px
  }
  .site-footer {
    font-size:12px;
    flex-wrap:wrap
  }
  .site-footer [lang=zh] {
    letter-spacing:1px
  }
}

/* Board-only view also works when a browser cannot enter native fullscreen. */
html.board-fullscreen {
  overflow:hidden
}

.board-fullscreen .app-shell {
  height:100vh;
  height:100dvh;
  max-width:none;
  padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  display:flex;
  flex-direction:column;
  gap:4px
}

.board-fullscreen .site-header,.board-fullscreen .play-settings,.board-fullscreen .game-panel,.board-fullscreen .site-footer,.board-fullscreen .board-hint {
  display:none
}

.board-fullscreen .game-layout {
  display:flex;
  flex:1;
  min-height:0;
  width:100%;
  max-width:none;
  margin:0
}

.board-fullscreen .board-area {
  display:grid;
  grid-template-rows:30px 26px minmax(0,1fr) 26px 44px;
  width:100%;
  height:100%;
  max-width:none
}

.board-fullscreen .fullscreen-status {
  display:block;
  text-align:center;
  font-size:12px;
  line-height:1.3;
  color:var(--gold)
}

.board-fullscreen .board-stage {
  min-height:0;
  display:grid;
  place-items:center;
  container-type:size
}

.board-fullscreen .board-frame {
  width:min(100%,calc((100dvh - 160px)*.9));
  width:min(100cqw,calc((100cqh - 12px)*.9 + 12px));
  padding:6px
}

.board-fullscreen .piece {
  font-size:clamp(14px,min(6cqw,5.4cqh),52px)
}

.board-fullscreen .player-bar {
  width:100%;
  max-width:600px;
  min-height:0;
  justify-self:center
}

.board-fullscreen .avatar {
  width:23px;
  height:23px;
  font-size:17px
}

.board-fullscreen .turn-tag {
  padding:2px 6px
}

.board-fullscreen .board-toolbar {
  justify-content:center;
  flex-wrap:nowrap;
  gap:6px;
  padding:0
}

.board-fullscreen .board-toolbar .button {
  min-height:40px;
  padding:7px;
  font-size:12px;
  white-space:nowrap
}

.board-fullscreen .game-alert {
  position:static;
  flex:none;
  margin:0 auto;
  padding:6px 12px;
  max-width:800px
}

.board-fullscreen .game-alert h2 {
  font-size:19px
}

.board-fullscreen .game-alert-symbol,.board-fullscreen .game-alert p {
  display:none
}
