@font-face {
  font-family: Nunito;
  src: url(nunito-ext.woff2) format("woff2");
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02D0-02D1,U+02D6-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Nunito;
  src: url(nunito.woff2) format("woff2");
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  font-family: Nunito, system-ui, sans-serif;
  color: #07183c;
  background: #fbf5ec;
  color-scheme: light;
  --ink: #07183c;
  --muted: #505f77;
  --paper: #fbf5ec;
  --white: #fffdfa;
  --orange: #d33b09;
  --bright: #ff5315;
  --line: #e8dfd3;
  --radius: 16px;
  --shadow: 0 14px 36px #12294d14;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-weight: 950; line-height: 1.09; letter-spacing: -.038em; margin: 0 0 .8rem; }
h1 { font-size: clamp(2.35rem, 5vw, 3.65rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #1471d4; outline-offset: 3px; }
.site-width { width: min(100% - 4rem, 1192px); margin-inline: auto; }
.site-header { background: var(--paper); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; font-weight: 1000; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.055em; line-height: 1; }
.brand-accent { color: var(--bright); }
.logo-icon { position: relative; width: 2.25em; height: 1.35em; margin-right: .36em; display: inline-block; isolation: isolate; flex: none; }
.logo-icon i { position: absolute; bottom: .18em; width: .72em; height: .7em; border-radius: 66% 66% 42% 42% / 94% 94% 26% 26%; background: var(--pawn-body); box-shadow: inset -.08em -.07em .14em #361a2766; }
.logo-icon i::before { content: ""; position: absolute; width: .44em; height: .44em; top: -.29em; left: .14em; border-radius: 50%; background: var(--pawn-head); box-shadow: inset -.06em -.04em .1em #361a2740; }
.logo-icon i:nth-child(1) { --pawn-head: radial-gradient(circle at 31% 24%,#fff2a1 0 6%,#ff7325 18%,#ff4f0a 67%); --pawn-body: linear-gradient(110deg,#ff9b48,#ff4d0a 45%,#af2504); left: .12em; transform: rotate(8deg) scale(.75); }
.logo-icon i:nth-child(2) { --pawn-head: radial-gradient(circle at 31% 25%,#ffffe4 0 6%,#45acff 17%,#0877e6 55%,#073892); --pawn-body: linear-gradient(108deg,#78cfff,#1064d5 43%,#081f69); left: .76em; z-index: 2; transform: scale(1.23); }
.logo-icon i:nth-child(3) { --pawn-head: radial-gradient(circle at 30% 24%,#fff 0 6%,#ffcc30 20%,#ff9a00 65%); --pawn-body: linear-gradient(110deg,#ffe05e,#ffac00 45%,#cb5a00); right: .14em; transform: rotate(-8deg); }
.top-nav, .site-footer nav { display: flex; align-items: center; gap: clamp(1rem, 3.4vw, 3.2rem); }
.top-nav { margin-left: auto; }
.top-nav a, .site-footer nav a { text-decoration: none; font-weight: 900; white-space: nowrap; font-size: 1.065rem; }
.top-nav a:hover, .top-nav a[aria-current], .site-footer nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.account { border-left: 1px solid #cbbbaf; padding-left: 1.4rem; display: flex; gap: .6rem; align-items: center; }
.account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 850; }
.button { display: inline-flex; gap: .5ch; justify-content: center; align-items: center; border: 1px solid transparent; border-radius: 12px; padding: .62rem 1.12rem; font-size: 1rem; font-weight: 900; text-decoration: none; text-align: center; line-height: 1.18; min-height: 42px; background: #fffdfa; color: var(--ink); }
.button:hover { filter: brightness(.97); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .55; }
.button.primary { background: var(--orange); color: white; }
.button.secondary { border-color: #d8cfc4; }
.button.ghost { border-color: #dde6f08c; background: #071a3838; color: #fff; }
.button.soft { background: #f1e8dc; }
.button.danger { background: #fff0eb; color: #93280c; border-color: #f4d4c7; }
.button.small { padding: .45rem .65rem; min-height: 35px; font-size: .88rem; border-radius: 9px; }
.text-button { border: 0; background: transparent; padding: .25rem 0; font-weight: 850; text-decoration: underline; text-underline-offset: .18em; }
.hero { position: relative; display: grid; align-items: center; min-height: clamp(270px, 27vw, 424px); color: white; background: #041734 url(hero.webp) center 48% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#041633a8,#04163333 37%,transparent 61%); }
.hero-inner { position: relative; padding-block: 2.6rem; }
.hero h1 { font-weight: 1000; font-size: clamp(3.55rem, 6.7vw, 6.6rem); line-height: .98; text-shadow: 0 3px 24px #0005; letter-spacing: -.045em; margin-bottom: .7rem; }
.hero p { font-weight: 750; font-size: clamp(1.03rem, 1.5vw, 1.26rem); max-width: 24ch; margin-bottom: 1.25rem; }
.hero .button.primary { background: #e23e00; font-size: 1.18rem; min-height: 50px; }
.hero .button.ghost { min-height: 50px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.catalog { padding-block: 1.5rem 2.5rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1.5rem; margin-bottom: 1.05rem; }
.section-heading h1, .section-heading h2 { margin: 0; }
.segments { display: flex; flex-wrap: wrap; gap: .32rem; }
.segments button { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: .4rem .85rem; font-size: .88rem; font-weight: 850; min-height: 36px; }
.segments button:hover, .segments button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.game-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .72rem; }
.game-card { --tile: #dfc8ff; border: 0; color: #071634; background: var(--tile); border-radius: var(--radius); aspect-ratio: 2.46; overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; position: relative; min-width: 0; isolation: isolate; transition: transform .15s, box-shadow .15s; }
.game-card img { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.game-card::before { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg,var(--tile) 0%,transparent 63%); opacity: .64; }
.game-card:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 10px 22px #09204825; }
.game-card strong { margin: .62rem .94rem 0; max-width: 72%; font-size: clamp(1.3rem,3.15vw,2.5rem); font-weight: 1000; line-height: 1; letter-spacing: -.047em; }
.game-card.kolko strong { max-width: 47%; font-size: clamp(1.16rem,2.8vw,2.15rem); }
.game-card span { font-weight: 900; border-radius: 999px; margin: 0 .9rem .65rem; padding: .12rem .55rem; font-size: .78rem; background: #ffffffe0; }
.game-card:disabled { opacity: .52; }
.sag-blue { --tile: #81c9f5; }
.sag-teal { --tile: #87e0d8; }
.sag-yellow { --tile: #ffdc63; }
.sag-pink { --tile: #ff92af; }
.sag-peach { --tile: #ffb989; }
.sag-violet { --tile: #dac4fb; }
.challenge-band { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.1rem; padding: 1.7rem 2rem; margin-top: 1.5rem; border-radius: 18px; background: #071b43; color: white; }
.challenge-copy { display: flex; gap: 1rem; align-items: center; }
.challenge-icon { width: 3.4rem; height: 3.4rem; display: grid; place-items: center; background: #ffffff20; border-radius: 14px; font-size: 1.65rem; flex: none; }
.challenge-band h2 { font-size: clamp(1.55rem,2.8vw,2.1rem); margin: 0 0 .25rem; }
.challenge-band p { margin: 0; color: #e5edff; }
.site-footer { margin-top: auto; color: white; background: #071b43; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.2rem; }
.site-footer .logo { font-size: 1.58rem; }
.site-footer nav a { font-size: .95rem; }
.loading { padding-block: 4rem; }
.page { padding-block: 2.4rem 3.5rem; }
.page-lead { max-width: 68ch; color: var(--muted); margin-bottom: 1.3rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem,3vw,1.65rem); box-shadow: 0 6px 14px #22295008; }
.panel + .panel { margin-top: 1rem; }
.muted { color: var(--muted); }
.small-type { font-size: .92rem; }
.breadcrumb { display: inline-block; font-weight: 850; color: var(--muted); margin-bottom: 1.1rem; text-underline-offset: .22em; }
.notice-bar { background: #fff0ca; border-block: 1px solid #ead29c; padding: .75rem 0; color: #603e04; font-weight: 800; }
.empty { text-align: center; padding: 2.4rem 1.2rem; }
.empty p { color: var(--muted); }
.rooms { display: grid; gap: .6rem; }
.room-row { text-decoration: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .62rem .85rem; }
.room-row:hover { border-color: #e78361; }
.room-details { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.room-details img { width: 76px; aspect-ratio: 1.6; height: auto; border-radius: 9px; object-fit: cover; }
.room-details strong { font-size: 1.09rem; }
.room-details small { font-size: .89rem; }
.pill { display: inline-block; padding: .26rem .65rem; font-weight: 900; font-size: .84rem; border-radius: 999px; background: #edf1f8; white-space: nowrap; }
.pill.waiting { color: #165639; background: #dff5e7; }
.pill.playing { color: #18436c; background: #dcecff; }
.pill.finished { color: #594280; background: #f0e5ff; }
.rank-tabs { margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: .72rem .55rem; }
tr:last-child td { border-bottom: 0; }
th { font-size: .88rem; color: var(--muted); }
td:first-child { font-weight: 900; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0 0 1rem; }
.metrics .panel { margin: 0; }
.metrics strong { display: block; font-size: 2rem; font-weight: 1000; }
.metrics span { color: var(--muted); font-weight: 800; }
dialog { color: var(--ink); border-radius: 20px; padding: 0; border: 1px solid #e8dfd3; background: var(--white); width: min(94vw,475px); overflow: auto; max-height: 90dvh; box-shadow: 0 22px 95px #00163751; }
dialog::backdrop { background: #051435a6; }
.modal-shell { padding: 1.8rem; position: relative; }
.modal-shell h2 { padding-right: 1.2rem; font-size: 2rem; }
.close-modal { position: absolute; right: 1rem; top: 1rem; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0e9e1; font-size: 1.5rem; font-weight: 900; display: grid; place-items: center; line-height: 1; }
.modal-cover { width: 100%; aspect-ratio: 2.65; border-radius: 12px; object-fit: cover; margin: .2rem 0 .85rem; }
.modal-bottom { border-top: 1px solid var(--line); margin: 1rem 0 0; padding-top: .75rem; display: flex; flex-wrap: wrap; gap: 1rem; }
form { display: grid; gap: .78rem; }
form h2 { margin: .5rem 0 0; font-size: 1.35rem; }
label { display: grid; gap: .3rem; font-weight: 850; }
input:not([type=checkbox],[type=radio]), select, textarea { background: #fff; border: 1px solid #c9c7c2; padding: .57rem .72rem; border-radius: 9px; width: 100%; min-height: 41px; }
textarea { resize: vertical; min-height: 5rem; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg,transparent 50%,#344764 50%),linear-gradient(135deg,#344764 50%,transparent 50%); background-position: calc(100% - 16px) 54%,calc(100% - 11px) 54%; background-size: 5px 5px; background-repeat: no-repeat; }
.inline-select { width: auto; min-width: 146px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.check-label { display: flex; align-items: center; gap: .5rem; }
.check-label input { accent-color: var(--orange); width: 1.1rem; height: 1.1rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: .5rem; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: .85rem; }
legend { font-weight: 950; padding: 0 .4rem; }
.error-box { padding: .65rem .8rem; border-radius: 8px; background: #fff0eb; color: #8b280c; margin: 0; }
.toast { position: fixed; z-index: 10; bottom: 1rem; left: 50%; transform: translateX(-50%); max-width: 90vw; width: max-content; border-radius: 12px; background: var(--ink); color: white; box-shadow: var(--shadow); padding: .75rem 1rem; font-weight: 850; }
.skip-link { position: fixed; z-index: 11; top: .5rem; left: .5rem; transform: translateY(-150%); background: white; border: 2px solid var(--ink); padding: .5rem; }
.skip-link:focus { transform: translateY(0); }
.install-wrap { width: min(100% - 2rem, 540px); margin: 2.2rem auto; }
.install-wrap > .logo { margin-bottom: 1.2rem; }
.install-panel h1 { font-size: 2.35rem; }
.install-panel .button { justify-self: start; margin-top: .45rem; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, .47fr); gap: 1rem; align-items: start; }
.board-panel { min-width: 0; }
.side-panel { display: grid; gap: 1rem; }
.side-panel .panel { margin: 0; }
.side-panel p:last-child { margin: 0; }
.turn-indicator { display: block; margin-bottom: .85rem; border-radius: 10px; background: #e8f2ff; color: #173d68; padding: .62rem .85rem; font-weight: 950; }
.turn-indicator.mine { background: #deefdf; color: #194b2d; }
.players { display: grid; gap: .55rem; }
.player { display: flex; align-items: center; gap: .55rem; overflow-wrap: anywhere; }
.player-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ffd374; color: #302511; font-weight: 1000; flex: none; }
.player + .player .player-mark { background: #234875; color: white; }
.board { display: grid; gap: 2px; max-width: 480px; margin-inline: auto; background: #473926; padding: 5px; border-radius: 10px; }
.board8 { grid-template-columns: repeat(8,1fr); }
.board13 { grid-template-columns: repeat(13,1fr); }
.board3 { grid-template-columns: repeat(3,1fr); max-width: 322px; }
.cell { aspect-ratio: 1; min-width: 0; min-height: 0; border: 0; display: grid; place-items: center; padding: 0; position: relative; font-weight: 1000; color: #081a34; background: #f0d8ab; line-height: 1; }
.cell.selected { box-shadow: inset 0 0 0 3px #075ed0; background: #ffe37c !important; }
.cell.target::after { content: ""; width: 18%; height: 18%; background: #075ed0; border-radius: 50%; position: absolute; inset: auto; opacity: .8; pointer-events: none; }
.cell:not(:disabled):hover { box-shadow: inset 0 0 0 2px #224a7d; }
.cell.dark { background: #a67b57; }
.chess-piece { font-family: "DejaVu Sans","Segoe UI Symbol",serif; font-size: clamp(1.5rem,5vw,2.65rem); line-height: 1; }
.chess-light { color: #fffaf0; text-shadow: -1px 0 #514133,0 -1px #514133,1px 0 #514133,0 1px #514133; }
.board.reversi { background: #155133; }
.reversi .cell { background: #4aa879; }
.board.kolko { border: 0; background: #f1d4aa; gap: 5px; }
.kolko .cell { background: #fff9ed; border-radius: 4px; font-size: clamp(1.8rem,7vw,4.2rem); }
.kolko .x { color: #a63716; }
.kolko .o { color: #20568f; }
.gomoku .cell { background: #e6ba75; }
.disc { width: 74%; height: 74%; display: grid; place-items: center; border-radius: 50%; border: 1px solid #241a1540; box-shadow: inset 0 -3px 3px #0004,0 2px 3px #0004; color: #643308; }
.disc.one { background: #fff5d7; }
.disc.two { background: #26272f; color: #ffde7a; }
.disc.black { background: #222430; }
.disc.white { background: #fff5d7; }
.chinczyk { display: grid; grid-template-columns: repeat(11,1fr); max-width: 480px; margin: auto; gap: 2px; background: #ece4d8; padding: 6px; border-radius: 11px; }
.chinczyk .cell { background: #f8f4ed; border-radius: 3px; }
.chinczyk .track { background: #fff; border: 1px solid #d6ccbd; }
.chinczyk .home1 { background: #f2b875; }
.chinczyk .home2 { background: #88b9ef; }
.pawn { width: 78%; height: 78%; border-radius: 50%; display: grid; place-items: center; font-weight: 1000; box-shadow: inset 0 -3px 0 #0004; font-size: clamp(.6rem,2vw,1rem); }
.pawn-one { background: #b44716; color: #fff5d7; }
.pawn-two { background: #1859a9; color: white; }
.soccer { width: min(100%,345px); margin: auto; position: relative; aspect-ratio: 7/11; }
.soccer canvas, .soccer-grid { position: absolute; width: 100%; height: 100%; inset: 0; }
.soccer-grid { display: grid; grid-template-columns: repeat(7,1fr); grid-template-rows: repeat(11,1fr); }
.soccer-grid button { background: transparent; border: 0; padding: 0; display: grid; place-items: center; }
.soccer-grid button:not(:disabled)::after { width: 25%; aspect-ratio: 1; border-radius: 50%; content: ""; background: #f7c14f; border: 1px solid #8b5818; }
.soccer-grid button:not(:disabled):hover::after { width: 40%; }
.board.kulki { background: #132b55; }
.kulki .cell { background: #233d65; border-radius: 6px; }
.orb { width: 76%; height: 76%; border-radius: 50%; box-shadow: inset 0 -4px 7px #0005, 0 2px 4px #09162fa0; background: radial-gradient(circle at 31% 22%,#fff6d8 0%,var(--orb) 29%,var(--orb-dark) 88%); }
.orb-1 { --orb:#ff554b; --orb-dark:#bb280c; }
.orb-2 { --orb:#31ba77; --orb-dark:#138543; }
.orb-3 { --orb:#479dfa; --orb-dark:#1747b4; }
.orb-4 { --orb:#ffd442; --orb-dark:#e28b05; }
.orb-5 { --orb:#ca78fa; --orb-dark:#8839ad; }
.board.mahjong { background: #6e4234; }
.mahjong .cell { background: #875648; border-radius: 4px; color: #074936; }
.mahjong .cell:not(.blank) { background: #fff4d5; box-shadow: inset 0 -4px 0 #ddc094; }
.mahjong .symbol { font-size: clamp(1.1rem,3.5vw,2.35rem); }
.mahjong .cell:disabled:not(.blank) { filter: brightness(.9); }
.center { text-align: center; }
.board-controls { margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.board-controls.center { justify-content: center; }
.hand, .domino-chain, .dice { display: flex; flex-wrap: wrap; gap: .4rem; margin: .65rem 0 1rem; }
.domino-chain { padding: .7rem; background: #e1f1ea; border-radius: 11px; }
.domino-tile { display: inline-flex; border: 1px solid #b7a689; border-radius: 7px; background: #fff4d9; color: #201c18; box-shadow: inset 0 -2px 0 #d2b991; padding: 0; }
.domino-tile span { padding: .34rem .55rem; font-size: 1.22rem; font-weight: 1000; }
.domino-tile span + span { border-left: 1px solid #b7a689; }
.domino-tile:disabled:not(span) { opacity: .55; }
.playing-card { font-size: 1.45rem; font-weight: 1000; line-height: 1.16; min-width: 2.35em; min-height: 3em; background: #fff; border: 1px solid #c4c3c0; border-bottom: 3px solid #d5ccc0; border-radius: 8px; padding: .25em .2em; text-align: left; display: inline-flex; flex-direction: column; }
.playing-card.red { color: #a7132d; }
button.playing-card:disabled { opacity: .62; }
.selected-card, .die.held { border-color: #255ba0; box-shadow: 0 0 0 2px #255ba0; }
.die { border: 1px solid #cabba4; font-size: 2.25rem; line-height: 1; background: #fff4d9; border-radius: 9px; padding: .2em; box-shadow: inset 0 -3px 0 #dfc8a5; }
.board-note { margin: .8rem 0 0; color: var(--muted); min-height: 1.4rem; }
@media (max-width: 900px) {
  .account-name { display: none; }
  .account { padding-left: .9rem; gap: .35rem; }
  .site-width { width: min(100% - 2.5rem,1192px); }
}
@media (max-width: 670px) {
  .site-width { width: min(100% - 1.6rem,1192px); }
  .header-inner { flex-wrap: wrap; gap: .35rem .7rem; min-height: 0; padding-top: .6rem; padding-bottom: .45rem; }
  .top-nav { order: 3; width: 100%; justify-content: center; gap: min(12vw,3rem); padding-block: .45rem .15rem; }
  .top-nav a { font-size: 1rem; }
  .account { border-left: 0; padding-left: 0; margin-left: auto; }
  .account .button { font-size: .84rem; padding: .46rem .56rem; min-height: 36px; }
  .hero { background-position: 58% center; min-height: 290px; }
  .hero::before { background: linear-gradient(90deg,#041633e0 0%,#0416338c 47%,#0416331a); }
  .hero h1 { font-size: clamp(3.1rem,10vw,4.5rem); }
  .hero p { max-width: 22ch; }
  .hero .button.primary, .hero .button.ghost { min-height: 42px; font-size: .94rem; padding-inline: .72rem; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
  .game-card { aspect-ratio: 1.95; border-radius: 12px; }
  .game-card strong { margin: .55rem .6rem 0; }
  .game-card span { margin: 0 .5rem .5rem; font-size: .7rem; }
  .challenge-band { padding: 1rem; }
  .footer-inner { flex-wrap: wrap; padding-block: .95rem; }
  .site-footer nav { gap: .9rem; }
  .game-layout { grid-template-columns: minmax(0,1fr); }
  .page { padding-block: 1.45rem 2.3rem; }
  .room-details img { width: 51px; }
}
@media (max-width: 355px) {
  .logo { font-size: 1.35rem; }
  .logo-icon { width: 2em; }
  .game-card strong { font-size: 1.15rem; }
  .account .button { font-size: .75rem; padding-inline: .38rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.ex-hand,.ex-trick,.ex-scores,.ex-entry,.ex-moves{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;margin:.7rem 0}
.ex-card{display:inline-flex;align-items:center;justify-content:center;min-width:2.25rem;min-height:2.7rem;padding:.25rem;background:#fff;color:#172441;border:1px solid #cdc9c2;border-radius:.4rem;font-weight:900;font-size:1.12rem}
.ex-red{color:#b42b3b}.ex-action:has(.ex-card){padding:.2rem}.ex-trick small,.ex-town small,.ex-town strong{display:block}.ex-scores span,.ex-caption{padding:.4rem .65rem;background:#f4eee4;border-radius:.5rem}
.ex-summary{width:100%;border-collapse:collapse}.ex-summary td,.ex-summary th{padding:.3rem;border-bottom:1px solid #ddd;text-align:left}
.ex-words{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));max-width:590px;margin:1rem auto;background:#d9c6a5;padding:4px;gap:2px}.ex-words button{aspect-ratio:1;background:#fff5da;border:0;color:#26313c;font-weight:bold;cursor:pointer}.ex-words .selected{outline:3px solid #ea630e;z-index:1}
#ex-canvas{display:block;width:min(100%,360px);height:auto;aspect-ratio:1;background:white;border:1px solid #ada79b;border-radius:8px;touch-action:none;margin:.75rem auto}
.ex-town{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.ex-town div{background:#ecf1e3;border-top:4px solid #458269;border-radius:6px;padding:.35rem;font-size:.9rem;overflow-wrap:anywhere}
.ex-bg{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:2px;padding:4px;background:#6f492f}.ex-bg div{min-height:4.2rem;background:#f5d6ae;display:grid;text-align:center;align-content:space-around}.ex-bg div:nth-child(even){background:#dfb58b}.ex-bg b{font-size:clamp(.68rem,2vw,1.2rem)}.ex-entry input{width:9rem}

.ex-words button{padding:0;min-width:0;font-size:clamp(.62rem,2vw,1rem)}.ex-words .ex-bonus-2{background:#ffe1c9}.ex-words .ex-bonus-3{background:#ffb6a7}
