 :root {
  color-scheme: light;
  --ink: #18221f;
  --muted: #77817d;
  --line: #e1e6e1;
  --canvas: #f2f4ef;
  --paper: #fff;
  --felt: #11392e;
  --felt-deep: #0b2b22;
  --red: #d74243;
  --blue: #3978bf;
  --green: #248b62;
  --black: #202925;
  --gold: #d7b66e;
  font-family: 'DM Sans', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, input, textarea { font: inherit; }
button { color: inherit; }
.topbar { height: 66px; padding: 0 5.1vw; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { width: 27px; display: grid; grid-template-columns: 1fr 1fr; color: var(--felt); font-size: 14px; line-height: 12px; text-align: center; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { color: var(--red); }
.brand-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 23px; letter-spacing: 1px; }
.brand-name span { color: var(--green); margin-left: 4px; }
.topbar-right { display: flex; align-items: center; gap: 19px; }
.help-link { color: #68736d; font-size: 12px; text-decoration: none; }
.help-link:hover { color: var(--ink); text-decoration: underline; }
.is-display .help-link { display: none; }
.session-state { display: inline-flex; align-items: center; gap: 8px; color: #68736d; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #e1ac40; }
.status-dot.is-saved { background: var(--green); }
.status-dot.is-error { background: var(--red); }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: white; border-radius: 4px; cursor: pointer; font-size: 18px; }
.icon-button:hover { border-color: #9ba9a2; }
.fullscreen-icon { font-size: 21px; line-height: 1; }
.app-shell { max-width: 1440px; margin: 0 auto; padding: 34px 5.1vw 54px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); gap: 38px; }
.timer-column { min-width: 0; }
.timer-headline, .structure-heading { min-height: 60px; display: flex; align-items: flex-start; justify-content: space-between; }
.eyebrow { margin: 1px 0 5px; color: #87918b; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
h1, h2 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; }
h1 { font-size: 31px; line-height: 1; }
h2 { font-size: 27px; line-height: 1; }
.text-button { border: 0; background: transparent; color: #77817d; padding: 8px 0; font-size: 11px; cursor: pointer; }
.text-button:hover { color: var(--ink); }
.timer-panel { position: relative; min-height: 354px; overflow: hidden; padding: 22px 28px 20px; border-radius: 5px; background: radial-gradient(ellipse at 50% 35%, #1a5241 0, var(--felt) 55%, var(--felt-deep) 100%); color: #fff; text-align: center; box-shadow: 0 8px 20px #102c211c; }
.timer-panel::before { position: absolute; content: ''; inset: 10px; border: 1px solid #d5c1854d; border-radius: 120px / 68px; pointer-events: none; }
.table-light { position: absolute; inset: 0; opacity: .17; pointer-events: none; background-image: repeating-linear-gradient(118deg, transparent 0 44px, #ffffff08 45px, transparent 46px 89px); }
.timer-meta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: #c7d4ce; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1.3px; }
.level-tag { padding: 6px 10px; color: #172b24; background: var(--gold); border-radius: 2px; }
.blinds-line { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 17px; margin-top: 33px; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(38px, 5vw, 58px); font-weight: 700; line-height: 1; }
.blinds-line i { color: #a8bdb3; font-size: .65em; font-style: normal; }
.ante-display { margin-left: 8px; padding: 7px 9px; border: 1px solid #ffffff42; color: #dae3df; border-radius: 2px; font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .8px; }
.timer-clock { position: relative; z-index: 1; margin: 7px 0 11px; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(76px, 10vw, 108px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 1px; line-height: .98; }
.timer-track { position: relative; z-index: 1; max-width: 370px; height: 3px; margin: 0 auto; overflow: hidden; background: #ffffff38; }
.timer-track span { display: block; width: 100%; height: 100%; background: var(--gold); transform-origin: left; transition: transform .5s linear; }
.timer-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 18px; }
.button { min-height: 37px; border: 1px solid transparent; border-radius: 3px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .16s, transform .16s; }
.button:active, .small-action:active { transform: translateY(1px); }
.button:disabled { opacity: .45; cursor: default; }
.button-primary { color: #18352a; background: var(--gold); }
.button-primary:hover:not(:disabled) { background: #e2c783; }
.button-quiet { color: #e7efea; border-color: #ffffff48; background: #ffffff0c; }
.button-quiet:hover:not(:disabled) { background: #ffffff1d; }
#reset-button { width: 38px; padding: 0; font-size: 19px; }
.lock-button.is-locked { color: var(--gold); border-color: #d7b66e80; }
.lock-button.is-confirming { color: #fff; border-color: var(--red); background: var(--red); }
.lock-button.is-confirming:hover:not(:disabled) { background: #c23435; }
.lock-button.is-nudged { animation: lock-nudge .45s ease; }
@keyframes lock-nudge { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.is-locked #reset-button, .is-locked .level-nav-button { opacity: .4; }
.is-locked .level-row { cursor: not-allowed; }
.is-locked .level-delete { visibility: hidden; }
.is-locked #import-button, .is-locked #edit-levels-button, .is-locked #apply-json-button, .is-locked #apply-answer-button, .is-locked #resume-button { opacity: .45; }
.headline-actions { display: flex; gap: 16px; }
.resume-dialog { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 6px; color: var(--ink); background: #fff; box-shadow: 0 20px 50px #0b2b2240; }
.resume-dialog::backdrop { background: #0b2b2299; }
.resume-dialog h2 { margin-bottom: 8px; }
.resume-dialog p { margin: 0 0 16px; color: #5f6b65; font-size: 13px; line-height: 1.5; }
.resume-dialog .field { margin-bottom: 12px; font-size: 11px; }
.resume-dialog select, .resume-dialog input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #dbe1db; border-radius: 3px; color: var(--ink); background: #fff; font-size: 15px; }
.resume-time { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.resume-time input { font-family: "Barlow Condensed", sans-serif; font-size: 22px; font-weight: 600; }
.resume-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.resume-actions .small-action { height: 38px; padding: 0 16px; font-size: 13px; }
.resume-apply { color: #fff !important; border-color: var(--green) !important; background: var(--green) !important; }
.alarm-overlay { position: absolute; z-index: 2; inset: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 17px; padding: 24px; background: #872d2bee; animation: alarm-flash .85s infinite alternate; }
.alarm-overlay[hidden] { display: none; }
.alarm-copy { display: flex; align-items: center; gap: 13px; text-align: left; }
.alarm-copy div { display: grid; gap: 4px; }
.alarm-copy strong { font-family: 'Barlow Condensed', sans-serif; font-size: 25px; }
.alarm-copy span:not(.alarm-icon) { color: #ffdfdb; font-size: 11px; }
.alarm-icon { width: 33px; height: 33px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; font-weight: 800; font-size: 19px; }
.button-alarm { color: #62211d; background: #fff; }
@keyframes alarm-flash { from { background-color: #782720ee; } to { background-color: #ad392eee; } }
.level-navigation { min-height: 47px; display: flex; align-items: center; justify-content: space-between; color: #707c75; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .8px; }
.level-nav-button { width: 28px; height: 28px; border: 1px solid #d9dfd9; border-radius: 50%; color: #68746e; background: transparent; cursor: pointer; font-size: 16px; }
.level-nav-button:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.level-nav-button:disabled { opacity: .3; cursor: default; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.stat-block { min-height: 82px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.stat-block + .stat-block { border-left: 1px solid var(--line); }
.stat-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 3px; font-size: 15px; }
.stat-red { color: var(--red); background: #fff0ef; }
.stat-blue { color: var(--blue); background: #edf4fc; }
.stat-green { color: var(--green); background: #ebf6f0; }
.stat-label { display: block; margin-bottom: 5px; color: #849088; font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .8px; white-space: nowrap; }
.stat-block strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 21px; font-weight: 700; line-height: 1; white-space: nowrap; }
.stat-block strong small { color: #9aa29d; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; }
.field-notes { margin-top: 24px; padding-top: 15px; border-top: 1px solid #dce2dc; }
.field-notes-heading { display: flex; align-items: center; justify-content: space-between; color: #737f77; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.collapse-button { border: 0; background: transparent; color: #78837d; font-size: 10px; cursor: pointer; }
.collapse-button span { padding-left: 4px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.field { display: grid; gap: 6px; color: #79847c; font-size: 10px; }
.field input { min-width: 0; border: 1px solid #dbe1db; border-radius: 3px; outline: none; color: var(--ink); background: #fff; }
.field input { height: 34px; padding: 0 9px; font-size: 12px; }
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 2px #248b6217; }
.player-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.player-count { display: flex; align-items: center; gap: 12px; color: #79847c; font-size: 11px; }
.player-count strong { min-width: 25px; color: var(--ink); font-size: 13px; text-align: center; }
.action-pair { display: flex; gap: 7px; }
.small-action { height: 30px; padding: 0 11px; border: 1px solid #dbe1db; border-radius: 3px; background: #fff; color: #4d5a52; font-size: 10px; font-weight: 600; cursor: pointer; }
.small-action:hover:not(:disabled) { border-color: #aab8af; }
.small-action:disabled { opacity: .4; cursor: default; }
#rebuy-button { color: var(--green); border-color: #bcd9ca; }
.payout-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e0e5df; color: #79847c; font-size: 11px; }
.payout-places { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.payout-places input { width: 62px; height: 32px; padding: 0 8px; border: 1px solid #dbe1db; border-radius: 3px; color: var(--ink); background: #fff; font-size: 14px; font-weight: 600; }
.payout-hint { margin: 8px 0 0; padding: 7px 10px; border-radius: 3px; color: #4d5a52; background: #fbf4e2; font-size: 11px; }
.payout-hint .text-button { padding: 0; color: var(--green); font-weight: 700; }
.payout-total { color: var(--green); font-size: 12px; font-weight: 700; }
.payout-total.invalid { color: var(--red); }
.payout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 9px; }
.payout-place { display: grid; gap: 7px; padding: 11px 12px 12px; border: 1px solid #dfe4df; border-radius: 4px; background: #fff; }
.payout-place label { color: #79847c; font-family: "Barlow Condensed", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.payout-input { display: flex; align-items: center; gap: 6px; color: #657168; font-size: 14px; }
.payout-input input { width: 100%; min-width: 0; height: 38px; padding: 0 9px; border: 1px solid #dbe1db; border-radius: 3px; outline: none; color: var(--ink); background: #fff; font-size: 16px; font-weight: 600; }
.payout-input input:focus { border-color: var(--green); box-shadow: 0 0 0 2px #248b6217; }
.payout-amount { color: var(--ink); font-family: "Barlow Condensed", sans-serif; font-size: 24px; font-weight: 700; line-height: 1; white-space: nowrap; }
.settings-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.alarm-sound { display: flex; align-items: center; gap: 6px; color: #8a948d; font-size: 10px; }
.alarm-sound select { height: 26px; padding: 0 6px; border: 1px solid #dbe1db; border-radius: 3px; color: #4d5a52; background: #fff; font: inherit; font-size: 10px; cursor: pointer; }
.settings-footer .text-button { font-size: 10px; opacity: .7; }
.settings-footer .text-button:hover { opacity: 1; }
.structure-column { min-width: 0; padding-left: 30px; border-left: 1px solid #dce2dc; }
.structure-heading { min-height: 59px; }
.add-level-button { width: 31px; height: 31px; color: var(--green); border-color: #c9d8cf; font-size: 20px; }
.structure-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.tool-button { height: 31px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border: 1px solid #dce2dc; border-radius: 3px; color: #506056; background: #fff; font-size: 10px; font-weight: 600; cursor: pointer; }
.tool-button:hover { border-color: #a6b6aa; }
.tool-button span { color: var(--green); font-size: 14px; }
.ai-box { margin-bottom: 13px; padding: 13px; border: 1px solid #dce2dc; border-radius: 4px; background: #fff; }
.ai-header { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.ai-spark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 13px; }
.ai-header div { display: grid; gap: 2px; }
.ai-header strong { font-size: 11px; }
.ai-header div span { color: #818b84; font-size: 9px; }
.ai-box textarea { width: 100%; min-height: 51px; resize: vertical; padding: 8px; border: 1px solid #e1e6e1; border-radius: 3px; outline: none; color: var(--ink); font-size: 10px; line-height: 1.45; }
.ai-box textarea:focus { border-color: var(--blue); }
.ai-button { width: 100%; height: 31px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 7px; border: 0; border-radius: 3px; color: #fff; background: var(--blue); font-size: 10px; font-weight: 700; cursor: pointer; }
.ai-button:hover { background: #2f67a6; }
.ai-button:disabled { opacity: .6; cursor: default; }
.ai-note { margin: 7px 0 0; color: #919a93; font-size: 9px; line-height: 1.4; }
.ai-step { display: block; margin: 9px 0 5px; color: #506056; font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.ai-header + .ai-step { margin-top: 0; }
#ai-answer { font-family: Consolas, monospace; }
.prompt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prompt-grid .field-wide { grid-column: 1 / -1; }
.prompt-grid .field span { font-size: 9px; }
.prompt-grid .field input { height: 31px; font-size: 11px; }
.ai-box #prompt-preview { min-height: 96px; color: #3d4a42; background: #f6f8f6; font-family: Consolas, monospace; font-size: 9.5px; cursor: text; }
.levels-list { max-height: 455px; overflow: auto; border-top: 1px solid #dfe4df; scrollbar-color: #c7d0c8 transparent; scrollbar-width: thin; }
.level-row { min-height: 51px; display: grid; grid-template-columns: 39px minmax(86px, 1fr) 61px 26px; align-items: center; gap: 8px; padding: 5px 8px 5px 0; border-bottom: 1px solid #e0e5e0; cursor: pointer; transition: background .12s; }
.level-row:hover { background: #e9ede8; }
.level-row.active { background: #e5eee8; box-shadow: inset 3px 0 var(--green); }
.level-number { color: #8a948d; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; text-align: center; }
.level-row.active .level-number { color: var(--green); }
.level-blinds { display: grid; gap: 2px; min-width: 0; }
.level-blinds strong { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; line-height: 1; }
.level-blinds span { color: #808b83; font-size: 9px; }
.level-duration { color: #78847b; font-size: 10px; text-align: right; white-space: nowrap; }
.level-type { color: var(--blue); font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; }
.level-delete { width: 23px; height: 23px; border: 0; border-radius: 3px; color: #9aa39c; background: transparent; cursor: pointer; font-size: 15px; }
.level-delete:hover { color: var(--red); background: #fff; }
.tool-button[aria-pressed="true"] { border-color: var(--green); color: var(--green); background: #ebf6f0; }
.levels-list.is-editing .level-row { cursor: default; }
.levels-list.is-editing .level-row:hover { background: transparent; }
.levels-list.is-editing .level-row.active { background: #e5eee8; }
.level-row-edit { grid-template-columns: 39px minmax(0, 1fr) 26px; }
.level-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; min-width: 0; }
.level-field { display: grid; gap: 2px; min-width: 0; color: #808b83; font-size: 9px; }
.level-field input { width: 100%; min-width: 0; height: 27px; padding: 0 5px; border: 1px solid #d5dcd5; border-radius: 3px; background: #fff; font: 600 13px "Barlow Condensed", sans-serif; color: #172b24; }
.level-field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 2px #248b6217; }
.level-field-break { grid-column: span 3; align-self: end; padding-bottom: 6px; color: var(--blue); font: 700 12px "Barlow Condensed", sans-serif; letter-spacing: .6px; text-transform: uppercase; }
.structure-footer { display: flex; justify-content: space-between; padding: 11px 1px 9px; color: #879189; font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .7px; }
.manual-json { border-top: 1px solid #dce2dc; }
.json-toggle { width: 100%; display: flex; justify-content: space-between; padding: 12px 0; border: 0; color: #68766d; background: transparent; text-align: left; font-size: 10px; cursor: pointer; }
#json-editor { width: 100%; min-height: 145px; resize: vertical; padding: 9px; border: 1px solid #dce2dc; border-radius: 3px; color: #26362d; background: #fff; font-family: Consolas, monospace; font-size: 10px; line-height: 1.5; }
.apply-json-button { margin: 7px 0 14px; }
.toast { position: fixed; z-index: 10; right: 22px; bottom: 20px; max-width: min(380px, calc(100vw - 32px)); padding: 11px 14px; border-radius: 3px; color: #fff; background: #253b31; box-shadow: 0 6px 20px #0002; font-size: 11px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 25px; }
  .structure-column { padding-left: 21px; }
  .stat-block { gap: 8px; padding: 11px 9px; }
  .stat-icon { width: 27px; height: 27px; }
  .stat-block strong { font-size: 18px; }
  .stat-label { font-size: 9px; letter-spacing: .5px; }
}
@media (max-width: 740px) {
  .topbar { height: 58px; padding: 0 18px; }
  .app-shell { display: flex; flex-direction: column; gap: 31px; padding: 24px 18px 40px; }
  .timer-headline { min-height: 55px; }
  .timer-panel { min-height: 335px; padding: 20px 17px; }
  .blinds-line { gap: 12px; margin-top: 30px; font-size: 47px; }
  .timer-clock { margin-top: 12px; font-size: clamp(76px, 22vw, 100px); }
  .structure-column { padding: 0; border: 0; }
  .structure-heading { min-height: 53px; }
  .levels-list { max-height: 400px; }
  .settings-grid { gap: 7px; }
  .field input { padding: 0 6px; }
  .stats-grid { min-height: 75px; }
  .stat-block { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 9px; }
  .stat-icon { display: none; }
  .stat-label { white-space: normal; line-height: 1.1; min-height: 19px; }
  .stat-block strong { font-size: 19px; }
}
@media (max-width: 390px) {
  .app-shell { padding-right: 13px; padding-left: 13px; }
  .timer-panel { padding-right: 11px; padding-left: 11px; }
  .blinds-line { gap: 9px; font-size: 41px; }
  .ante-display { margin-left: 1px; padding: 6px; font-size: 9px; }
  .button { padding: 0 11px; }
  .stat-block strong { font-size: 17px; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .settings-grid .field:last-child { grid-column: span 2; }
  .payout-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
  .payout-place { padding: 9px 8px 10px; }
  .payout-amount { font-size: 20px; }
}

/* Laptop/Desktop: Platz für Lesbarkeit aus Distanz nutzen. */
@media (min-width: 981px) {
  .topbar { height: 52px; padding: 0 2.5vw; }
  .app-shell { max-width: 1920px; padding: 18px 2.5vw 40px; grid-template-columns: minmax(0, 1fr) clamp(330px, 27vw, 430px); gap: 28px; }
  .timer-headline { min-height: 46px; }
  .timer-headline h1 { font-size: 26px; }
  .timer-panel { display: flex; flex-direction: column; min-height: clamp(380px, calc(100vh - 300px), 1000px); padding: 24px 32px 26px; }
  .timer-panel::before { border-radius: 180px / 100px; }
  .timer-meta { font-size: clamp(12px, 1.1vw, 18px); }
  .level-tag { padding: .45em .8em; }
  .blinds-line { margin-top: auto; gap: .3em; font-size: clamp(50px, min(6.4vw, 10vh), 150px); }
  .ante-display { padding: .55em .8em; font-size: clamp(10px, 1.15vw, 18px); }
  .timer-clock { margin: .04em 0 .1em; font-size: clamp(96px, min(14vw, 24vh), 340px); }
  .timer-track { max-width: 55%; height: 5px; }
  .timer-actions { margin-top: auto; padding-top: 18px; }
  .timer-actions .button { min-height: 42px; font-size: 13px; }
  #reset-button { width: 44px; }
  .level-navigation { min-height: 56px; font-size: clamp(11px, 1.25vw, 19px); }
  .level-nav-button { width: 34px; height: 34px; }
  .stat-block { min-height: 96px; }
  .stat-label { font-size: 12px; }
  .stat-block strong { font-size: clamp(21px, 2.4vw, 40px); }
  .stat-block strong small { font-size: .45em; }
  .levels-list { max-height: calc(100vh - 230px); }
}

/* Anzeigemodus (Vollbild-Button): nur Uhr und Kennzahlen, maximal gross. */
.is-display .structure-column, .is-display .field-notes, .is-display .timer-headline { display: none; }
.is-display .app-shell { max-width: none; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 741px) {
  .is-display .timer-panel { display: flex; flex-direction: column; min-height: calc(100vh - 256px); }
  .is-display .blinds-line { margin-top: auto; font-size: clamp(50px, min(9vw, 12vh), 220px); }
  .is-display .ante-display { font-size: clamp(10px, 1.5vw, 26px); }
  .is-display .timer-clock { font-size: clamp(96px, min(21vw, 27vh), 520px); }
  .is-display .stat-block { min-height: 80px; }
  .is-display .timer-meta { font-size: clamp(12px, 1.4vw, 24px); }
  .is-display .timer-actions { margin-top: auto; }
  .is-display .level-navigation { font-size: clamp(11px, 1.6vw, 26px); }
  .is-display .stat-block strong { font-size: clamp(21px, 3.2vw, 56px); }
}
@media (max-width: 740px) {
  .is-display .app-shell { gap: 0; }
}
@media (max-width: 520px) {
  .help-link { display: none; }
  .headline-actions { gap: 12px; }
}

/* Chipkoffer */
.chip-intro { margin: 12px 0 10px; color: #79847c; font-size: 11px; line-height: 1.5; }
.chip-rows { display: grid; gap: 6px; max-width: 420px; }
.chip-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 26px; align-items: center; gap: 8px; }
.chip-row-head { color: #79847c; font-size: 10px; }
.chip-row input { min-width: 0; height: 34px; padding: 0 9px; border: 1px solid #dbe1db; border-radius: 3px; outline: none; color: var(--ink); background: #fff; font-size: 13px; }
.chip-row input:focus, .chip-reserve input:focus, .payout-places input:focus { border-color: var(--green); box-shadow: 0 0 0 2px #248b6217; outline: none; }
.chip-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; max-width: 420px; margin-top: 10px; }
.chip-reserve { display: flex; align-items: center; gap: 8px; color: #79847c; font-size: 11px; }
.chip-reserve input { width: 62px; height: 32px; padding: 0 8px; border: 1px solid #dbe1db; border-radius: 3px; color: var(--ink); background: #fff; font-size: 13px; }
.chip-result { margin-top: 14px; }
.chip-summary { margin: 0 0 9px; font-size: 13px; }
.chip-summary span { color: #79847c; }
.chip-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #dfe4df; font-size: 12px; font-variant-numeric: tabular-nums; }
.chip-table th, .chip-table td { padding: 6px 9px; border-bottom: 1px solid #e6eae5; text-align: right; }
.chip-table th:first-child, .chip-table td:first-child { text-align: left; }
.chip-table th { color: #79847c; font-size: 10px; font-weight: 600; }
.chip-table tr.is-unused td { color: #a3aca6; }
.chip-warning { margin: 9px 0 0; padding: 8px 11px; border-left: 3px solid var(--red); border-radius: 2px; color: #7a2524; background: #fdeeee; font-size: 12px; line-height: 1.45; }

/* Prüfung der Blindstruktur gegen die Chips */
.level-alert, .level-colorup { display: block; margin-top: 2px; font-size: 9px; font-style: normal; font-weight: 700; }
.level-alert { color: var(--red); }
.level-colorup { color: var(--blue); }
.level-row.is-unpayable { box-shadow: inset 3px 0 var(--red); }
.level-row.is-unpayable .level-blinds strong { color: var(--red); }
.level-row-edit.is-unpayable input { border-color: #e9a3a3; }
.structure-warning { margin: 10px 0 0; padding: 8px 11px; border-left: 3px solid var(--red); border-radius: 2px; color: #7a2524; background: #fdeeee; font-size: 11px; line-height: 1.45; }
@media (max-width: 520px) {
  .chip-table th, .chip-table td { padding: 5px 6px; }
  .chip-table { font-size: 11px; }
}
