:root {
  --gold: #dec895;
  --gold-dim: #a99e78;
  --ivory: #faf9f1;
  --ink: #233d35;
  --felt-1: #337c68;
  --felt-2: #246353;
  --felt-3: #174b41;
}

body {
  background: #182e29;
  color: #f1f3e9;
  background-image: url("../assets/table-pattern.svg");
}

button, .tile { -webkit-tap-highlight-color: transparent; }
button:focus-visible, .tile:focus-visible, summary:focus-visible {
  outline: 2px solid #ead5a4;
  outline-offset: 5px;
}
button img { width: 17px; height: 17px; opacity: .8; filter: invert(90%) sepia(12%) saturate(300%) hue-rotate(30deg); }
.app { max-width: 1440px; padding: 0 48px; }
.topbar { height: 110px; padding: 20px 0; gap: 28px; }
.brand { gap: 15px; }
.logo {
  width: 47px; height: 55px; flex: none; border-radius: 6px;
  background: #f4f1e4; color: #286850;
  font-family: "KaiTi", "STKaiti", serif; font-size: 34px;
  border: 1px solid #fff9df;
  box-shadow: 0 4px 0 #8faaa0, 0 7px 12px #0a211b70;
  transform: rotate(-7deg);
}
.brand h1 { font-family: "SimSun", "Songti SC", serif; font-size: 25px; font-weight: 700; letter-spacing: 0; overflow: visible; }
.brand-tag { display: inline-block; font-family: "Microsoft YaHei", sans-serif; font-size: 10px; font-weight: 400; color: #c0cbb9; padding-left: 14px; vertical-align: middle; }
.brand .sub { font-size: 11px; color: #99b0a3; margin-top: 8px; }
.caijin-box { background: transparent; border: 0; border-left: 1px solid #b6c7ae24; border-radius: 0; padding: 0 28px; gap: 15px; }
.caijin-label { font-size: 11px; letter-spacing: 0; color: #d7d7b8; }
.caijin-slot .tile { box-shadow: 0 3px 0 #8a9c88, 0 5px 8px #09271e50; }
.tools { gap: 6px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid #d2d9c326; background: #ffffff04; border-radius: 5px; padding: 10px 15px; font-size: 12px; }
.tools .btn { border-color: transparent; color: #c7d4c5; }
.tools .btn:hover { background: #ffffff0c; color: #fff6da; }
.btn.primary { background: #dec795; border: 1px solid #eedbb5; color: #354238; box-shadow: 0 3px 0 #a88b58, 0 6px 12px #0002; }
.btn.primary:hover { background: #e8d2a5; }
.btn.big { border-radius: 5px; }

.table {
  height: clamp(340px, calc(100dvh - 390px), 650px);
  min-height: 340px;
  grid-template-columns: 132px minmax(0, 1fr) 132px;
  grid-template-rows: 106px minmax(0, 1fr);
  gap: 0;
  padding: 22px 24px 14px;
  border: 9px solid #3d5146;
  border-bottom: 0;
  border-radius: 110px 110px 0 0;
  background: url("../assets/table-pattern.svg"), radial-gradient(ellipse at 50% 35%, #387f6b, #286b5a 60%, #225c4e);
  box-shadow: inset 0 0 0 1px #c0c49a4d, inset 0 0 0 7px #174e402e, inset 0 8px 24px #103c3540, 0 0 0 1px #111f1a, 0 -4px 0 #65705a, 0 14px 45px #081e1a3d;
}
.table::before {
  content: ""; position: absolute; inset: 15px 15px 0;
  border: 1px solid #c7ce9d30; border-bottom: 0; border-radius: 85px 85px 0 0; pointer-events: none;
}
.table-caption { position: absolute; top: 35px; left: 50px; display: flex; align-items: center; gap: 9px; font-size: 10px; color: #c5d4bc99; }
.live-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #b9c98d; flex: none; }
.caption-divider { opacity: .4; margin: 0 3px; }
.table-edition { position: absolute; top: 37px; right: 48px; font-size: 9px; color: #d0d8bd66; }
.seat { position: relative; z-index: 2; gap: 7px; padding: 5px; }
.seat-top { gap: 13px; align-self: start; padding-top: 3px; flex-wrap: wrap; max-width: 400px; justify-self: center; }
.seat-top .backrow { flex-basis: 100%; justify-content: center; margin-top: 2px; }
.seat-top .melds-row { position: absolute; top: 93px; }
.seat-left, .seat-right { align-self: center; margin-bottom: 35px; }
.avatar {
  width: 60px; height: 60px; border-radius: 50%; border: 2px solid #d6d1a073;
  background: #b5c9b0; box-shadow: 0 4px 10px #143e353d;
}
.portrait { width: 100%; height: 100%; border-radius: inherit; overflow: hidden; display: block; }
.avatar .wind { right: -5px; bottom: -2px; width: 21px; height: 21px; font-size: 10px; background: #e5dbb7; border: 2px solid #386d57; color: #3a5543; }
.avatar .dealer { top: -3px; left: -6px; border-radius: 3px; padding: 2px 4px; background: #af5949; color: #fff5db; font-size: 9px; letter-spacing: 0; }
.seat.active .avatar, .myinfo.active .avatar { border-color: #f0d398; box-shadow: 0 0 0 4px #f0d39825, 0 5px 15px #123c3040; }
.pname { color: #f1efdb; font-size: 13px; }
.pmeta { color: #a4c4b1; font-size: 10px; gap: 10px; }
.pmeta .cnt { padding: 1px 0; background: transparent; }
.pscore { color: #e2d4a4; font-size: 11px; font-variant-numeric: tabular-nums; }
.seat > .pscore::before { content: "积分 "; font-size: 9px; color: #9fc0aa; }
.backrow { gap: 3px; }
.backrow .tile.back { width: 19px; height: 27px; border-radius: 3px; }
.tile.back { background: #a9c2a0; border: 1px solid #d2dbb7; box-shadow: 0 3px 0 #547f66, 0 5px 5px #123b3350; }
.tile.back::after { inset: 3px; border-radius: 1px; border: 1px solid #dae2bd80; background: repeating-linear-gradient(45deg, transparent 0 3px, #61856b30 3px 4px); }

.center {
  grid-template-columns: minmax(50px, 100px) minmax(0, 1fr) minmax(50px, 100px);
  grid-template-rows: minmax(58px, 1fr) 148px minmax(58px, 1fr);
  gap: 6px; border: 0; border-radius: 0; padding: 0 12px 14px;
  background: transparent; box-shadow: none; position: relative;
}
.hud { padding: 0; gap: 6px; }
.hud::before { display: none; }
.compass { position: relative; width: 105px; height: 105px; flex: none; border: 1px solid #c7d2b33d; border-radius: 12px; background: #1f594c45; box-shadow: inset 0 0 0 5px #ffffff03, 0 3px 10px #163f3430; }
.compass::before { content: ""; position: absolute; inset: 25px; border: 1px solid #c5cba243; transform: rotate(45deg); }
.compass span { position: absolute; font-family: "SimSun", serif; font-size: 14px; color: #c4d2b59c; line-height: 20px; text-align: center; width: 20px; height: 20px; }
.compass .compass-n { top: 4px; left: 42px; }
.compass .compass-s { bottom: 4px; left: 42px; }
.compass span.current { color: #f6d28e; text-shadow: 0 0 8px #f6d28e44; }
.compass .compass-w { left: 4px; top: 42px; }
.compass .compass-e { right: 4px; top: 42px; }
.compass .compass-mark { width: 46px; height: 46px; top: 29px; left: 29px; font-family: "KaiTi", serif; font-size: 34px; line-height: 46px; color: #cbd3aa96; }
.wall-count { gap: 6px; }
.wall-count b { font-size: 19px; color: #e1d7ad; font-weight: 500; }
.wall-count span { font-size: 10px; color: #b3c9b4; }
.turn-tip { background: transparent; color: #e2dfba; font-size: 11px; padding: 0; }
.pool { gap: 4px; overflow: auto; scrollbar-width: thin; scrollbar-color: #bfc8a644 transparent; }
.pool-top { align-content: safe flex-end; }
.pool-top, .pool-bottom { width: min(100%, 330px); justify-self: center; }
.pool-top { padding-bottom: 5px; }
.pool-bottom { padding-top: 5px; }
.pool-left { padding-right: 6px; }
.pool-right { padding-left: 6px; }

.tile {
  width: 52px; height: 73px; border-radius: 5px;
  background: linear-gradient(110deg, #fffef8, #f4f3e8);
  border: 1px solid #e5e3ce;
  box-shadow: inset 1px 1px 0 #fff, inset -2px 0 2px #cfceb648, 0 4px 0 #aeb99d, 0 7px 0 #386c54, 0 10px 10px #0c33294d;
}
.tile .face { inset: 4px 3px; }
.tile.sm { width: 28px; height: 38px; border-radius: 3px; box-shadow: 0 2px 0 #aab69c, 0 3px 0 #547a5c, 0 5px 4px #12382d38; }
.tile.sm .face, .tile.xs .face, .tile.caijin-size .face { inset: 2px 1px; }
.tile.caijin-size { width: 30px; height: 41px; border-radius: 3px; }
.tile.wild { border-color: #e4c273; box-shadow: 0 0 0 1px #dfc478, 0 4px 0 #ada87f, 0 7px 0 #386c54, 0 10px 10px #0c33294d; }
.tile.wild::before { background: #dfc37d; border-color: #f6e3b5; color: #685526; font-size: 9px; top: -6px; right: -4px; }
.tile.wild.sub { box-shadow: 0 0 0 1px #a5bfce, 0 4px 0 #9eb0af, 0 7px 0 #386c54; }
.tile.wild.sub::before { background: #718fa3; border-color: #d9e6e7; }
.tile.clickable:hover { transform: translateY(-11px); box-shadow: inset 0 0 0 1px #fff, 0 4px 0 #b8c4a4, 0 7px 0 #3a7558, 0 16px 15px #0a2e2955; }
.tile.hint { outline: 2px solid #c7e9b0; outline-offset: 2px; }
.pool .tile.last { transform: translateY(-2px); box-shadow: 0 0 0 2px #e8ca7c, 0 3px 0 #8fa28a, 0 5px 7px #143e3555; }
.bottom {
  position: relative; margin: 0; padding: 0 30px 18px; min-height: 170px;
  background: url("../assets/table-pattern.svg"), linear-gradient(90deg, #225c4e, #2d705c 50%, #225c4e);
  border: 9px solid #3d5146; border-top: 0; border-radius: 0 0 60px 60px;
  box-shadow: inset 1px -1px 0 #c0c49a4d, 0 4px 0 #202e25, 0 6px 0 #111f1a, 0 20px 35px #0b201a50;
}
.bottom::before { content: ""; position: absolute; inset: 0 15px 15px; border: 1px solid #c7ce9d30; border-top: 0; border-radius: 0 0 42px 42px; pointer-events: none; }
.myinfo { position: absolute; left: 32px; top: 18px; margin: 0; gap: 10px; }
.myinfo .avatar { width: 43px; height: 43px; }
.myinfo .pname { font-size: 12px; }
.myinfo .avatar .wind { width: 18px; height: 18px; font-size: 9px; }
.handwrap { gap: 6px; padding-top: 9px; }
.hand { flex-wrap: nowrap; gap: 4px; padding: 13px 0 12px; min-height: 100px; }
.hand .tile.gap { margin-left: 12px; }
.melds:not(:empty) { padding-top: 5px; }
.actions { min-height: 31px; margin-top: 0; gap: 8px; }
.actions:empty { min-height: 8px; }
.act { border-radius: 5px; padding: 7px 21px; font-size: 14px; background: #e4d09b; color: #3f4d36; border-color: #e9d9b4; box-shadow: 0 2px 0 #9a8d60; }
.act:hover { background: #eadbb7; }
.act.pass { background: #214f43; border-color: #a9bd9e4a; color: #c9d8bc; box-shadow: none; }
.act.hu { background: #ad5144; border-color: #d58a6d; color: #fff2d6; letter-spacing: 0; }
.statusbar { position: relative; margin-top: 8px; color: #b1c6ad; font-size: 11px; line-height: 1.7; }
.statusbar b { color: #edcf8d; }
.table-footer { display: flex; justify-content: space-between; padding: 22px 12px 18px; font-size: 10px; color: #839d8e; }
.table-footer > span:last-child { display: flex; align-items: center; gap: 7px; }
.hintbox { background: #204b40f5; border-color: #d3c19055; border-left-color: #dcc28c; bottom: 3px; border-radius: 5px; }
.hintbox { max-height: calc(100% - 20px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 31px 12px 13px; }
.hintbox .hrow + .hrow { margin-top: 7px; }
.hint-close { position: absolute; top: 7px; right: 5px; width: 25px; height: 25px; padding: 5px; display: grid; place-items: center; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.hint-close:hover { background: #ffffff14; }
.hint-close img { width: 15px; height: 15px; }
.hint-options { margin-top: 10px; border-top: 1px solid #d3c19033; padding-top: 7px; }
.hint-options summary { cursor: pointer; color: #d9c799; font-size: 11px; }
.hint-detail-rows { margin-top: 10px; }
.hint-options table { margin-top: 6px; border-collapse: collapse; width: 100%; font-size: 10px; font-variant-numeric: tabular-nums; }
.hint-options th, .hint-options td { padding: 5px 3px; text-align: left; border-bottom: 1px solid #ffffff12; }
.hint-options th { font-weight: 400; color: #a3bba8; }
.hint-options .recommended { color: #f2d597; }
.act.hint-action { outline: 2px solid #c7e9b0; outline-offset: 3px; }
.tools .btn[aria-busy="true"] { opacity: .55; cursor: progress; }

.overlay { background: #0c211bc9; backdrop-filter: blur(9px); }
.modal { background: #234c40; border: 1px solid #c9c49b63; border-radius: 8px; box-shadow: 0 25px 100px #00130d80; }
.modal h2 { letter-spacing: 0; font-family: "SimSun", "Songti SC", serif; }
.modal.wide { padding: 30px; background: url("../assets/table-pattern.svg"), #234c40; }
.modal.wide h2 { font-size: 25px; padding-bottom: 18px; border-bottom: 1px solid #c6cfb52b; margin-bottom: 22px; }
.rules-grid h3, .guide h3, .decomp-head { color: #e0cc9d; letter-spacing: 0; }
.rules-brief { font-size: 12px; color: #c2cebc; line-height: 1.8; margin: 10px 0 15px; }
.rules-brief b { color: #d8c58d; }
.welcome { max-width: 422px; max-height: calc(100dvh - 32px); padding: 29px 35px 22px; background: url("../assets/table-pattern.svg"), #254f43; position: relative; overflow-y: auto; }
.welcome::before { content: ""; position: absolute; inset: 8px; border: 1px solid #c3ca9f24; border-radius: 3px; pointer-events: none; }
.welcome-kicker { color: #b9c5a5; font-size: 10px; }
.welcome-art { height: 136px; display: flex; justify-content: center; align-items: center; padding-top: 10px; }
.welcome-art .tile { width: 58px; height: 81px; }
.welcome-art .tile:nth-child(1) { transform: translate(6px, 5px) rotate(-16deg); }
.welcome-art .tile:nth-child(2) { z-index: 2; transform: translateY(-5px); }
.welcome-art .tile:nth-child(3) { transform: translate(-6px, 5px) rotate(16deg); }
.welcome h2 { font-size: 29px; color: #f3e7bf; margin-bottom: 14px; }
.welcome .lead { font-size: 12px; color: #b4c7b2; line-height: 1.9; margin-bottom: 22px; }
.welcome-specs { display: flex; justify-content: center; gap: 0; margin-bottom: 22px; font-size: 10px; color: #d4d8bc; }
.welcome-specs span + span { border-left: 1px solid #a9b99b40; margin-left: 12px; padding-left: 12px; }
.welcome-details { text-align: left; border-top: 1px solid #b9c7a328; margin-bottom: 20px; padding-top: 13px; }
.welcome-details summary { cursor: pointer; color: #a9beaa; font-size: 11px; }
.welcome .btn { width: 100%; padding: 13px 24px; font-size: 14px; justify-content: space-between; }
.welcome-note { color: #8faa94; margin: 16px 0 0; font-size: 10px; }
.result-foot { background: #204438; }
.calc, .fold, .dgroup, .score-delta div { border-radius: 5px; }
.result-title { font-family: "SimSun", serif; font-size: 30px; }
.dgroup { border-radius: 4px; }
.tile.guide { border-radius: 3px; margin: 0; padding: 0; }
.guide-row { align-items: flex-start; }
.glabel { padding-top: 14px; padding-bottom: 0; }
@media (min-width: 1100px) {
  .myinfo { top: 23px; }
  .handwrap { padding-left: 74px; padding-right: 10px; }
}
@media (max-width: 1100px) {
  .app { padding: 0 24px; }
  .topbar { gap: 12px; }
  .caijin-box { padding: 0 14px; }
  .brand-tag { display: none; }
  .myinfo { position: relative; top: auto; left: auto; margin: 0 0 0 12px; }
  .myinfo .avatar { width: 31px; height: 31px; }
  .myinfo > div:last-child { display: flex; gap: 10px; align-items: center; }
  .handwrap { padding-top: 0; }
  .tile { width: 46px; height: 65px; }
  .table { height: clamp(290px, calc(100dvh - 400px), 600px); min-height: 290px; grid-template-columns: 100px minmax(0,1fr) 100px; }
  .table-caption { left: 35px; font-size: 9px; gap: 5px; }
  .table-edition { right: 32px; font-size: 8px; }
  .bottom { padding-bottom: 19px; }
}
@media (max-width: 760px) {
  .app { padding: 0 14px; }
  .topbar { height: 95px; gap: 8px; flex-wrap: nowrap; }
  .brand h1 { font-size: 21px; }
  .brand { gap: 11px; }
  .logo { width: 37px; height: 45px; font-size: 28px; }
  .tools { gap: 0; }
  .tools .btn { padding: 9px; font-size: 11px; gap: 4px; }
  .caijin-box { gap: 8px; padding: 0 8px; }
  .caijin-label { font-size: 10px; }
  .table { grid-template-columns: 70px minmax(0,1fr) 70px; border-width: 6px; padding: 22px 12px 12px; border-radius: 70px 70px 0 0; }
  .table::before { inset: 10px 10px 0; border-radius: 55px 55px 0 0; }
  .table-caption { top: 24px; left: 27px; }
  .table-edition { display: none; }
  .center { padding: 0 5px 10px; grid-template-columns: 62px minmax(0,1fr) 62px; }
  .avatar { width: 48px; height: 48px; }
  .seat-top { max-width: 300px; }
  .backrow .tile.back { width: 15px; height: 22px; }
  .tile { width: 38px; height: 55px; }
  .bottom { border-width: 6px; padding: 0 18px 20px; border-radius: 0 0 42px 42px; }
  .bottom::before { inset: 0 10px 10px; border-radius: 0 0 30px 30px; }
  .hand { min-height: 87px; gap: 3px; }
  .hand .tile.gap { margin-left: 8px; }
}
@media (max-width: 560px) {
  .app { padding: 0 8px; }
  .topbar { height: 116px; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 16px 8px 12px; }
  .brand h1 { font-size: 21px; }
  .brand .sub { font-size: 10px; margin-top: 5px; }
  .logo { width: 34px; height: 42px; font-size: 27px; }
  .brand { gap: 12px; }
  .caijin-box { border-left: 0; padding: 0; gap: 9px; }
  .caijin-label { font-size: 10px; }
  .caijin-slot .tile.caijin-size { width: 25px; height: 35px; }
  .tools { display: flex; justify-content: flex-end; gap: 18px; }
  .tools .btn { padding: 3px 0; gap: 5px; font-size: 11px; }
  .tools img { width: 14px; height: 14px; }
  .table {
    height: clamp(236px, calc(100dvh - 390px), 580px);
    min-height: 0; grid-template-columns: 44px minmax(0,1fr) 44px;
    grid-template-rows: 66px minmax(0,1fr); padding: 17px 7px 4px;
    border-width: 5px; border-radius: 42px 42px 0 0;
  }
  .table::before { inset: 7px 7px 0; border-radius: 30px 30px 0 0; }
  .table-caption { font-size: 8px; top: 20px; left: 20px; display: block; line-height: 1.8; max-width: 55px; }
  .table-caption .live-dot { width: 4px; height: 4px; margin-right: 4px; }
  .caption-divider { display: none; }
  .seat { gap: 5px; padding: 0; }
  .seat-top { align-content: start; gap: 8px; max-width: 190px; }
  .seat .backrow { display: flex; }
  .seat-top .backrow { margin-top: 3px; gap: 2px; }
  .backrow .tile.back { width: 10px; height: 16px; border-radius: 2px; }
  .tile.back::after { inset: 2px; }
  .avatar { width: 36px; height: 36px; border-width: 1px; }
  .avatar .wind { width: 16px; height: 16px; font-size: 8px; border-width: 1px; right: -3px; }
  .avatar .dealer { font-size: 8px; left: -4px; }
  .pname { font-size: 11px; }
  .pmeta, .pscore { font-size: 9px; gap: 6px; }
  .seat-left, .seat-right { margin-bottom: 12px; }
  .seat-top .melds-row { top: 77px; }
  .center { grid-template-columns: 42px minmax(0,1fr) 42px; grid-template-rows: minmax(0,1fr) 118px minmax(0,1fr); padding: 0 2px 5px; gap: 3px; }
  .compass { width: 76px; height: 76px; border-radius: 8px; }
  .compass::before { inset: 19px; }
  .compass span { font-size: 11px; width: 16px; height: 16px; line-height: 16px; }
  .compass .compass-n { left: 29px; top: 2px; }
  .compass .compass-s { left: 29px; bottom: 2px; }
  .compass .compass-w { top: 29px; left: 2px; }
  .compass .compass-e { top: 29px; right: 2px; }
  .compass .compass-mark { top: 20px; left: 20px; width: 34px; height: 34px; font-size: 25px; line-height: 34px; }
  .hud { gap: 4px; }
  .wall-count b { font-size: 16px; }
  .wall-count span, .turn-tip { font-size: 9px; }
  .pool { gap: 3px; }
  .pool .tile.sm { width: 17px; height: 24px; border-radius: 2px; }
  .pool-left { padding-right: 2px; }
  .pool-right { padding-left: 2px; }
  .pool-top, .pool-bottom { max-width: 160px; padding-top: 3px; padding-bottom: 3px; }
  .bottom { border-width: 5px; padding: 5px 12px 16px; min-height: 126px; border-radius: 0 0 30px 30px; }
  .bottom::before { inset: 0 7px 7px; border-radius: 0 0 22px 22px; }
  .myinfo { margin: 0 0 0 7px; gap: 7px; }
  .myinfo .avatar { width: 26px; height: 26px; }
  .myinfo .avatar .wind { width: 14px; height: 14px; font-size: 8px; }
  .myinfo .pname { font-size: 10px; }
  .myinfo .avatar .dealer { font-size: 7px; top: -2px; padding: 1px 3px; }
  .hand { display: grid; justify-content: center; width: 100%; gap: 9px 3px; min-height: 0; padding: 12px 0 10px; }
  .hand .tile { width: var(--hand-width, 21px); height: calc(var(--hand-width, 21px) * 1.42); border-radius: 3px; }
  .hand .tile .face { inset: 2px 1px; }
  .hand .tile.gap { margin-left: 0; border-left: 1px solid #ddd9bd; outline: 1px solid #ddc48d; outline-offset: 1px; }
  .hand .tile.wild::before { width: 12px; height: 12px; font-size: 7px; top: -5px; right: -3px; }
  .actions { min-height: 24px; margin: 0; gap: 6px; }
  .actions:empty { min-height: 0; }
  .act { font-size: 12px; padding: 6px 13px; border-radius: 4px; }
  .statusbar { font-size: 9px; line-height: 1.6; margin-top: 4px; min-height: 15px; }
  .table-footer { padding: 16px 10px; font-size: 8px; }
  .hintbox { bottom: 2px; padding: 8px 31px 8px 10px; font-size: 11px; }
  .hintbox .htitle { font-size: 12px; }
  .welcome { padding: 26px 25px 21px; max-width: 360px; }
  .welcome h2 { font-size: 26px; }
  .welcome-art { height: 125px; }
  .modal.wide { padding: 22px 16px; }
  .modal.wide h2 { font-size: 22px; }
  .glabel { padding-top: 10px; }
  #resultBox { border-radius: 8px; }
}
@media (max-width: 360px) {
  .app { padding: 0 5px; }
  .topbar { height: 100px; padding-top: 10px; padding-bottom: 8px; }
  .table { height: clamp(236px, calc(100dvh - 390px), 450px); grid-template-columns: 36px minmax(0,1fr) 36px; grid-template-rows: 60px minmax(0,1fr); padding-left: 3px; padding-right: 3px; }
  .center { grid-template-rows: minmax(0,1fr) 96px minmax(0,1fr); }
  .compass { width: 60px; height: 60px; }
  .compass::before { inset: 15px; }
  .compass .compass-n, .compass .compass-s { left: 21px; }
  .compass .compass-w, .compass .compass-e { top: 21px; }
  .compass .compass-mark { top: 12px; left: 12px; }
  .table-caption { left: 14px; font-size: 7px; }
  .center { grid-template-columns: 35px minmax(0,1fr) 35px; }
  .pool .tile.sm { width: 15px; height: 21px; }
  .pool { gap: 2px; }
  .avatar { width: 31px; height: 31px; }
  .bottom { padding-left: 8px; padding-right: 8px; padding-bottom: 12px; }
  .welcome-specs { font-size: 9px; }
  .table-footer { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-height: 600px) and (min-width: 561px) {
  .topbar { height: 78px; padding: 10px 0; }
  .table { height: 300px; min-height: 300px; grid-template-rows: 85px minmax(0,1fr); }
  .bottom { padding-bottom: 15px; }
  .table-footer { padding: 15px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
