:root {
  --paper: #f8f7f0;
  --ink: #2d4439;
  --muted: #8a9081;
  --line: #e3e4d9;
  --green: #416b52;
  --green-dark: #2d513d;
  --mint: #e2ebd9;
  --peach: #f4dfcd;
  --lavender: #e5e3ee;
  --yellow: #f2eacb;
  --pink: #f1deda;
  --white: #fffef9;
  --shadow: 0 12px 40px #344c3210;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #c8aa64;
  outline-offset: 4px;
}
button {
  touch-action: manipulation;
}
input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 14px 16px;
  font-size: 16px;
}
input::placeholder {
  color: #a2a395;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
}
h1 {
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  letter-spacing: 1px;
}
a {
  color: var(--green);
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
}
.button {
  border: 1px solid transparent;
  min-height: 48px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 11px 23px;
  border-radius: 12px;
  font-weight: 500;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:active {
  transform: translateY(1px);
}
.button.primary {
  background: var(--green);
  color: #fffef7;
}
.button.primary:hover {
  background: var(--green-dark);
}
.button.primary:disabled {
  background: #b5c1b0;
  color: #f4f5ee;
}
.button.secondary {
  background: var(--white);
  border-color: var(--line);
}
.button.secondary:hover {
  background: #f0f1e7;
}
.full {
  width: 100%;
}
.text-button,
.icon-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #788171;
}
.icon-button {
  width: 44px;
  height: 44px;
  padding: 8px;
}
.text-button:hover,
.icon-button:hover {
  background: #e9ecdf;
}
.text-button:disabled {
  opacity: 0.45;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.center {
  text-align: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.4px;
  font-weight: 600;
  color: #84917c;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  background: none;
  font-family: "Songti SC", "STSong", serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}
.brand-sub {
  display: block;
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 2.5px;
  margin-top: 5px;
  font-weight: 400;
  color: #85907f;
}
.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #e0e8d8;
  display: block;
  position: relative;
}
.brand-mark i {
  position: absolute;
  width: 13px;
  height: 16px;
  border-radius: 7px 7px 3px 3px;
  background: #4b6a51;
  bottom: 9px;
  left: 9px;
}
.brand-mark i:before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: inherit;
  top: -8px;
  left: 1.5px;
}
.brand-mark i + i {
  background: #dca282;
  left: 24px;
  height: 12px;
  bottom: 8px;
  width: 11px;
}
.brand-mark i + i:before {
  width: 9px;
  height: 9px;
  left: 1px;
  top: -7px;
}
.site-header {
  height: 100px;
  border-bottom: 1px solid var(--line);
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.site-header nav {
  display: flex;
  gap: 10px;
  margin-left: 70px;
  height: 100%;
  align-items: center;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 10px 17px;
  border-radius: 22px;
  font-size: 13px;
  color: #8d9386;
}
.nav-item .icon {
  width: 17px;
  height: 17px;
}
.nav-item.active {
  background: #e8edde;
  color: var(--green);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.private-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #959d8f;
  letter-spacing: 1px;
}
.private-label .icon {
  width: 13px;
  height: 13px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--paper);
}
.avatar.moon {
  background: #dce7d2;
  color: #5a7551;
}
.avatar.sun {
  background: #f4dfbb;
  color: #c29547;
}
.avatar .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke-width: 1;
}
.avatar.large {
  width: 64px;
  height: 64px;
}
.avatar.large .icon {
  width: 32px;
  height: 32px;
}
.lobby {
  max-width: 1000px;
  padding: 44px 24px 16px;
  margin: 0 auto;
}
.welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0 30px;
}
.welcome h1 {
  font-size: 40px;
  line-height: 1.5;
  margin: 5px 0 8px;
}
.welcome p {
  font-size: 13px;
  color: #8b9485;
}
.title-spark {
  font-family: Georgia, serif;
  color: #b6bc8c;
  font-size: 37px;
  display: inline-block;
  transform: rotate(10deg);
  margin-left: 15px;
  vertical-align: middle;
}
.welcome-stamp {
  position: relative;
  border: 1px solid #ccd2b8;
  border-radius: 50%;
  width: 99px;
  height: 99px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8c9b78;
  transform: rotate(12deg);
  margin-right: 17px;
  outline: 1px dashed #ccd2b8;
  outline-offset: 5px;
}
.welcome-stamp > .icon {
  width: 17px;
  height: 17px;
  position: absolute;
  top: 12px;
  right: 20px;
}
.welcome-stamp span {
  font-family: "Songti SC", serif;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 3px;
  margin-top: 5px;
}
.welcome-stamp i {
  font-size: 6px;
  letter-spacing: 2px;
  font-style: normal;
  position: absolute;
  bottom: 10px;
}
.duo-bar {
  border: 1px solid var(--line);
  background: #fffef780;
  border-radius: 16px;
  padding: 17px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}
.duo-players {
  display: flex;
  align-items: center;
  gap: 29px;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.person strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.person strong small {
  font-size: 9px;
  background: #e8edde;
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: 7px;
  color: #849479;
}
.person div > span {
  font-size: 10px;
  color: #969b90;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c2c5b8;
}
.status-dot.online {
  background: #6e9877;
}
.status-dot.away {
  background: #d3ad5e;
}
.duo-link {
  color: #b8c7aa;
  position: relative;
}
.duo-link .icon {
  width: 18px;
  height: 18px;
}
.duo-caption {
  font-size: 11px;
  color: #a1a494;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 15px;
}
.section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 15px;
}
.section-heading h2 {
  font-size: 19px;
  font-weight: 600;
}
.section-heading span {
  font-size: 11px;
  color: #959c8f;
}
.game-count {
  letter-spacing: 1px;
  font-size: 10px !important;
}
.filters {
  display: flex;
  gap: 6px;
  margin: 18px 0 22px;
  overflow: auto;
  scrollbar-width: none;
}
.filter {
  border: 1px solid transparent;
  background: none;
  border-radius: 18px;
  padding: 5px 14px;
  color: #8e9888;
  font-size: 11px;
  white-space: nowrap;
  min-height: 34px;
}
.filter.selected {
  border-color: #d9dfcd;
  background: #e9edde;
  color: #5a7452;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.game-card {
  border: 1px solid #344d3210;
  border-radius: 19px;
  padding: 20px 22px 22px;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  background: var(--mint);
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px #41533b14;
}
.game-card:active {
  transform: scale(0.99);
}
.mint {
  background: var(--mint);
}
.peach {
  background: var(--peach);
}
.lavender {
  background: var(--lavender);
}
.yellow {
  background: var(--yellow);
}
.pink {
  background: var(--pink);
}
.featured {
  grid-column: span 2;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.category-tag {
  font-size: 10px;
  letter-spacing: 0.7px;
  background: #fff9ee80;
  border-radius: 5px;
  padding: 3px 9px;
  color: #747c69;
}
.card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #4a5c361f;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-arrow .icon {
  width: 14px;
  height: 14px;
}
.card-copy {
  position: relative;
  z-index: 1;
  margin-top: 107px;
}
.card-en {
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #63725e;
  opacity: 0.65;
}
.card-copy h3 {
  font-family: "Songti SC", "STSong", serif;
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 1.5;
  margin: 1px 0 4px;
}
.card-copy p {
  color: #7a8373;
  font-size: 11px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8c9584;
  font-size: 9px;
  margin-top: 15px;
}
.card-meta .icon {
  width: 11px;
  height: 11px;
}
.card-meta i {
  font-style: normal;
  margin: 0 3px;
}
.game-art {
  width: 125px;
  height: 112px;
  position: absolute;
  top: 46px;
  right: 33px;
  transition: transform 0.3s;
}
.game-card:hover .game-art {
  transform: rotate(3deg);
}
.featured .game-art {
  width: 265px;
  height: 178px;
  top: 65px;
  right: 12px;
}
.featured .card-copy {
  margin-top: 73px;
}
.featured .card-copy h3 {
  font-size: 31px;
}
.featured .card-copy p {
  max-width: 230px;
}
.bottom-note {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin: 36px 0 10px;
  font-size: 10px;
  color: #9ba38f;
}
.bottom-note span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bottom-note .icon {
  width: 12px;
  height: 12px;
}
.site-footer {
  max-width: 952px;
  border-top: 1px solid var(--line);
  margin: 20px auto 0;
  padding: 23px 0 28px;
  display: flex;
  justify-content: space-between;
  color: #a3a895;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.site-footer > span + span {
  font-family: Georgia, serif;
  letter-spacing: 1.5px;
  font-size: 8px;
}
.footer-heart {
  font-size: 14px;
  margin-left: 4px;
  color: #b5bfa5;
}
.continue-bar {
  background: #edf0e4;
  border: 1px solid #d8dfcb;
  width: 100%;
  padding: 14px 18px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  margin: -14px 0 30px;
}
.continue-icon {
  background: #dde5ce;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #71865d;
}
.continue-bar strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.continue-bar small {
  display: block;
  font-size: 10px;
  color: #96a087;
}
.continue-go {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #71865d;
}
.continue-go .icon {
  width: 17px;
  height: 17px;
}
.connection-banner {
  background: #f4e8c7;
  border-bottom: 1px solid #e4d7b4;
  text-align: center;
  padding: 8px 15px;
  color: #92814c;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.connection-banner .icon {
  width: 17px;
  height: 17px;
}
.login-layout {
  max-width: 1100px;
  min-height: 100svh;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 60px 45px;
}
.login-story {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.login-story > .brand {
  margin-bottom: 65px;
}
.login-copy h1 {
  font-size: 72px;
  line-height: 1.35;
  margin: 14px 0 21px;
  position: relative;
}
.login-copy p {
  font-size: 15px;
  line-height: 1.9;
  color: #8b9681;
}
.hand-star {
  font-family: Georgia, serif;
  font-size: 58px;
  color: #aeb88a;
  position: absolute;
  left: 280px;
  bottom: 14px;
  transform: rotate(10deg);
}
.login-art {
  height: 180px;
  position: relative;
  max-width: 390px;
  margin-top: 28px;
}
.login-art > .game-art {
  position: absolute;
  left: -10px;
  top: 20px;
  width: 150px;
  height: 135px;
  transform: rotate(-5deg);
}
.login-art > .draw-art {
  left: 120px;
  top: 0;
  width: 220px;
  height: 170px;
  transform: rotate(9deg);
}
.tiny-note {
  position: absolute;
  font-family: "Songti SC", serif;
  font-size: 13px;
  right: -15px;
  bottom: 0;
  transform: rotate(-7deg);
  color: #8d977d;
}
.login-foot {
  font-size: 10px;
  color: #a8af9e;
  margin-top: auto;
  padding-top: 30px;
  letter-spacing: 1px;
}
.login-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 46px 38px 35px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}
.login-card:before {
  content: "";
  position: absolute;
  width: 72px;
  height: 23px;
  background: #dce4c89c;
  top: -10px;
  left: calc(50% - 36px);
  transform: rotate(-5deg);
}
.envelope-icon {
  margin: 0 auto 25px;
  background: #e8eddd;
  color: #698057;
  width: 61px;
  height: 61px;
  border-radius: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-6deg);
}
.envelope-icon .icon {
  width: 29px;
  height: 29px;
}
.login-card .eyebrow {
  font-size: 9px;
}
.login-card h2 {
  font-family: "Songti SC", serif;
  font-size: 25px;
  margin: 8px 0 10px;
}
.login-card > .muted {
  font-size: 12px;
}
.login-card form {
  text-align: left;
  margin: 31px 0 0;
}
.login-card label {
  font-size: 11px;
  color: #7c8872;
  display: block;
  margin-bottom: 9px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  width: 100%;
  padding-right: 48px;
  background: #f8f8f0;
}
.password-wrap .icon-button {
  position: absolute;
  right: 4px;
  top: 5px;
  color: #a2ab97;
}
.password-wrap .icon {
  width: 18px;
  height: 18px;
}
.form-error {
  font-size: 11px;
  color: #bb725b;
  min-height: 30px;
  padding-top: 6px;
}
.login-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  color: #a1aa96;
  margin: 16px 0 24px;
}
.login-notice .icon {
  width: 12px;
  height: 12px;
}
.login-note {
  padding-top: 21px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: #a1a995;
  line-height: 1.8;
}
.game-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 24px 10px;
}
.game-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a0a690;
  font-size: 11px;
  margin: 0 -10px 10px;
}
.game-top .text-button {
  font-size: 11px;
}
.game-top .icon {
  width: 17px;
  height: 17px;
}
.game-title {
  text-align: center;
  margin: 12px 0 23px;
}
.game-title .eyebrow {
  font-size: 8px;
}
.game-title h1 {
  font-size: 29px;
  margin-top: 2px;
}
.game-surface {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 25px #344c3205;
}
.turn-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 20px;
}
.turn-bar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.turn-bar > div > span {
  font-size: 13px;
}
.turn-bar small {
  display: block;
  font-size: 10px;
  color: #9ba58f;
  margin-top: 1px;
}
.turn-bar.my-turn > div > span {
  color: #4c8057;
}
.step-count {
  font-size: 11px;
  color: #a0a98f;
}
.board-frame {
  padding: 13px;
  border-radius: 12px;
  overflow: hidden;
}
.board-frame.gomoku {
  background: #f0e5c8;
  border: 1px solid #e1d5b7;
}
.board {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  aspect-ratio: 1;
  width: 100%;
  position: relative;
}
.cell {
  padding: 0;
  border: 0;
  border-radius: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: none;
  min-width: 0;
  overflow: visible;
}
.gomoku .cell {
  background-image:
    linear-gradient(#bbaa7c70, #bbaa7c70), linear-gradient(#bbaa7c70, #bbaa7c70);
  background-size:
    100% 1px,
    1px 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.gomoku .cell:nth-child(15n + 1) {
  background-size:
    50% 1px,
    1px 100%;
  background-position:
    right center,
    center;
}
.gomoku .cell:nth-child(15n) {
  background-size:
    50% 1px,
    1px 100%;
  background-position:
    left center,
    center;
}
.gomoku .cell:nth-child(-n + 15):before,
.gomoku .cell:nth-last-child(-n + 15):after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 0.5px);
  width: 1px;
  height: 50%;
  background: #f0e5c8;
}
.gomoku .cell:nth-last-child(-n + 15):after {
  top: 50%;
}
.stone {
  border-radius: 50%;
  width: 80%;
  height: 80%;
  display: block;
  position: relative;
  z-index: 1;
}
.stone.black {
  background: radial-gradient(circle at 35% 28%, #5b6557, #29362d 75%);
  box-shadow: 0 2px 2px #29362d29;
}
.stone.white {
  background: radial-gradient(circle at 35% 28%, #fffefb, #e8e9d9 85%);
  box-shadow: 0 1px 2px #28392b35;
  border: 1px solid #d5d8c4;
}
.stone.preview {
  opacity: 0.45;
}
.last-move .stone:after {
  content: "";
  position: absolute;
  width: 22%;
  height: 22%;
  background: #d7ac60;
  border-radius: 2px;
  top: 39%;
  left: 39%;
}
.preview-cell:after {
  content: "";
  width: 95%;
  height: 95%;
  border: 1px dashed #70845d;
  position: absolute;
  z-index: 2;
  border-radius: 50%;
}
.board-help {
  min-height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #8c987e;
}
.board-help .icon {
  width: 14px;
  height: 14px;
}
.board-help .button {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 12px;
}
.piece-count {
  display: flex;
  justify-content: space-between;
  margin: 0 0 13px;
  font-size: 11px;
  color: #8c967f;
}
.piece-count > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.piece-count .stone {
  width: 15px;
  height: 15px;
}
.reversi.board-frame {
  background: #719273;
  border: 1px solid #608263;
  padding: 7px;
}
.reversi .cell {
  border: 1px solid #5c7d5e99;
}
.reversi .stone {
  width: 78%;
  height: 78%;
}
.legal-dot {
  width: 16%;
  height: 16%;
  border-radius: 50%;
  background: #dbe8bf8a;
}
.game-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 14px;
  font-size: 12px;
}
.game-footer .button {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 12px;
}
.game-footer .button .icon {
  width: 17px;
  height: 17px;
}
.saved-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #a0ab93;
  margin-bottom: 24px;
}
.saved-note .icon {
  width: 12px;
  height: 12px;
}
.result-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #e9efdc;
  border: 1px solid #dce4cd;
  padding: 17px 20px;
  border-radius: 15px;
  margin-bottom: 20px;
}
.result-banner > .icon {
  width: 28px;
  height: 28px;
  color: #87975f;
}
.result-banner strong {
  display: block;
  font-size: 15px;
}
.result-banner small {
  display: block;
  font-size: 10px;
  color: #8e9d7d;
  margin-top: 3px;
}
.code-intro {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}
.code-lock {
  background: #f5edcf;
  border-radius: 14px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aa9457;
}
.code-intro strong {
  font-size: 14px;
  font-weight: 500;
}
.code-intro p {
  font-size: 10px;
  color: #a5a994;
  margin-top: 3px;
}
.code-seats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 10px;
  color: #9da68e;
}
.code-seats > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.code-seats .avatar {
  width: 23px;
  height: 23px;
  border: 0;
}
.code-seats .avatar .icon {
  width: 13px;
  height: 13px;
}
.code-seats b {
  font-weight: 500;
  margin-left: 5px;
  color: #6d855d;
}
.attempt-list {
  min-height: 190px;
  max-height: 330px;
  overflow: auto;
  padding: 16px 0;
}
.attempt {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 7px 0;
}
.attempt-number {
  font-family: Georgia, serif;
  font-size: 12px;
  color: #bbc1b0;
}
.digits {
  display: flex;
  gap: 8px;
}
.digits i {
  width: 37px;
  height: 41px;
  background: #f3f3e9;
  border: 1px solid #e5e6d8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-family: Georgia, serif;
  font-size: 22px;
  color: #627652;
}
.hint {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.hint b {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 500;
  color: #689075;
  background: #eaf0e2;
  border-radius: 6px;
  padding: 4px 9px;
}
.hint b + b {
  background: #f4edda;
  color: #b49a61;
}
.code-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.code-empty > span {
  font-family: Georgia, serif;
  font-size: 30px;
  letter-spacing: 12px;
  color: #d7d8c6;
  margin: 0 0 15px 12px;
}
.code-empty p {
  text-align: center;
  font-size: 11px;
  color: #a6ae98;
  line-height: 1.9;
}
.game-input {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}
.game-input input {
  width: 100%;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  padding: 13px 12px;
  background: #fafaf3;
}
.game-input button {
  flex-shrink: 0;
  padding: 10px 15px;
  font-size: 12px;
}
.game-input button .icon {
  width: 16px;
  height: 16px;
}
.giveup {
  font-size: 10px;
  display: flex;
  margin: 6px auto;
  color: #a4aa96;
}
.tip-box {
  padding: 15px;
  background: #f6f5eb;
  border-radius: 10px;
  color: #a0a68f;
  font-size: 10px;
  line-height: 1.9;
  margin-top: 14px;
}
.waiting-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: #8a9d7b;
  padding: 17px 6px;
  text-align: center;
}
.waiting-box .icon {
  width: 17px;
  height: 17px;
}
.quiz-progress {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8d9e7e;
  margin-bottom: 12px;
}
.quiz-progress > span + span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.quiz-progress .icon {
  width: 14px;
  height: 14px;
}
.progress-track {
  height: 4px;
  background: #edf0e4;
  border-radius: 8px;
  overflow: hidden;
}
.progress-track i {
  height: 100%;
  display: block;
  background: #a4bb8e;
  transition: width 0.3s;
}
.quiz-question {
  padding: 32px 0 25px;
  text-align: center;
}
.question-no {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: #b7bca6;
}
.quiz-question h2 {
  font-family: "Songti SC", serif;
  font-size: 22px;
  line-height: 1.7;
  margin: 13px 0 10px;
}
.quiz-question p {
  font-size: 10px;
  color: #a0a993;
}
.quiz-options {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fbfbf3;
  border: 1px solid #e5e7da;
  border-radius: 11px;
  padding: 12px 15px;
  min-height: 58px;
  text-align: left;
  font-size: 13px;
}
.quiz-option.chosen,
.quiz-option.revealed {
  border-color: #95b184;
  background: #ecf1e2;
}
.option-letter {
  width: 27px;
  height: 27px;
  border: 1px solid #e0e4d5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-family: Georgia, serif;
  color: #929f84;
  background: var(--white);
}
.option-people {
  margin-left: auto;
  display: flex;
}
.option-people .avatar {
  width: 29px;
  height: 29px;
}
.option-people .avatar .icon {
  width: 15px;
  height: 15px;
}
.option-people .icon {
  width: 16px;
  height: 16px;
  color: #7d936c;
}
.quiz-score-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.quiz-score-dots > span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  background: #f1f1e8;
  color: #bdc2ae;
}
.quiz-score-dots > span.matched {
  background: #f4e1d6;
  color: #d4987d;
}
.quiz-score-dots .icon {
  width: 13px;
  height: 13px;
}
.draw-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.draw-role {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #95a087;
}
.draw-role .avatar {
  width: 28px;
  height: 28px;
}
.draw-role .avatar .icon {
  width: 15px;
  height: 15px;
}
.word-box {
  text-align: center;
}
.word-box small {
  display: block;
  font-size: 9px;
  color: #a4ad96;
}
.word-box strong {
  display: block;
  font-size: 21px;
  letter-spacing: 3px;
  font-weight: 500;
}
.word-box em {
  font-size: 9px;
  letter-spacing: 0;
  color: #a5ae97;
  font-style: normal;
  margin-left: 5px;
}
.draw-clock {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8d9b7c;
  background: #f1f2e5;
  padding: 5px 9px;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 18px;
}
.draw-clock b {
  font-weight: 400;
  min-width: 20px;
}
.draw-clock .icon {
  width: 14px;
  height: 14px;
}
.draw-clock.urgent {
  background: #f8e4d8;
  color: #c58565;
}
.draw-round {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #a0aa92;
  margin: 15px 0 11px;
}
.draw-round > span + span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.draw-round .icon {
  width: 12px;
  height: 12px;
}
.canvas-wrap {
  position: relative;
  border-radius: 12px;
  border: 1px solid #e4e5d6;
  overflow: hidden;
  background: #fffdf8;
  aspect-ratio: 4/3;
}
.canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.canvas-overlay {
  position: absolute;
  inset: 0;
  background: #f9f8eeed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}
.pause-circle {
  width: 44px;
  height: 44px;
  border: 1px solid #dce4cc;
  border-radius: 50%;
  color: #82936d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.pause-circle .icon {
  width: 20px;
  height: 20px;
}
.canvas-overlay h3 {
  font-family: "Songti SC", serif;
  font-size: 20px;
  margin-bottom: 8px;
}
.canvas-overlay p {
  font-size: 10px;
  color: #a2ab94;
  margin-bottom: 18px;
}
.canvas-overlay .button {
  min-height: 40px;
  font-size: 11px;
  padding: 8px 17px;
}
.draw-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  flex-wrap: wrap;
}
.swatches {
  display: flex;
  gap: 5px;
}
.swatch {
  border-radius: 50%;
  background: var(--swatch);
  width: 25px;
  height: 25px;
  border: 3px solid var(--white);
  outline: 1px solid #dedfcf;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  position: relative;
}
.swatch[data-value="#ffffff"] {
  color: #78856b;
}
.swatch.active {
  outline: 2px solid #abb79a;
}
.swatch .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}
.tool-actions {
  display: flex;
  align-items: center;
}
.tool-actions .icon-button {
  width: 32px;
  height: 36px;
}
.tool-actions .icon {
  width: 16px;
  height: 16px;
}
.tool-actions .text-button {
  padding: 5px 10px;
  min-height: 36px;
}
.brush-dot {
  display: block;
  border-radius: 50%;
  background: #819674;
}
.guess-log {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  min-height: 38px;
  align-items: center;
  margin-top: 9px;
  font-size: 10px;
}
.guess-log > span {
  background: #f3f4e9;
  padding: 3px 8px;
  border-radius: 5px;
  color: #9aa68c;
}
.guess-log > span.correct {
  background: #e3eed8;
  color: #62844e;
}
.guess-log > span.muted {
  background: none;
  padding: 0;
  color: #a8b19a;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #233b3040;
  backdrop-filter: blur(5px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  animation: fade-in 0.15s;
}
.modal {
  position: relative;
  border: 1px solid #eaebdc;
  border-radius: 24px;
  background: var(--white);
  max-width: 385px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 25px 80px #253b3026;
  max-height: 90svh;
  overflow: auto;
}
.modal-close {
  position: absolute;
  right: 9px;
  top: 9px;
}
.modal h2 {
  font-family: "Songti SC", serif;
  font-size: 24px;
  margin: 10px 0 12px;
}
.modal p {
  font-size: 12px;
  color: #98a18a;
  line-height: 1.9;
}
.modal > .icon {
  width: 38px;
  height: 38px;
  color: #9bac88;
}
.modal .rules-text {
  text-align: left;
  font-size: 13px;
  margin: 23px 0 26px;
  line-height: 2;
}
.modal-art {
  height: 130px;
  position: relative;
  margin: -5px 0 14px;
}
.modal-art .game-art {
  position: relative;
  top: 0;
  left: 0;
  right: auto;
  width: 150px;
  height: 130px;
}
.modal-art > .icon {
  width: 60px;
  height: 60px;
  color: #8fa67d;
  margin-top: 32px;
}
.modal-buttons {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.modal .waiting-box {
  background: #f2f4e9;
  border-radius: 10px;
}
.settings-note {
  border-top: 1px dashed var(--line);
  margin: 20px 0;
  padding: 20px 0 0;
  font-size: 11px;
  color: #9ba78d;
  line-height: 2.2;
}
.settings-note .icon {
  width: 13px;
  height: 13px;
}
.empty-state {
  padding: 65px 25px;
  text-align: center;
  color: #a4ae96;
}
.empty-state > .icon {
  width: 48px;
  height: 48px;
  color: #b9c5aa;
  margin-bottom: 15px;
}
.empty-state h2 {
  font-family: "Songti SC", serif;
  font-size: 23px;
  color: #6d835d;
  margin-bottom: 10px;
}
.empty-state p {
  font-size: 12px;
  margin-bottom: 25px;
}
.page-heading {
  margin: 8px 0 30px;
}
.page-heading h1 {
  font-size: 32px;
  margin: 10px 0;
}
.page-heading p {
  font-size: 12px;
}
.history-list {
  display: grid;
  gap: 12px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px 20px;
}
.history-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  color: #899675;
}
.history-icon .icon {
  width: 21px;
  height: 21px;
}
.history-item strong {
  font-weight: 500;
  font-size: 13px;
  display: block;
}
.history-item small {
  font-size: 10px;
  color: #a4ae96;
  display: block;
  margin-top: 2px;
}
.history-item b {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: #8f9d7f;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(35px + env(safe-area-inset-bottom));
  transform: translate(-50%, 15px);
  background: #314a3deb;
  backdrop-filter: blur(8px);
  color: #f5f6ed;
  font-size: 12px;
  border-radius: 12px;
  padding: 13px 22px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 100;
  pointer-events: none;
  max-width: 90%;
  width: max-content;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 900px) {
  .game-card:nth-child(4) {
    grid-column: auto;
  }
  .game-grid:has(.featured) .game-card:not(.featured) {
    min-height: 279px;
  }
  .game-grid:has(.featured) .game-card:nth-child(3),
  .game-grid:has(.featured) .game-card:nth-child(4),
  .game-grid:has(.featured) .game-card:nth-child(5) {
    min-height: 260px;
  }
  .game-grid:has(.featured) .game-card:nth-child(n + 3) .card-copy {
    margin-top: 85px;
  }
  .game-grid:has(.featured) .game-card:nth-child(n + 3) .game-art {
    top: 36px;
    right: 30px;
  }
}
@media (max-width: 800px) {
  .site-header {
    height: 83px;
    padding: 0 25px;
  }
  .site-header nav {
    margin-left: 0;
    gap: 0;
  }
  .nav-item {
    padding: 9px 11px;
    font-size: 11px;
  }
  .header-right {
    gap: 6px;
  }
  .private-label {
    display: none;
  }
  .lobby {
    padding-top: 28px;
  }
  .welcome h1 {
    font-size: 34px;
  }
  .welcome-stamp {
    width: 83px;
    height: 83px;
  }
  .duo-caption {
    display: none;
  }
  .duo-bar {
    justify-content: center;
  }
  .game-grid {
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured {
    grid-column: span 2;
    min-height: 245px;
  }
  .featured .game-art {
    right: 45px;
    top: 43px;
  }
  .featured .card-copy {
    margin-top: 55px;
  }
  .game-card {
    min-height: 268px;
  }
  .game-art {
    right: 28px;
  }
  .section-heading > div {
    gap: 10px;
  }
  .section-heading > div > span {
    font-size: 10px;
  }
  .site-footer {
    margin: 20px 24px 0;
  }
  .bottom-note {
    gap: 17px;
  }
  .login-layout {
    gap: 40px;
    padding: 40px 30px;
  }
  .login-copy h1 {
    font-size: 56px;
  }
  .hand-star {
    left: 215px;
    font-size: 48px;
  }
  .login-art > .draw-art {
    left: 85px;
    width: 180px;
  }
  .login-art > .game-art:not(.draw-art) {
    width: 120px;
  }
  .login-card {
    padding: 40px 26px 26px;
  }
  .login-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .tiny-note {
    right: 0;
    font-size: 11px;
  }
}
@media (max-width: 560px) {
  .site-header {
    height: 76px;
    padding: 0 20px;
  }
  .brand {
    font-size: 21px;
    gap: 9px;
  }
  .brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 11px;
  }
  .brand-mark i {
    left: 7px;
    bottom: 7px;
    width: 12px;
    height: 14px;
  }
  .brand-mark i + i {
    left: 21px;
    bottom: 6px;
    width: 10px;
    height: 11px;
  }
  .brand-sub {
    font-size: 6px;
    letter-spacing: 2px;
    margin-top: 4px;
  }
  .site-header nav {
    gap: 6px;
    margin-left: auto;
    margin-right: 5px;
  }
  .nav-item {
    padding: 9px;
  }
  .nav-item span {
    display: none;
  }
  .nav-item .icon {
    width: 19px;
    height: 19px;
  }
  .header-right .icon-button {
    width: 37px;
    padding: 0;
  }
  .header-right .avatar {
    width: 32px;
    height: 32px;
  }
  .lobby {
    padding: 28px 20px 0;
  }
  .welcome {
    padding: 0 0 25px;
  }
  .welcome .eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px;
  }
  .welcome h1 {
    font-size: 28px;
    margin-top: 7px;
    margin-bottom: 8px;
    letter-spacing: 0.7px;
  }
  .welcome p {
    font-size: 11px;
  }
  .title-spark {
    font-size: 26px;
    margin-left: 8px;
  }
  .welcome-stamp {
    width: 66px;
    height: 66px;
    margin: 10px 8px 0 0;
    outline-offset: 3px;
  }
  .welcome-stamp span {
    font-size: 12px;
    letter-spacing: 2px;
  }
  .welcome-stamp > .icon {
    width: 11px;
    height: 11px;
    top: 5px;
    right: 12px;
  }
  .welcome-stamp i {
    font-size: 5px;
    letter-spacing: 1px;
    bottom: 5px;
  }
  .duo-bar {
    padding: 13px 15px;
    border-radius: 13px;
    margin-bottom: 29px;
  }
  .duo-players {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .person {
    gap: 6px;
  }
  .person .avatar {
    width: 33px;
    height: 33px;
  }
  .person strong {
    font-size: 12px;
  }
  .person div > span {
    font-size: 9px;
  }
  .duo-link .icon {
    width: 15px;
    height: 15px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .section-heading > div > span {
    display: none;
  }
  .game-count {
    font-size: 9px !important;
  }
  .filters {
    gap: 3px;
    margin: 13px 0 18px;
    margin-right: -20px;
    padding-right: 20px;
  }
  .filter {
    padding: 5px 11px;
    font-size: 10px;
    min-height: 33px;
  }
  .game-grid {
    gap: 12px;
  }
  .game-card {
    border-radius: 16px;
    padding: 13px 14px 17px;
    min-height: 242px;
  }
  .card-top {
    align-items: center;
  }
  .category-tag {
    font-size: 8px;
    padding: 2px 6px;
  }
  .card-arrow {
    width: 23px;
    height: 23px;
  }
  .card-arrow .icon {
    width: 12px;
    height: 12px;
  }
  .game-art {
    width: 108px;
    height: 98px;
    right: 10px;
    top: 38px;
  }
  .card-copy {
    margin-top: 98px;
  }
  .card-en {
    font-size: 5.5px;
    letter-spacing: 0.9px;
  }
  .card-copy h3 {
    font-size: 23px;
    margin: 1px 0 4px;
  }
  .card-copy p {
    font-size: 9px;
    line-height: 1.8;
    letter-spacing: -0.3px;
    white-space: nowrap;
  }
  .card-meta {
    font-size: 8px;
    margin-top: 12px;
    gap: 3px;
  }
  .card-meta .icon {
    width: 10px;
    height: 10px;
  }
  .featured {
    min-height: 219px;
  }
  .featured .game-art {
    width: 200px;
    height: 148px;
    right: -9px;
    top: 43px;
  }
  .featured .card-copy {
    margin-top: 47px;
    max-width: 55%;
  }
  .featured .card-en {
    font-size: 5.5px;
    letter-spacing: 0.5px;
  }
  .featured .card-copy h3 {
    font-size: 28px;
  }
  .featured .card-copy p {
    font-size: 10px;
    white-space: normal;
    max-width: 140px;
  }
  .bottom-note {
    display: flex;
    gap: 13px;
    margin: 26px -5px 23px;
    flex-wrap: wrap;
    line-height: 1;
    font-size: 8px;
  }
  .bottom-note span:last-child {
    display: none;
  }
  .bottom-note .icon {
    width: 10px;
    height: 10px;
  }
  .site-footer {
    margin: 8px 20px 0;
    padding: 19px 0 23px;
    font-size: 8px;
    gap: 15px;
  }
  .site-footer > span + span {
    font-size: 6px;
    letter-spacing: 1px;
    white-space: nowrap;
  }
  .footer-heart {
    font-size: 11px;
  }
  .continue-bar {
    margin: -9px 0 26px;
    padding: 11px 12px;
    gap: 9px;
  }
  .continue-bar strong {
    font-size: 11px;
  }
  .continue-bar small {
    font-size: 9px;
  }
  .continue-icon {
    width: 32px;
    height: 32px;
  }
  .continue-icon .icon {
    width: 17px;
    height: 17px;
  }
  .continue-go {
    font-size: 9px;
    gap: 3px;
  }
  .continue-go .icon {
    width: 14px;
    height: 14px;
  }
  .login-layout {
    display: flex;
    flex-direction: column;
    padding: 26px 23px 32px;
    gap: 0;
    justify-content: center;
    min-height: 100svh;
  }
  .login-story {
    display: block;
    width: 100%;
    align-self: auto;
  }
  .login-story > .brand {
    margin-bottom: 28px;
  }
  .login-copy h1 {
    font-size: 37px;
    line-height: 1.3;
    margin: 10px 0;
  }
  .login-copy h1 br {
    display: none;
  }
  .login-copy .eyebrow {
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  .login-copy {
    position: relative;
    padding-bottom: 25px;
  }
  .login-copy p {
    font-size: 11px;
    line-height: 1.8;
  }
  .login-copy p br {
    display: none;
  }
  .hand-star {
    position: static;
    font-size: 29px;
    margin-left: 10px;
  }
  .login-art {
    display: none;
  }
  .login-foot {
    display: none;
  }
  .login-card {
    padding: 28px 24px 25px;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
  }
  .envelope-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .envelope-icon .icon {
    width: 23px;
    height: 23px;
  }
  .login-card h2 {
    font-size: 23px;
    margin-bottom: 7px;
  }
  .login-card > .muted {
    font-size: 11px;
  }
  .login-card form {
    margin-top: 23px;
  }
  .login-card input {
    padding: 13px 14px;
    padding-right: 45px;
  }
  .login-notice {
    margin-bottom: 17px;
  }
  .login-note {
    padding-top: 15px;
    font-size: 10px;
  }
  .game-page {
    padding: 12px 14px 0;
  }
  .game-top {
    margin: 0 -4px 3px;
  }
  .game-title {
    margin: 7px 0 16px;
  }
  .game-title h1 {
    font-size: 27px;
  }
  .game-surface {
    padding: 16px 13px;
    border-radius: 17px;
  }
  .turn-bar {
    padding: 0 3px 15px;
  }
  .turn-bar > div > span {
    font-size: 12px;
  }
  .turn-bar .avatar {
    width: 33px;
    height: 33px;
  }
  .turn-bar small {
    font-size: 9px;
  }
  .board-frame {
    padding: 7px;
    border-radius: 9px;
  }
  .board-help {
    font-size: 10px;
    min-height: 60px;
  }
  .board-help .button {
    font-size: 11px;
  }
  .step-count {
    font-size: 10px;
  }
  .game-footer {
    margin: 17px 0 11px;
    gap: 7px;
  }
  .game-footer .text-button {
    font-size: 11px;
    padding: 7px 9px;
  }
  .game-footer .button {
    font-size: 11px;
    padding: 8px 13px;
    min-height: 40px;
  }
  .saved-note {
    font-size: 9px;
    margin-bottom: 20px;
  }
  .result-banner {
    padding: 13px 14px;
    gap: 10px;
    margin-bottom: 13px;
  }
  .result-banner strong {
    font-size: 13px;
  }
  .result-banner small {
    font-size: 9px;
  }
  .result-banner > .icon {
    width: 23px;
    height: 23px;
  }
  .code-seats {
    font-size: 9px;
  }
  .code-intro {
    gap: 10px;
    margin-bottom: 19px;
  }
  .code-intro strong {
    font-size: 13px;
  }
  .code-intro p {
    font-size: 9px;
  }
  .code-lock {
    width: 43px;
    height: 43px;
    border-radius: 12px;
  }
  .attempt-list {
    min-height: 190px;
  }
  .attempt {
    gap: 10px;
  }
  .digits {
    gap: 7px;
  }
  .digits i {
    width: 33px;
    height: 38px;
    font-size: 21px;
  }
  .hint {
    gap: 5px;
  }
  .hint b {
    font-size: 14px;
    padding: 3px 7px;
  }
  .game-input input {
    font-size: 13px;
    padding: 11px 10px;
    border-radius: 10px;
  }
  .game-input button {
    font-size: 11px;
    padding: 9px 12px;
    min-height: 44px;
    border-radius: 10px;
    gap: 5px;
  }
  .game-input button .icon {
    width: 14px;
    height: 14px;
  }
  .tip-box {
    font-size: 9px;
  }
  .quiz-question {
    padding: 28px 2px 21px;
  }
  .quiz-question h2 {
    font-size: 21px;
  }
  .quiz-question p {
    font-size: 9px;
  }
  .quiz-progress {
    font-size: 10px;
  }
  .quiz-option {
    padding: 12px;
    font-size: 12px;
    min-height: 57px;
  }
  .quiz-options {
    gap: 9px;
  }
  .draw-info {
    gap: 5px;
  }
  .word-box strong {
    font-size: 19px;
  }
  .word-box small {
    font-size: 8px;
  }
  .draw-role {
    font-size: 10px;
    gap: 3px;
  }
  .draw-role .avatar {
    width: 24px;
    height: 24px;
  }
  .draw-clock {
    font-size: 16px;
    padding: 4px 6px;
    gap: 3px;
  }
  .draw-clock .icon {
    width: 12px;
    height: 12px;
  }
  .draw-round {
    font-size: 9px;
    margin: 12px 0 9px;
  }
  .canvas-wrap {
    border-radius: 10px;
  }
  .canvas-overlay {
    padding: 12px;
  }
  .canvas-overlay h3 {
    font-size: 18px;
  }
  .canvas-overlay p {
    font-size: 9px;
    max-width: 260px;
    margin-bottom: 13px;
  }
  .pause-circle {
    width: 36px;
    height: 36px;
    margin-bottom: 9px;
  }
  .canvas-overlay .button {
    min-height: 36px;
    font-size: 10px;
  }
  .swatch {
    width: 23px;
    height: 23px;
    border-width: 3px;
  }
  .swatches {
    gap: 4px;
  }
  .draw-tools {
    gap: 5px;
    padding-top: 9px;
  }
  .tool-actions .icon-button {
    width: 28px;
  }
  .tool-actions .text-button {
    padding: 4px 8px;
  }
  .guess-log {
    font-size: 9px;
  }
  .modal {
    padding: 28px 23px;
    border-radius: 20px;
  }
  .modal h2 {
    font-size: 22px;
  }
  .modal p {
    font-size: 11px;
  }
  .modal-art {
    height: 112px;
    margin-bottom: 10px;
  }
  .modal-art .game-art {
    height: 112px;
  }
  .modal .rules-text {
    font-size: 12px;
  }
  .history-item {
    padding: 13px 12px;
    gap: 10px;
  }
  .history-item b {
    font-size: 10px;
  }
  .history-icon {
    width: 36px;
    height: 36px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .connection-banner {
    font-size: 10px;
    padding: 7px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 360px) {
  .lobby {
    padding-left: 15px;
    padding-right: 15px;
  }
  .game-card {
    padding-left: 11px;
    padding-right: 11px;
  }
  .card-copy p {
    font-size: 8px;
  }
  .game-art {
    right: 3px;
    width: 100px;
  }
  .welcome h1 {
    font-size: 26px;
  }
  .title-spark {
    font-size: 22px;
    margin-left: 4px;
  }
  .welcome-stamp {
    width: 58px;
    height: 58px;
  }
  .filters .filter {
    padding: 5px 9px;
  }
  .draw-tools {
    justify-content: center;
  }
  .digits {
    gap: 4px;
  }
  .digits i {
    width: 29px;
  }
  .hint b {
    font-size: 13px;
    padding: 3px 5px;
  }
}
/* Comfortable touch targets and readable supporting text on phones. */
@media (max-width: 560px) {
  .filter {
    font-size: 11px;
    min-height: 40px;
  }
  .card-copy p {
    color: #68765f;
    font-size: 10px;
  }
  .card-meta {
    font-size: 9px;
    color: #79866f;
  }
  .category-tag {
    font-size: 9px;
    color: #65745b;
  }
  .game-top .text-button,
  .game-top > span {
    font-size: 12px;
  }
  .game-top .text-button {
    color: #738364;
  }
  .board-help,
  .turn-bar small,
  .saved-note {
    color: #7e8e6e;
  }
  .draw-role,
  .draw-round,
  .word-box small,
  .draw-round .icon {
    color: #7e8e6e;
  }
  .draw-role {
    font-size: 12px;
  }
  .draw-round {
    font-size: 11px;
  }
  .word-box small {
    font-size: 10px;
  }
  .swatches {
    width: 100%;
    justify-content: space-between;
    gap: 2px;
  }
  .swatch {
    width: 40px;
    height: 40px;
    border: 8px solid var(--white);
    outline: 0;
  }
  .swatch.active {
    outline: 1px solid #92a47d;
    outline-offset: -4px;
  }
  .tool-actions {
    margin-left: auto;
  }
  .tool-actions .icon-button,
  .tool-actions .text-button {
    width: 44px;
    height: 44px;
  }
  .guess-log {
    font-size: 11px;
  }
  .guess-log > span.muted {
    color: #8b997b;
  }
  .quiz-question p,
  .code-intro p {
    font-size: 11px;
    color: #899778;
  }
  .quiz-progress,
  .code-seats {
    font-size: 11px;
  }
  .code-seats .avatar {
    width: 21px;
    height: 21px;
  }
  .code-seats b {
    margin-left: 2px;
  }
  .tip-box {
    font-size: 11px;
    color: #879475;
  }
  .game-footer .text-button {
    font-size: 12px;
    color: #7e8c6f;
  }
}
