@layer reset, base, components, games, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p { margin: 0; }
  button, input, select { font: inherit; }
  button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  img, svg { max-width: 100%; }
  [hidden] { display: none !important; }
}
@layer base {
  :root { color-scheme: light; --bg: #f8f7f3; --surface: #ffffff; --ink: #25332b; --muted: #727970; --line: #e2e4db; --green: #365f4b; --soft-green: #eaf0e8; --warm: #eee9df; --gold: #a17b36; --danger: #a4443d; --shadow: 0 10px 35px #263a2806; --radius: 16px; }
  :root[data-theme="dark"] { color-scheme: dark; --bg: #171e19; --surface: #222c24; --ink: #e7ecdf; --muted: #acb5a8; --line: #3b493b; --green: #aacbb4; --soft-green: #303f32; --warm: #38392d; --gold: #cfb777; --danger: #ed9b91; --shadow: none; }
  @media (prefers-color-scheme: dark) { :root[data-theme="system"] { color-scheme: dark; --bg: #171e19; --surface: #222c24; --ink: #e7ecdf; --muted: #acb5a8; --line: #3b493b; --green: #aacbb4; --soft-green: #303f32; --warm: #38392d; --gold: #cfb777; --danger: #ed9b91; --shadow: none; } }
  html { scroll-behavior: smooth; scrollbar-gutter: stable; }
  body { background: var(--bg); color: var(--ink); font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif; font-size: 15px; line-height: 1.6; }
  h1, h2, h3 { line-height: 1.2; font-weight: 600; }
  h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 4.3vw, 62px); font-weight: 400; letter-spacing: -.045em; }
  h1 em { color: var(--green); font-weight: 400; }
  h2 { font-size: 25px; letter-spacing: -.035em; }
  h3 { font-size: 20px; letter-spacing: -.025em; }
  p { text-wrap: pretty; }
  button:disabled { cursor: default; }
  :focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
  main:focus { outline: none; }
  input, select { min-width: 0; width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink); border-radius: 9px; padding: 12px 14px; font-size: 16px; }
  input:focus, select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
  input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--green); }
  summary { cursor: pointer; font-weight: 600; }
  small, .small { font-size: 12px; color: var(--muted); }
  .muted { color: var(--muted); }
  .center { text-align: center; }
  .full { width: 100%; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }
  .skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; padding: 12px; background: var(--surface); }
  .skip-link:focus { top: 8px; }
}
@layer components {
  .site-header { border-bottom: 1px solid var(--line); }
  .header-inner { max-width: 1240px; padding: 0 42px; min-height: 96px; display: flex; align-items: center; gap: 68px; margin: auto; }
  .wordmark { font-size: 34px; letter-spacing: -.07em; font-weight: 850; line-height: 1; }
  .brand-dot { color: var(--green); }
  #navigation { display: flex; align-self: stretch; align-items: stretch; gap: 28px; font-size: 13px; font-weight: 600; }
  #navigation a { display: flex; align-items: center; position: relative; color: var(--muted); }
  #navigation a.active { color: var(--green); }
  #navigation a.active::after { content: ''; position: absolute; height: 2px; background: var(--green); bottom: -1px; left: 0; right: 0; }
  .header-end { margin-left: auto; display: flex; align-items: center; gap: 22px; }
  .private-label { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
  .small-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--green); }
  .icon-button { background: transparent; border: 1px solid var(--line); width: 35px; height: 35px; border-radius: 50%; color: var(--ink); font-size: 22px; }
  #main { max-width: 1240px; padding: 0 42px 65px; min-height: calc(100vh - 200px); margin: auto; }
  .hero { display: grid; grid-template-columns: 1fr 330px; align-items: center; gap: 42px; padding: 54px 0 44px; }
  .eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
  .welcome { font-size: 13px; margin-top: 25px; margin-bottom: 12px; }
  .hero .lede { margin-top: 19px; font-size: 14px; }
  .lede { color: var(--muted); line-height: 1.8; max-width: 600px; margin-top: 18px; }
  .daily-art { transform: rotate(5deg); border: 1px solid var(--line); border-radius: 3px; background: var(--surface); width: 259px; padding: 20px 25px 17px; justify-self: center; box-shadow: 10px 13px 0 var(--warm); }
  .art-caption { display: block; font-size: 7px; letter-spacing: .12em; border-bottom: 1px solid var(--line); padding-bottom: 12px; text-align: center; }
  .art-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 16px 0; }
  .art-tile { aspect-ratio: 1; min-width: 0; min-height: 0; line-height: 1; display: grid; place-items: center; font-size: 30px; font-family: Georgia, serif; background: var(--soft-green); color: var(--green); border-radius: 5px; }
  .art-tile-1, .art-tile-4 { background: #4f7257; color: #fff; }
  .art-tile-2, .art-tile-7 { background: #e6dab5; color: #605c3b; }
  .art-tile-5 { background: transparent; font-size: 53px; }
  .art-tile-6 { background: var(--warm); }
  .art-bottom { display: block; text-align: center; font-family: Georgia, serif; font-size: 10px; font-style: italic; border-top: 1px solid var(--line); padding-top: 12px; }
  .daily-summary { display: grid; grid-template-columns: 1.45fr 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 24px 30px; gap: 30px; box-shadow: var(--shadow); }
  .progress-metric { padding-right: 15px; }
  .progress-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 9px; }
  .progress-top span { color: var(--green); font-weight: 600; }
  progress { display: block; appearance: none; border: 0; border-radius: 8px; height: 6px; width: 100%; background: var(--soft-green); margin: 12px 0 9px; overflow: hidden; }
  progress::-webkit-progress-bar { background: var(--soft-green); }
  progress::-webkit-progress-value { background: var(--green); border-radius: 8px; }
  progress::-moz-progress-bar { background: var(--green); }
  .progress-metric small { font-size: 10px; }
  .metric { display: flex; align-items: center; gap: 18px; border-left: 1px solid var(--line); padding-left: 30px; }
  .metric-value { color: var(--green); font-family: Georgia, serif; font-size: 38px; line-height: 1; }
  .metric strong { display: block; font-size: 12px; font-weight: 600; }
  .metric small { display: block; font-size: 10px; margin-top: 5px; }
  .puzzles-section { margin-top: 44px; }
  .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
  .section-heading .eyebrow { margin-bottom: 9px; }
  .reset-label { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 6px; }
  #countdown { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
  .filter-bar { display: flex; gap: 7px; margin-bottom: 24px; flex-wrap: wrap; }
  .filter { border: 1px solid transparent; border-radius: 7px; padding: 7px 15px; background: transparent; color: var(--muted); font-size: 12px; }
  .filter.selected { color: var(--green); background: var(--soft-green); font-weight: 650; }
  .filter:hover { border-color: var(--line); }
  .game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
  .game-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 25px 17px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .game-card:hover { transform: translateY(-4px); border-color: #9bac98; box-shadow: 0 12px 35px #263a2810; }
  .card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
  .category-label { font-size: 9px; color: var(--muted); letter-spacing: .06em; border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; }
  .game-card h3 { margin-bottom: 7px; }
  .game-card > p { color: var(--muted); font-size: 12px; min-height: 39px; line-height: 1.7; }
  .card-bottom { margin-top: 19px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
  .game-status { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
  .status-dot { height: 5px; width: 5px; border-radius: 50%; background: #a3ae9d; }
  .game-status.started { color: var(--gold); }
  .game-status.started .status-dot { background: var(--gold); }
  .game-status.done { color: var(--green); }
  .game-status.done .status-dot { background: transparent; width: auto; height: auto; }
  .card-arrow { color: var(--green); background: var(--soft-green); width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; }
  .motif { width: 60px; height: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .tile { display: grid; place-items: center; border-radius: 4px; font-size: 19px; font-weight: 700; background: #e4ecdf; color: #476449; line-height: 1; }
  .motif-wortfuenf .tile-0, .motif-wortfuenf .tile-3 { color: white; background: #547758; }
  .motif-wortfuenf .tile-2 { background: #d6c69b; color: #fff; }
  .motif-zahlenziel .tile { background: #eee5cd; color: #8f783f; }
  .motif-zahlenziel .tile-3 { background: #b49d61; color: #fff; }
  .motif-sudoku { gap: 2px; padding: 3px; border: 2px solid #7f97a4; border-radius: 6px; background: #e4ecee; }
  .motif-sudoku .tile { background: #e4ecee; color: #597987; border: 1px solid #c0d0d5; border-radius: 1px; }
  .motif-nonogramm .tile { background: #c8d2c2; color: #65805d; }
  .motif-nonogramm .tile-1, .motif-nonogramm .tile-3 { color: #66805f; background: #66805f; }
  .motif-flaggenquiz { gap: 0; border-radius: 50%; overflow: hidden; }
  .motif-flaggenquiz .tile { border-radius: 0; color: #ac7c65; background: #eadacf; font-size: 38px; }
  .motif-memory .tile { color: #877596; background: #ece6ed; font-size: 26px; }
  .motif-memory .tile-1 { color: #eee; background: #a896b0; }
  .upcoming-section { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--line); }
  .upcoming-section h2 { font-size: 22px; }
  .upcoming-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .upcoming-card { display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
  .upcoming-card h3 { font-size: 13px; color: var(--ink); }
  .upcoming-card p { font-size: 10px; color: var(--muted); margin-top: 4px; }
  .upcoming-icon { font-family: Georgia, serif; font-size: 20px; color: var(--muted); width: 30px; text-align: center; }
  .upcoming-plus { margin-left: auto; font-size: 19px; color: var(--muted); }
  .daily-note { margin-top: 42px; display: flex; align-items: center; gap: 21px; background: var(--soft-green); padding: 25px 30px; border-radius: 10px; }
  .daily-note > span { font-size: 35px; color: var(--green); }
  .daily-note strong { font-size: 13px; font-weight: 600; }
  .daily-note p { font-size: 11px; color: var(--muted); margin-top: 3px; }
  .site-footer { border-top: 1px solid var(--line); max-width: 1156px; margin: auto; padding: 25px 0 30px; display: flex; gap: 28px; align-items: center; color: var(--muted); font-size: 11px; }
  .footer-brand { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.06em; }
  .site-footer > span:last-child { margin-left: auto; font-style: italic; font-family: Georgia, serif; }
  .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; background: var(--green); color: var(--surface); padding: 12px 19px; font-size: 13px; font-weight: 600; line-height: 1.5; transition: opacity .2s; min-height: 44px; }
  .button:hover { opacity: .86; }
  .button:disabled { opacity: .5; }
  .button.secondary { color: var(--green); border-color: var(--line); background: var(--bg); }
  .text-button { color: var(--green); background: transparent; padding: 9px 4px; border: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
  .stack { display: flex; flex-direction: column; gap: 20px; }
  .field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 600; }
  .form-message { color: var(--green); font-size: 13px; }
  .form-message.error, .bad { color: var(--danger); }
  .good { color: var(--green); }
  .auth-layout { min-height: 690px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; align-items: center; padding: 70px 0; }
  .auth-intro .eyebrow { margin-bottom: 30px; }
  .auth-intro h1 { font-size: clamp(38px, 4vw, 54px); }
  .auth-intro .lede { max-width: 360px; font-size: 14px; }
  .auth-motifs { display: flex; gap: 24px; margin-top: 37px; }
  .auth-panel { padding: 38px; }
  .auth-panel h2 { font-family: Georgia, serif; font-weight: 400; margin: 20px 0 12px; font-size: 29px; }
  .auth-panel > p { font-size: 13px; margin-bottom: 28px; }
  .auth-panel .auth-note { margin: 27px 0 0; font-size: 10px; }
  .pill { background: var(--soft-green); color: var(--green); border-radius: 5px; padding: 5px 8px; font-size: 8px; letter-spacing: .09em; font-weight: 650; }
  .page-heading { padding: 56px 0 35px; }
  .page-heading .eyebrow { margin-bottom: 18px; }
  .page-heading h1 { font-size: 46px; }
  .stats-metrics { display: grid; grid-template-columns: repeat(3, 1fr); padding: 25px 0 35px; gap: 25px; }
  .stats-metrics .metric:first-child { border: 0; padding-left: 0; }
  .table-panel { padding: 28px; margin-bottom: 25px; }
  .table-panel h2 { margin-bottom: 24px; font-size: 21px; }
  .table-scroll { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; white-space: nowrap; }
  th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); }
  th:first-child, td:first-child { padding-left: 0; }
  thead { color: var(--muted); font-size: 11px; }
  tbody th { font-weight: 500; }
  td { font-variant-numeric: tabular-nums; }
  .result-list, .member-list { padding: 0; list-style: none; margin: 0; }
  .result-list li { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; }
  .result-list small { display: block; font-size: 10px; }
  .account-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 25px; align-items: start; }
  .form-panel { padding: 30px; }
  .form-panel h2 { font-size: 22px; margin-bottom: 25px; }
  .form-panel > p { font-size: 13px; margin-bottom: 25px; }
  .password-fields { margin-top: 20px; }
  .member-list { margin-bottom: 34px; }
  .member-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .member-list small { display: block; }
  .toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 13px; }
  .notice { background: var(--soft-green); padding: 18px 22px; border-radius: 10px; font-size: 13px; margin-top: 25px; }
  .loading, .empty-state { padding: 110px 0; text-align: center; }
  .loading p, .empty-state p { color: var(--muted); margin: 20px auto; max-width: 500px; }
  .empty-state h1 { font-size: 38px; }
  .empty-symbol { font-size: 50px; color: var(--green); }
  .loader { display: inline-block; width: 30px; height: 30px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  #toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 14px 24px; border-radius: 10px; box-shadow: var(--shadow); max-width: min(90vw, 600px); z-index: 90; font-size: 13px; }
}
@layer games {
  .game-page { padding-top: 30px; }
  .back-link { display: inline-block; color: var(--muted); font-size: 12px; padding: 10px 0; }
  .game-heading { position: relative; padding: 28px 0; }
  .game-heading .motif { float: right; }
  .game-heading .eyebrow { margin-bottom: 14px; }
  .game-heading h1 { font-size: 45px; }
  .game-layout { display: grid; grid-template-columns: minmax(0, 670px) minmax(200px, 1fr); gap: 55px; align-items: start; }
  .play-panel { padding: 25px 35px 30px; min-width: 0; }
  .play-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 25px; gap: 15px; }
  .save-status { color: var(--green); text-align: right; }
  .game-fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
  .game-fieldset:disabled { opacity: .75; }
  .board-container { max-width: 440px; margin: auto; }
  .game-message:not(:empty) { color: var(--danger); font-size: 13px; background: var(--bg); padding: 15px; border-radius: 6px; margin-bottom: 20px; }
  .game-aside { padding-top: 15px; min-width: 0; }
  .game-aside h2 { font-size: 20px; margin-bottom: 18px; }
  .game-aside > p { font-size: 13px; color: var(--muted); line-height: 1.9; }
  .game-aside > .small { font-size: 11px; }
  .aside-note { background: var(--soft-green); border-radius: 10px; padding: 22px; margin: 26px 0; }
  .aside-note > span { display: block; color: var(--green); font-size: 30px; margin-bottom: 8px; }
  .aside-note strong { font-size: 14px; }
  .aside-note p { color: var(--muted); font-size: 12px; margin-top: 7px; }
  .word-board { max-width: 300px; margin: 0 auto 16px; display: grid; gap: 6px; }
  .word-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .letter { border: 1px solid var(--line); aspect-ratio: 1; border-radius: 5px; font-size: 25px; font-weight: 700; display: grid; place-items: center; }
  .correct { background: #527959 !important; color: #fff !important; border-color: transparent !important; }
  .present { background: #9b823f !important; color: #fff !important; border-color: transparent !important; }
  .absent { background: #767e74 !important; color: #fff !important; border-color: transparent !important; }
  .word-form { display: flex; gap: 10px; max-width: 340px; margin: 15px auto 22px; }
  .word-input { text-transform: uppercase; letter-spacing: .22em; text-align: center; font-size: 21px; font-weight: 600; }
  .word-form .button { flex-shrink: 0; }
  .keyboard { display: flex; flex-direction: column; gap: 5px; }
  .keyboard-row { display: flex; justify-content: center; gap: 4px; }
  .key { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 5px; padding: 0; min-width: 0; width: 32px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
  .target-number { text-align: center; font-family: Georgia, serif; font-size: 72px; color: var(--green); line-height: 1.2; margin: 12px 0 24px; }
  .number-tiles { display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; }
  .number-tile { width: 65px; height: 65px; border: 1px solid var(--line); border-radius: 8px; background: var(--warm); color: var(--ink); font-size: 25px; font-weight: 600; }
  .expression { font-family: ui-monospace, monospace; font-size: 22px; text-align: center; }
  .operators { display: flex; justify-content: center; gap: 8px; margin: 16px 0 22px; }
  .operators .key { width: 45px; font-size: 23px; }
  .sudoku-grid { display: grid; grid-template-columns: repeat(6, 1fr); max-width: 360px; margin: auto; border: 2px solid var(--green); border-radius: 4px; overflow: hidden; }
  .sudoku-cell { aspect-ratio: 1; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); color: var(--green); font-size: 25px; }
  .sudoku-cell.given { background: var(--bg); color: var(--ink); font-weight: 650; }
  .sudoku-cell.block-right { border-right: 2px solid var(--green); }
  .sudoku-cell.block-bottom { border-bottom: 2px solid var(--green); }
  .sudoku-cell.selected { box-shadow: inset 0 0 0 3px var(--gold); background: var(--soft-green); }
  .sudoku-cell:focus-visible { outline-offset: -5px; }
  .number-pad { display: flex; justify-content: center; gap: 7px; margin: 25px 0; }
  .number-pad .key { width: 44px; font-size: 19px; }
  .nonogram-grid { display: grid; grid-template-columns: 62px repeat(5, minmax(0, 1fr)); max-width: 360px; margin: 5px auto 20px; gap: 3px; }
  .nono-cell { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--muted); font-size: 28px; }
  .nono-cell.filled { background: #4e7052; border-color: #4e7052; }
  .nono-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; font-weight: 600; padding-bottom: 8px; font-size: 15px; min-height: 80px; }
  .nono-row { display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; white-space: pre; font-weight: 600; font-size: 14px; }
  .nono-corner { font-size: 11px; color: var(--muted); align-self: end; padding-bottom: 10px; }
  .nonogram-grid + p { margin-bottom: 23px; }
  .solution-grid { text-align: center; font-size: 25px; line-height: 1.7; }
  .flag-image { display: block; width: 240px; height: 160px; margin: 23px auto 28px; box-shadow: 0 0 0 1px var(--line), 0 6px 22px #0000000b; }
  .quiz-dots { display: flex; justify-content: center; gap: 9px; margin-bottom: 15px; }
  .quiz-dots span { display: grid; place-items: center; border-radius: 50%; width: 28px; height: 28px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
  .quiz-dots .right { background: #527959; color: white; border-color: transparent; }
  .quiz-dots .wrong { background: #a86b59; color: white; border-color: transparent; }
  .quiz-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 23px 0; }
  .choice { padding: 14px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-size: 13px; }
  .choice:hover { border-color: var(--green); background: var(--soft-green); }
  .quiz-review { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 13px; margin-top: 20px; }
  .quiz-review p { padding: 6px 0; }
  .memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
  .memory-card { border: 1px solid var(--line); border-radius: 9px; aspect-ratio: 1; background: var(--soft-green); color: var(--green); font-size: 26px; transition: background .2s; }
  .memory-card.revealed { background: var(--surface); font-size: 38px; border-color: var(--green); }
  .memory-card.matched { background: var(--soft-green); border-color: var(--line); }
  .game-counters { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
  .giveup { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 30px; }
  .giveup summary { color: var(--muted); font-size: 11px; font-weight: 400; }
  .giveup p { margin: 15px 0; }
  .giveup .button { font-size: 11px; }
  .result { text-align: center; margin-top: 28px; background: var(--soft-green); border-radius: 10px; padding: 24px 18px; }
  .result-symbol { color: var(--green); font-size: 40px; }
  .result h2 { font-family: Georgia, serif; font-size: 26px; font-weight: 400; margin-bottom: 10px; }
  .result-points { font-size: 29px; font-family: Georgia, serif; color: var(--green); }
  .result .small { margin: 12px 0 20px; }
  .draft-restore:not(:empty) { background: var(--warm); padding: 15px; margin-bottom: 20px; font-size: 12px; border-radius: 8px; }
  .draft-restore .button { margin-top: 12px; }
}
@layer responsive {
  @media (max-width: 1000px) {
    .header-inner { gap: 35px; }
    .private-label { display: none; }
    .hero { grid-template-columns: 1fr 250px; gap: 25px; }
    .daily-art { width: 230px; }
    .daily-summary { gap: 20px; padding: 22px; }
    .metric { padding-left: 22px; gap: 12px; }
    .metric small { max-width: 110px; }
    .game-card { padding: 20px; }
    .game-card > p { min-height: 60px; }
    .game-layout { gap: 30px; grid-template-columns: minmax(0, 1.9fr) minmax(180px, 1fr); }
    .play-panel { padding: 22px; }
    .auth-layout { gap: 40px; }
    .site-footer { margin: 0 42px; }
  }
  @media (max-width: 760px) {
    .header-inner { padding: 0 22px; min-height: 76px; gap: 25px; }
    .wordmark { font-size: 29px; }
    #navigation { gap: 18px; font-size: 11px; }
    .header-end { gap: 0; }
    .icon-button { width: 31px; height: 31px; }
    #main { padding: 0 22px 40px; }
    .hero { padding: 35px 0; grid-template-columns: 1fr 170px; gap: 20px; }
    .hero h1 { font-size: 40px; }
    .hero .lede { font-size: 12px; }
    .welcome { font-size: 12px; margin-top: 22px; }
    .daily-art { width: 165px; padding: 14px 15px; box-shadow: 7px 8px 0 var(--warm); }
    .art-caption { font-size: 5px; padding-bottom: 8px; }
    .art-tiles { gap: 5px; margin: 10px 0; }
    .art-tile { font-size: 23px; }
    .art-tile-5 { font-size: 36px; }
    .art-bottom { font-size: 7px; padding-top: 7px; }
    .daily-summary { grid-template-columns: 1fr 1fr; gap: 20px; }
    .progress-metric { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding: 0 0 18px; }
    .metric { padding-left: 0; border: 0; }
    .daily-summary .metric:last-child { border-left: 1px solid var(--line); padding-left: 22px; }
    .metric-value { font-size: 33px; }
    .metric small { max-width: none; }
    .game-grid, .upcoming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .game-card > p { min-height: 42px; }
    .section-heading h2 { font-size: 23px; }
    .reset-label { font-size: 10px; flex-wrap: wrap; justify-content: flex-end; }
    .game-layout { grid-template-columns: 1fr; gap: 25px; }
    .game-aside { padding: 0; }
    .game-aside .aside-note { display: none; }
    .game-aside > .small { margin-top: 20px; }
    .play-panel { padding: 22px; }
    .auth-layout { min-height: 0; grid-template-columns: 1fr; padding: 45px 0; gap: 35px; max-width: 480px; margin: auto; }
    .auth-intro .eyebrow { margin-bottom: 20px; }
    .auth-intro h1 { font-size: 39px; }
    .auth-motifs { display: none; }
    .auth-panel { padding: 28px; }
    .account-layout { grid-template-columns: 1fr; }
    .page-heading h1 { font-size: 38px; }
    .stats-metrics { gap: 18px; }
    .stats-metrics .metric { flex-direction: column; align-items: flex-start; }
    .stats-metrics .metric small { font-size: 9px; }
    .form-panel, .table-panel { padding: 24px; }
    .site-footer { margin: 0 22px; font-size: 10px; }
    .site-footer > span:last-child { display: none; }
  }
  @media (max-width: 480px) {
    .header-inner { flex-wrap: wrap; gap: 0; padding-top: 19px; }
    .header-end { margin-left: auto; }
    #navigation { order: 3; width: 100%; margin-top: 14px; gap: 28px; height: 42px; }
    #navigation:empty { display: none; }
    .header-inner:has(#navigation:empty) { padding-top: 0; }
    .hero { display: block; padding: 31px 0; }
    .daily-art { display: none; }
    .hero h1 { font-size: 43px; }
    .hero .eyebrow { font-size: 9px; }
    .hero .lede { font-size: 13px; max-width: 285px; }
    .daily-summary { padding: 20px; }
    .metric-value { font-size: 32px; }
    .metric strong { font-size: 11px; }
    .metric small { font-size: 9px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .puzzles-section { margin-top: 32px; }
    .reset-label { justify-content: flex-start; }
    .filter-bar { gap: 4px; margin-bottom: 19px; }
    .filter { padding: 7px 10px; font-size: 11px; }
    .game-grid { gap: 12px; }
    .game-card { padding: 17px 15px 13px; border-radius: 12px; }
    .card-top { display: block; margin-bottom: 13px; }
    .category-label { display: none; }
    .game-card .motif { width: 48px; height: 48px; gap: 3px; }
    .game-card .tile { font-size: 16px; }
    .game-card .motif-flaggenquiz { gap: 0; }
    .game-card .motif-flaggenquiz .tile { font-size: 30px; }
    .game-card h3 { font-size: 17px; }
    .game-card > p { font-size: 11px; min-height: 56px; }
    .card-bottom { margin-top: 13px; padding-top: 12px; }
    .game-status { font-size: 9px; }
    .card-arrow { display: none; }
    .upcoming-grid { grid-template-columns: 1fr; gap: 9px; }
    .upcoming-card { padding: 16px; }
    .upcoming-section { padding-top: 25px; margin-top: 32px; }
    .daily-note { padding: 21px; align-items: flex-start; gap: 15px; }
    .daily-note strong { font-size: 12px; }
    .daily-note p { font-size: 10px; }
    .game-heading h1 { font-size: 38px; }
    .game-heading .eyebrow { max-width: 240px; font-size: 9px; }
    .game-heading .motif { width: 47px; height: 47px; margin-top: 10px; }
    .play-panel { padding: 18px 13px; }
    .play-meta { font-size: 9px; }
    .keyboard-row { gap: 3px; }
    .key { font-size: 11px; min-height: 42px; }
    .letter { font-size: 23px; }
    .nonogram-grid { grid-template-columns: 50px repeat(5, minmax(0, 1fr)); gap: 2px; }
    .nono-row { font-size: 12px; padding-right: 8px; }
    .memory-grid { gap: 7px; }
    .memory-card.revealed { font-size: 30px; }
    .quiz-choices { grid-template-columns: 1fr; }
    .result h2 { font-size: 24px; }
    .page-heading { padding-top: 35px; }
    .auth-panel { padding: 24px; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
}
/* Update 2: shared controls, editable word tiles and restrained reveals. */
.letter-input { width: 100%; min-width: 0; padding: 0; text-align: center; caret-color: transparent; background: var(--surface); color: var(--ink); }
.letter-input:focus { outline: 3px solid var(--green); outline-offset: 2px; background: var(--soft-green); }
.letter-flip { border: 0; perspective: 550px; }
.letter-turn { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: word-turn .34s ease both; }
.letter-face { position: absolute; inset: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; backface-visibility: hidden; background: var(--surface); }
.letter-back { transform: rotateX(180deg); }
.letter-flip:nth-child(2) .letter-turn { animation-delay: .07s; }
.letter-flip:nth-child(3) .letter-turn { animation-delay: .14s; }
.letter-flip:nth-child(4) .letter-turn { animation-delay: .21s; }
.letter-flip:nth-child(5) .letter-turn { animation-delay: .28s; }
@keyframes word-turn { to { transform: rotateX(180deg); } }
.login-reveal .game-card { animation: card-arrive .36s ease both; transform-origin: center; }
.login-reveal .game-card:nth-child(2n) { animation-delay: .06s; }
.login-reveal .game-card:nth-child(3n) { animation-delay: .12s; }
@keyframes card-arrive { from { opacity: 0; transform: perspective(900px) rotateY(-12deg) translateY(6px); } to { opacity: 1; transform: none; } }
.variant-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.variant-tabs .selected { background: var(--soft-green); border-color: var(--green); }
.sudoku-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); max-width: 450px; }
.sudoku-cell { min-width: 0; padding: 0; display: grid; place-items: center; }
.sudoku-9 .sudoku-cell { font-size: clamp(17px, 4vw, 24px); }
.sudoku-cell.conflict { color: #a33b35; text-decoration: underline wavy; }
.pencil { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); font-size: 11px; line-height: 1; align-items: center; }
.pencil-9 { font-size: clamp(8px, 2vw, 11px); }
.sudoku-options { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; font-size: 12px; }
.sudoku-options input { width: auto; }
.number-pad { flex-wrap: wrap; gap: 5px; }
.number-pad .key { width: 36px; min-height: 44px; }
.tutorial, .example { margin: 22px 0; }
.tutorial-row { display: grid; grid-template-columns: 40px repeat(5, 1fr); align-items: center; margin: 16px 0; }
.tutorial-row .nono-cell { min-width: 0; padding: 0; aspect-ratio: 1; border: 1px solid var(--line); }
.tutorial .button { margin-bottom: 10px; }
img.flag-image { height: 180px; object-fit: contain; background: #fff; max-width: 100%; }
@media (max-width: 400px) { .keyboard-row { gap: 3px; } .key { width: 26px; } .sudoku-options .button { padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .letter-turn { animation: none; transform: rotateX(180deg); } .login-reveal .game-card { animation: none; } }
@media (max-width: 420px) { .game-grid { grid-template-columns: 1fr; } .game-card h2 { font-size: 24px; } }


/* Wortfünf: Blaue Textmarkierung ausblenden */
.letter-input::selection {
    background: transparent;
    color: inherit;
}
