:root {
  color-scheme: dark;
  --bg: #111317;
  --panel: #1b2028;
  --text: #f9f4ed;
  --muted: #c5c6ca;
  --line: #454750;
  --accent: #ffb300;
  --ink: #19130a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 42% -20%, #473a25 0, transparent 48rem), var(--bg);
  color: var(--text);
  font: 1rem/1.5 system-ui, sans-serif;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.page { width: min(100% - 2rem, 61rem); margin-inline: auto; }
.masthead {
  min-height: 4.7rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: block; padding: .5rem .68rem; border-radius: .45rem; background: #fff; }
.brand img { display: block; width: clamp(6.5rem, 26vw, 8.5rem); height: auto; }
main { width: min(100%, 34rem); margin-inline: auto; }
.intro { padding-top: 1.25rem; }
.deal { display: flex; flex-wrap: wrap; gap: .45rem 1rem; align-items: center; justify-content: space-between; }
.eyebrow { color: var(--accent); font-weight: 750; letter-spacing: .075em; text-transform: uppercase; font-size: .825rem; margin: 0; }
.deal strong { padding: .33rem .65rem; border: 1px solid #715628; border-radius: 2rem; background: #302614; color: #ffe3a2; font-size: .875rem; white-space: nowrap; }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: .33rem; font-size: clamp(2.42rem, 11vw, 4.1rem); line-height: 1.02; letter-spacing: -.067em; }
.subtitle { margin-top: .4rem; color: var(--muted); font-weight: 600; }
.video {
  position: relative;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid #6f5939;
  border-radius: .8rem;
  background: #090a0d;
  height: clamp(20rem, 54svh, 36rem);
  isolation: isolate;
}
.video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  color: #fff;
  text-align: left;
  background: linear-gradient(180deg, #0009, transparent 20%, transparent 64%, #000e), url(assets/video-vorschau.webp) center 22%/cover;
}
.video-cover:focus-visible { outline-offset: -5px; }
.video-caption { position: absolute; top: .8rem; left: .8rem; right: auto; padding: .28rem .53rem; border-radius: .35rem; background: #111317ee; font-weight: 700; font-size: .86rem; }
.video-info { position: absolute; inset: auto .9rem .75rem; display: flex; justify-content: space-between; font-weight: 750; }
.play-icon {
  position: absolute; left: 50%; top: 53%; transform: translate(-50%,-50%);
  width: 4.35rem; height: 4.35rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); box-shadow: 0 0 0 .45rem #1119;
}
.play-icon::before { content: ''; margin-left: .3rem; border-left: 1.15rem solid; border-top: .71rem solid transparent; border-bottom: .71rem solid transparent; }
.button {
  display: flex; align-items: center; justify-content: center; min-height: 3rem;
  border: 1px solid transparent; border-radius: .55rem; padding: .55rem .85rem;
  text-decoration: none; text-align: center; font-weight: 780; line-height: 1.25;
}
.primary { background: var(--accent); color: var(--ink); }
.primary:hover { background: #ffc43b; }
.secondary { background: #20232a; border-color: #5a5c64; color: var(--text); }
.secondary:hover { background: #30343c; }
.cta { margin-top: .75rem; }
.location-note { margin-top: .55rem; text-align: center; font-size: .875rem; color: var(--muted); }
.details { margin-top: 2rem; scroll-margin-top: 1.2rem; }
.status { color: #ffd684; font-weight: 760; }
.status::before { display: inline-block; content: ''; width: .43rem; height: .43rem; border-radius: 50%; margin: 0 .48rem .15rem 0; background: var(--accent); }
.muted { color: var(--muted); }
.details > .muted, .phone-number { font-size: .92rem; }
.visit { padding-top: 1.2rem; margin-top: 1.05rem; border-top: 1px solid var(--line); }
.visit h2 { font-size: clamp(1.95rem, 7vw, 2.85rem); line-height: 1.02; letter-spacing: -.045em; margin-bottom: .8rem; }
.visit > p:not(.muted) { font-weight: 650; }
address { font-style: normal; color: var(--muted); line-height: 1.55; margin: .4rem 0 .85rem; }
.contact-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.phone-number { margin-top: .35rem; }
.directions { display: inline-block; margin-top: .68rem; text-underline-offset: .25em; }
.bonus { margin-top: 1.65rem; border-radius: .8rem; border: 1px solid #526175; background: #192331; overflow: hidden; display: grid; grid-template-columns: 1fr; }
.bonus img { width: 100%; height: 7rem; display: block; object-fit: cover; object-position: center 21%; }
.bonus > div { padding: .85rem 1rem 1rem; }
.bonus h3 { margin-top: .15rem; line-height: 1.18; font-size: clamp(1.12rem, 4.5vw, 1.48rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
.bonus p:not(.eyebrow) { margin-top: .45rem; color: var(--muted); }
.bonus button { width: 100%; margin-top: .85rem; }
footer { margin: 1.8rem auto 0; padding: 1rem 0 max(1.5rem,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 1.15rem; color: var(--muted); font-size: .9rem; }
footer a { text-underline-offset: .2em; }
dialog {
  --field-max: 21rem;
  border: 1px solid #585e68; border-radius: .85rem; margin: auto;
  padding: 0; width: min(calc(100% - .8rem), 25rem);
  max-height: calc(100dvh - .8rem); max-width: none;
  background: #14171c; color: var(--text); overflow: auto; overscroll-behavior: contain;
}
dialog::backdrop { background: #090a0ded; }
body:has(dialog[open]) { overflow: hidden; }
.game-shell { padding: .45rem .65rem max(.55rem,env(safe-area-inset-bottom)); }
.game-header { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 2.55rem; }
.game-header h2 { font-size: clamp(1rem, 4.3vw, 1.25rem); letter-spacing: -.03em; line-height: 1.15; }
.close { border: 0; min-width: 2.5rem; min-height: 2.5rem; color: var(--text); background: transparent; font-size: 1.55rem; border-radius: .4rem; }
.score {
  display: flex; justify-content: space-between; gap: .5rem; align-items: center;
  margin-bottom: .42rem; padding: .3rem .6rem; border: 1px solid #755b2f; border-radius: .42rem;
  background: radial-gradient(#624729 0.06rem, transparent .08rem) #221a10;
  background-size: .25rem .25rem; color: var(--accent); font: 700 .88rem/1.35 ui-monospace, monospace;
}
#points { font-size: 1.22rem; letter-spacing: .05em; text-shadow: 0 0 .65rem #ffb30086; }
.board {
  width: min(100%, var(--field-max), calc((100dvh - 15.6rem) * .66625));
  min-width: min(100%, 11.6rem); aspect-ratio: 533/800; position: relative;
  margin-inline: auto; border-radius: .6rem; overflow: hidden; isolation: isolate;
  background: #1c2633 url(assets/spielbrett.webp) center/100% 100% no-repeat;
  touch-action: none;
}
.board canvas { width: 100%; height: 100%; display: block; }
.game-overlay { display: grid; place-items: center; position: absolute; inset: 0; padding: .5rem; background: #0c11184b; }
.game-overlay > div { max-width: 15rem; text-align: center; border: 1px solid #8e816b; border-radius: .65rem; background: #14171cf5; padding: .75rem; font-weight: 700; }
.game-overlay button { margin: .6rem auto 0; }
.shot {
  display: block; position: absolute; left: 50%; top: 68%; width: max-content; max-width: 96%;
  transform: translateX(-50%); padding: .22rem .45rem; border: 1px solid #8c6617;
  border-radius: .35rem; background: #1b1512ed; color: #ffd581;
  font: 700 .86rem/1.3 ui-monospace, monospace; text-align: center; pointer-events: none;
}
.flipper-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .44rem; }
.flipper-controls button { min-height: 2.8rem; touch-action: none; user-select: none; }
.flipper-controls button.active { border-color: var(--accent); color: var(--accent); background: #3b2e16; }
.game-hint { color: var(--muted); text-align: center; font-size: .82rem; margin: .35rem 0; }
#game-visit { min-height: 2.8rem; }
.keyboard-help { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (pointer: fine) {
  .keyboard-help { display: inline; }
  .touch-help { display: none; }
}
@media (min-width: 48rem) {
  .masthead { min-height: 5.2rem; }
  main { width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem,6vw,5rem); align-items: start; padding-top: 1.2rem; }
  .intro, .details { padding-top: 1.1rem; margin-top: 0; }
  .details { padding-top: 4.2rem; }
  .small-break { display: none; }
  .video { height: clamp(24rem, 57svh, 35rem); }
  .bonus img { height: 8.5rem; }
  footer { margin-top: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#flipper-left::before, #flipper-right::after {
  content: '';
  border-block: .35rem solid transparent;
}
#flipper-left::before { border-right: .55rem solid currentColor; margin-right: .55rem; }
#flipper-right::after { border-left: .55rem solid currentColor; margin-left: .55rem; }
@media (max-width: 24rem) and (max-height: 43rem) {
  .masthead { min-height: 4.2rem; }
  .intro { padding-top: 1rem; }
  .video { height: clamp(18rem, 51svh, 22rem); }
  .board { width: min(100%, var(--field-max), calc((100dvh - 18rem) * .66625)); }
}
