/* Kelime Telaşı — shared interface */
:root {
  color-scheme: light;
  --font-body: 16px;
  --font-heading: 32px;
  --font-display: 64px;
  --bg: #ffffff;
  --surface: #f5f5f1;
  --ink: #1c211e;
  --muted: #70756f;
  --line: #dedfd9;
  --strong-line: #a3a79f;
  --g: #507549;
  --y: #d4b65b;
  --b: #727973;
  --key: #e5e6e1;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { font-size: var(--font-body); }
h1, h2, h3, h4, h5, h6 { font-size: var(--font-body); }
small { font-size: var(--font-body); }
body { font-size: var(--font-body); margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, .button { touch-action: manipulation; border-radius: 0; }
button:disabled { opacity: .45; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--g); outline-offset: 4px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.hide { display: none !important; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
.site-header { height: 68px; padding: 0 36px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.wordmark { font-family: var(--serif); font-size: var(--font-heading); font-weight: 700; letter-spacing: -1.3px; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--g); }
.header-actions { display: flex; gap: 24px; align-items: center; }
.header-note { color: var(--muted); font-size: var(--font-body); }
.icon-button { width: 42px; height: 42px; border: 0; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; border-radius: 0; }
.icon-button:hover { background: var(--surface); }
.icon-button .icon { width: 25px; height: 25px; }
.button { min-height: 48px; border: 1px solid var(--ink); border-radius: 0; padding: 13px 25px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: var(--font-body); font-weight: 650; line-height: 1.3; text-decoration: none; transition: background .15s, transform .15s; }
.button-primary { color: white; background: var(--ink); }
.button-primary:hover:not(:disabled) { background: #353d35; }
.button-outline { color: var(--ink); background: transparent; }
.button-outline:hover { background: var(--surface); }
.button-small { min-height: 38px; padding: 8px 16px; font-size: var(--font-body); }
.full-width { width: 100%; }
.text-button { background: none; border: 0; padding: 8px 0; font-size: var(--font-body); color: var(--muted); text-underline-offset: 4px; }
.text-button:hover { color: var(--ink); text-decoration: underline; }
.eyebrow { font-size: var(--font-body); font-weight: 700; letter-spacing: 2px; line-height: 1.5; }
.site-footer { width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: var(--font-body); }
.footer-dot { margin: 0 6px; }
/* Opening screen and mode forms */
.page-home { display: flex; flex-direction: column; background: #f8f8f5; }
.page-home .site-header { border-bottom-color: transparent; }
.home-main { flex: 1; width: 100%; max-width: 740px; margin: 0 auto; padding: 52px 24px 36px; text-align: center; }
.hero-word { display: flex; justify-content: center; gap: 5px; margin-bottom: 25px; }
.hero-word span { display: grid; place-items: center; width: 41px; height: 44px; border: 1.5px solid var(--ink); background: transparent; font-size: var(--font-body); font-weight: 750; }
.hero-word span:nth-child(2) { background: var(--y); }
.hero-word span:nth-child(4), .hero-word span:nth-child(5) { background: var(--g); color: white; }
.hero .eyebrow { color: var(--muted); margin-bottom: 12px; }
.hero h1 { font-family: var(--serif); font-size: var(--font-display); line-height: 1.04; font-weight: 700; letter-spacing: -3.5px; }
.hero-description { font-size: var(--font-body); line-height: 1.45; margin-top: 20px; letter-spacing: -.4px; }
.hero-subtitle { margin: 7px 0 29px; color: var(--muted); font-size: var(--font-body); line-height: 1.6; }
.mode-tabs { display: flex; gap: 9px; justify-content: center; max-width: 550px; margin: 0 auto; }
.mode-tab { flex: 1; min-width: 0; padding: 13px 12px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font-size: var(--font-body); font-weight: 650; min-height: 46px; }
.mode-tab[aria-selected="true"] { background: var(--ink); color: white; }
.mode-tab:not([aria-selected="true"]):hover { background: #eeefe8; }
.mode-panel { width: 100%; max-width: 550px; margin: 20px auto 0; padding: 24px 26px; background: white; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.panel-intro { margin-bottom: 20px; font-size: var(--font-body); line-height: 1.7; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: var(--font-body); font-weight: 650; }
input, select { width: 100%; min-width: 0; height: 46px; padding: 10px 12px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; font-size: var(--font-body); }
input::placeholder { color: #969b94; opacity: 1; }
input.code { letter-spacing: 5px; font-weight: 700; text-transform: uppercase; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.form-row.one-field { grid-template-columns: 1fr; }
.mode-panel .button { width: 100%; }
.home-caption { display: flex; gap: 20px; justify-content: center; margin-top: 20px; color: var(--muted); font-size: var(--font-body); }
.home-caption span + span::before { content: '·'; margin-right: 20px; }
/* Reusable help */
.help-dialog { width: min(540px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; box-shadow: 0 18px 70px #20281f24; overscroll-behavior: contain; }
.help-dialog::backdrop { background: #262d2340; backdrop-filter: blur(2px); }
.dialog-close { position: absolute; top: 12px; right: 12px; }
.dialog-content { padding: 38px; }
.dialog-content > .eyebrow { margin-bottom: 12px; padding-right: 20px; color: var(--muted); font-size: var(--font-body); }
.dialog-content h2 { font-family: var(--serif); font-size: var(--font-heading); letter-spacing: -1.5px; line-height: 1.15; }
.dialog-intro { margin-top: 12px; line-height: 1.6; font-size: var(--font-body); }
.help-rules { margin: 18px 0 25px; padding-left: 18px; font-size: var(--font-body); line-height: 1.8; }
.help-example { margin-bottom: 20px; }
.example-word { display: flex; gap: 5px; margin-bottom: 9px; }
.example-word .tile { width: 42px; height: 44px; flex: none; font-size: var(--font-body); }
.help-example p, .help-note { font-size: var(--font-body); line-height: 1.6; }
.help-note { color: var(--muted); }
.help-extra { margin: 22px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.help-extra h3 { font-size: var(--font-body); margin-bottom: 8px; }
.help-extra p { font-size: var(--font-body); color: var(--muted); line-height: 1.7; }
/* Player screen */
.page-play { display: flex; flex-direction: column; }
.page-play .header-note { display: none; }
.play { width: 100%; max-width: 520px; height: calc(100dvh - 68px); min-height: 0; display: flex; flex-direction: column; align-items: center; margin: 0 auto; padding: 0 14px 12px; }
.bar { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.player-name { max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--font-body); font-weight: 600; }
.bar-time { display: flex; align-items: center; gap: 8px; }
.bar-label { font-size: var(--font-body); text-transform: uppercase; letter-spacing: 1.1px; color: var(--muted); }
.bar .t { min-width: 54px; font-size: var(--font-body); font-weight: 700; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.score-chip { display: flex; align-items: center; gap: 5px; font-size: var(--font-body); }
.score-chip .icon { width: 15px; height: 15px; color: var(--g); }
.score-chip b { font-size: var(--font-body); }
.game-area { display: flex; flex: 1; min-height: 0; width: 100%; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.grid { --tile-size: min(64px, calc((100dvh - 374px) / 6), calc((100vw - 62px) / 5)); display: grid; grid-template-rows: repeat(6, 1fr); gap: 6px; width: calc(5 * var(--tile-size) + 24px); flex: 0 0 auto; margin: auto 0; }
.row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tile { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; border: 2px solid var(--line); font-size: var(--font-heading); line-height: 1; font-weight: 750; }
.tile.f { border-color: var(--strong-line); }
.tile.g, .key.g { background: var(--g); color: white; border-color: var(--g); }
.tile.y, .key.y { background: var(--y); color: #20251c; border-color: var(--y); }
.tile.b, .key.b { background: var(--b); color: white; border-color: var(--b); }
.kb { width: 100%; flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.kb > div { display: flex; gap: 4px; justify-content: center; }
.key { flex: 1; min-width: 0; height: 54px; padding: 0; border: 0; border-radius: 0; background: var(--key); color: var(--ink); font-size: var(--font-body); line-height: 1; font-weight: 700; }
.key.wide { flex: 1.5; font-size: var(--font-body); }
.key svg { width: 20px; height: 20px; }
.kb, .key { touch-action: manipulation; }
.key { -webkit-user-select: none; user-select: none; }
.key:active { filter: brightness(.9); }
.tile.pop { animation: pop .16s ease-out; }
.row.shake { animation: shake .3s; }
.is-embedded .play { height: 100dvh; padding: 0 10px 10px; }
.is-embedded .grid { --tile-size: min(62px, calc((100dvh - 310px) / 6), calc((100vw - 52px) / 5)); }
/* Waiting and results */
.state-screen { width: 100%; flex: 1; min-height: 0; overflow-y: auto; padding: 50px 6px 24px; text-align: center; }
.state-screen h1, .state-screen h2 { font-family: var(--serif); font-size: var(--font-heading); letter-spacing: -1.7px; font-weight: 700; line-height: 1.1; }
.state-screen > .eyebrow { margin-bottom: 15px; color: var(--muted); }
.state-screen > .muted { font-size: var(--font-body); line-height: 1.7; margin-top: 14px; }
.wait-mark { display: flex; gap: 5px; justify-content: center; margin: 0 auto 26px; }
.wait-mark span { width: 17px; height: 17px; background: var(--g); opacity: .3; animation: breathe 2s infinite; }
.wait-mark span:nth-child(2) { animation-delay: .2s; }
.wait-mark span:nth-child(3) { animation-delay: .4s; }
.score-number { font-size: var(--font-display); font-family: var(--serif); font-weight: 700; letter-spacing: -5px; line-height: 1.15; color: var(--g); margin-top: 18px; }
.score-description { font-size: var(--font-body); color: var(--muted); }
.rank-message { margin: 19px 0; font-size: var(--font-body); font-weight: 600; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
/* Room owner */
.host-shell { width: 100%; max-width: 1060px; margin: 0 auto; padding: 35px 28px 50px; }
.room-heading { margin-bottom: 28px; text-align: center; }
.room-heading .eyebrow { color: var(--muted); margin-bottom: 10px; }
.room-heading h1 { font-family: var(--serif); font-size: var(--font-heading); letter-spacing: -1.7px; }
.room-heading > p:last-child { margin-top: 10px; font-size: var(--font-body); color: var(--muted); }
.host-top { display: flex; justify-content: space-between; gap: 28px; align-items: center; background: var(--surface); border-radius: 12px; padding: 26px 32px; }
.room-invite { flex: 1; min-width: 0; }
.room-invite .eyebrow { color: var(--muted); }
.code-line { display: flex; align-items: center; gap: 12px; margin: 5px 0 8px; }
.bigcode { font-size: var(--font-display); font-weight: 750; letter-spacing: 8px; line-height: 1.15; }
.room-url { font-size: var(--font-body); color: var(--muted); overflow-wrap: anywhere; line-height: 1.6; }
.qr { width: 124px; height: 124px; padding: 7px; border: 1px solid var(--line); background: white; border-radius: 6px; }
.lobby-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 30px; }
.section-label { font-size: var(--font-body); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 17px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.player-count { color: var(--muted); font-weight: 400; font-size: var(--font-body); }
.host-join p { font-size: var(--font-body); line-height: 1.6; color: var(--muted); margin-bottom: 18px; }
.host-join .field { margin-bottom: 14px; }
.host-join .button { width: 100%; }
.joined-note { padding: 17px; background: #f0f5ed; color: #395b35; border: 1px solid #d7e2d2; border-radius: 7px; font-size: var(--font-body); line-height: 1.7; }
.lobby-players { border-left: 1px solid var(--line); padding-left: 34px; }
.room-actions { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); text-align: center; }
.room-actions .button { min-width: 240px; }
.room-actions p { margin-top: 12px; font-size: var(--font-body); color: var(--muted); }
.live-heading { display: flex; align-items: center; justify-content: space-between; min-height: 38px; margin-bottom: 12px; }
.live-heading .eyebrow { color: var(--muted); letter-spacing: 1.3px; }
.live-heading strong { color: var(--ink); margin-left: 6px; letter-spacing: 2px; }
.host-game-layout.with-player { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
.host-game-layout > * { min-width: 0; }
.host-player-frame { display: block; border: 0; width: 100%; height: min(740px, calc(100dvh - 162px)); }
.score-panel { padding-top: 10px; }
.with-player .score-panel .timer { display: none; }
.with-player .score-panel { border-left: 1px solid var(--line); padding-left: 30px; }
.timer { font-size: var(--font-heading); line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -1.5px; }
.score-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.score-panel-heading h2 { font-size: var(--font-body); letter-spacing: 1px; text-transform: uppercase; }
.low { color: #b33b32; }
.scores-toggle { display: none; }
.is-host-playing .host-shell { padding-top: 14px; padding-bottom: 14px; }
.is-host-playing .room-heading, .is-host-playing > .site-footer { display: none; }
.host-results { max-width: 660px; margin: 0 auto; text-align: center; padding: 20px 0; }
.host-results h2 { font-family: var(--serif); font-size: var(--font-heading); letter-spacing: -2px; }
.host-results > .eyebrow { margin-bottom: 12px; color: var(--muted); }
.winner-message { color: var(--muted); font-size: var(--font-body); margin: 14px 0 30px; }
/* Shared rankings */
.lb { list-style: none; padding: 0; margin: 0; width: 100%; text-align: left; }
.lb li { display: flex; align-items: center; gap: 12px; padding: 15px 8px; border-bottom: 1px solid var(--line); }
.lb li.is-me { background: #f3f6ef; }
.lb .rank { color: var(--muted); font-size: var(--font-body); min-width: 18px; font-variant-numeric: tabular-nums; }
.lb li:first-child .rank { color: var(--g); font-weight: 750; }
.lb .nm { flex: 1; font-size: var(--font-body); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.me-label { display: inline-block; font-size: var(--font-body); font-weight: 600; text-transform: uppercase; color: var(--g); margin-left: 7px; padding: 2px 4px; border: 1px solid #cfdbca; border-radius: 3px; vertical-align: middle; }
.player-stat { text-align: right; flex: 0 0 auto; }
.player-stat b { font-size: var(--font-body); font-weight: 650; }
.player-stat small { display: block; font-size: var(--font-body); color: var(--muted); margin-top: 2px; white-space: nowrap; }
.player-ready { font-size: var(--font-body); color: var(--g); }
.player-ready::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 5px; background: var(--g); border-radius: 50%; vertical-align: middle; }
.mini { display: flex; flex-direction: column; gap: 2px; }
.mini div { display: flex; gap: 2px; }
.mini i { width: 6px; height: 6px; background: var(--b); }
.mini i.g { background: var(--g); }
.mini i.y { background: var(--y); }
.empty-list { padding: 20px 0; text-align: center; color: var(--muted); font-size: var(--font-body); line-height: 1.7; }
#toast { position: fixed; top: 82px; left: 50%; transform: translate(-50%, -6px); max-width: calc(100vw - 32px); width: max-content; background: var(--ink); color: white; border-radius: 7px; padding: 12px 18px; font-size: var(--font-body); font-weight: 600; line-height: 1.6; opacity: 0; transition: opacity .15s, transform .15s; pointer-events: none; z-index: 50; text-align: center; box-shadow: 0 5px 20px #00000018; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.is-embedded #toast { top: 60px; }
@keyframes pop { 50% { transform: scale(1.08); } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes breathe { 50% { opacity: 1; } }
@media (max-width: 720px) {
  .site-header { padding: 0 20px; height: 60px; }
  .wordmark { font-size: var(--font-heading); }
  .header-note { display: none; }
  .home-main { padding-top: 36px; }
  .hero h1 { letter-spacing: -2.5px; }
  .site-footer { padding: 18px 20px; }
  .play { height: calc(100dvh - 60px); }
  .host-shell { padding: 27px 20px 36px; }
  .host-top { padding: 22px; gap: 14px; }
  .qr { width: 105px; height: 105px; }
  .bigcode { font-size: var(--font-heading); letter-spacing: 6px; }
  .lobby-columns { grid-template-columns: 1fr; gap: 25px; }
  .lobby-players { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 23px; }
  .host-game-layout.with-player { grid-template-columns: 1fr; gap: 20px; }
  .with-player .score-panel { display: none; border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .with-player.scores-open .score-panel { display: block; }
  .with-player .scores-toggle { display: inline-flex; }
  .is-host-playing .host-shell { padding: 10px 10px 18px; }
  .host-player-frame { height: calc(100dvh - 128px); }
  .live-heading { margin: 0 6px 7px; }
  .scores-toggle.can-toggle { display: inline-flex; }
  .host-results h2 { font-size: var(--font-heading); }
}
@media (max-width: 400px) {
  .home-main { padding-left: 18px; padding-right: 18px; }
  .mode-tabs { gap: 6px; }
  .mode-tab { font-size: var(--font-body); padding: 12px 8px; }
  .mode-panel { padding: 21px 18px; }
  .home-caption { gap: 10px; font-size: var(--font-body); }
  .home-caption span + span::before { margin-right: 10px; }
  .dialog-content { padding: 32px 23px 24px; }
  .dialog-content h2 { font-size: var(--font-heading); }
  .host-top { padding: 18px; }
  .bigcode { font-size: var(--font-heading); letter-spacing: 5px; }
  .qr { width: 88px; height: 88px; }
  .code-line { gap: 4px; }
  .code-line .icon-button { width: 32px; height: 32px; }
  .site-footer { font-size: var(--font-body); }
}
@media (max-height: 800px) {
  .home-main { padding-top: 24px; padding-bottom: 6px; }
  .hero-word { margin-bottom: 18px; }
  .hero-word span { width: 35px; height: 37px; font-size: var(--font-body); }
  .hero h1 { font-size: var(--font-display); }
  .hero-description { font-size: var(--font-body); margin-top: 14px; }
  .hero-subtitle { margin-bottom: 22px; }
  .mode-panel { margin-top: 17px; padding-top: 19px; padding-bottom: 19px; }
  .panel-intro { margin-bottom: 14px; }
  .form-row { margin-bottom: 14px; }
  .home-caption { margin-top: 14px; }
  .page-home .site-footer { padding-top: 12px; padding-bottom: 12px; }
}
@media (max-height: 700px) {
  .key { height: 46px; }
  .grid { --tile-size: min(58px, calc((100dvh - 336px) / 6), calc((100vw - 62px) / 5)); }
  .is-embedded .grid { --tile-size: min(58px, calc((100dvh - 274px) / 6), calc((100vw - 52px) / 5)); }
  .state-screen { padding-top: 30px; }
}
@media (max-height: 500px) and (min-width: 620px) {
  .play { max-width: 920px; }
  .game-area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
  .grid, .is-embedded .grid { --tile-size: min(42px, calc((100dvh - 180px) / 6)); margin: 0 auto; }
  .key { height: 44px; }
  .is-embedded .grid { --tile-size: min(42px, calc((100dvh - 112px) / 6)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Four-size type scale, including all responsive states. */
.bar .t { font-size: var(--font-heading); }
.example-word .tile { font-size: var(--font-heading); }
@media (max-width: 720px) { .hero h1 { font-size: var(--font-heading); letter-spacing: -1px; } }
@media (max-height: 600px) { .grid .tile { font-size: var(--font-body); } }
/* Game features: the same 16 / 32 / 64px type scale and square buttons. */
.difficulty-field { margin-bottom: 18px; }
.play, .game-area { position: relative; }
.countdown { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #ffffffed; text-align: center; padding: 24px; }
.countdown strong { font-family: var(--serif); font-size: var(--font-display); line-height: 1; }
.countdown p { font-size: var(--font-body); }
.host-countdown { color: var(--g); font-size: var(--font-body); letter-spacing: normal; }
.word-card { position: absolute; top: 62px; left: 14px; right: 14px; z-index: 20; max-height: min(310px, 50dvh); overflow-y: auto; background: white; border: 2px solid var(--g); padding: 18px 20px; box-shadow: 0 8px 24px #182a151a; }
.word-card h2 { font-size: var(--font-heading); margin: 7px 0 12px; letter-spacing: 1px; }
.word-card > p:first-of-type { padding-right: 30px; }
.word-card p, .meaning-content p { font-size: var(--font-body); line-height: 1.5; }
.word-card-close { position: absolute; top: 5px; right: 5px; }
.word-card-hint { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; color: var(--muted); }
.meaning-source { margin-top: 12px; color: var(--muted); }
.meaning-source a { text-underline-offset: 3px; }
.meaning-content { margin-top: 20px; line-height: 1.6; }
.round-summary { text-align: left; margin-top: 30px; }
.summary-heading { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.summary-heading h3 { font-size: var(--font-body); margin-bottom: 8px; }
.summary-heading p { font-size: var(--font-body); color: var(--muted); }
.word-results { list-style: none; padding: 0; margin: 0; }
.word-result { display: grid; width: 100%; grid-template-columns: 1fr; gap: 8px; text-align: left; padding: 18px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font-size: var(--font-body); border-radius: 0; }
.word-result:hover { background: var(--surface); }
.word-result strong { font-size: var(--font-heading); }
.word-result.is-solved strong { color: var(--g); }
.result-meaning-link { color: var(--muted); }
.stats-note { color: var(--muted); font-size: var(--font-body); line-height: 1.6; margin: 18px 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-bottom: 25px; }
.stats-grid > div { min-width: 0; }
.stats-grid strong { display: block; font-size: var(--font-heading); margin-bottom: 8px; }
.stats-grid span { font-size: var(--font-body); line-height: 1.5; }
.recent-heading { font-size: var(--font-body); margin: 25px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.stats-recent { list-style: none; margin: 0; padding: 0; }
.stats-recent li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: var(--font-body); line-height: 1.5; }
.stats-recent li span { min-width: 0; }
.stats-recent li strong { white-space: nowrap; }
@media (max-width:720px) { .header-actions { gap:4px; } .header-actions .icon-button { width:34px; height:40px; } .site-header { gap:8px; } }
@media (max-width:400px) { .site-header { padding-left:12px; padding-right:12px; } .dialog-content > .eyebrow { letter-spacing:1px; } }

.summary-views { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.summary-views button[aria-pressed="true"] { background:var(--ink); color:white; }
