:root {
  color-scheme: light;
  --bg: #f1f0e9;
  --text: #292e29;
  --muted: #6d7166;
  --line: #d7d8cd;
  --accent: #873d4b;
  --sidebar: #252b28;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #b85966; outline-offset: 4px; }
.icon { display: block; width: 23px; height: 23px; flex-shrink: 0; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; top: -80px; left: 280px; z-index: 20; background: #873d4b; color: white; padding: 10px 16px; }
.skip:focus { top: 10px; }
#sidebar { position: fixed; inset: 0 auto 0 0; width: 246px; background: var(--sidebar); color: #e7e9df; display: flex; flex-direction: column; z-index: 5; }
.sidebar-head { height: 90px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 17px; letter-spacing: -.45px; font-weight: 650; white-space: nowrap; }
.brand-mark { width: 11px; height: 11px; background: #df9295; border-radius: 1px; transform: rotate(45deg); flex-shrink: 0; }
.home-link { margin: 0 15px 5px; padding: 10px 13px; background: #424d43; color: #f0f2df; border-radius: 5px; font-size: 13px; font-weight: 600; }
nav { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #535e54 transparent; padding: 0 15px 24px; }
.nav-group { margin-top: 24px; }
.nav-group h2 { margin: 0 13px 7px; font-size: 11px; font-weight: 600; color: #a1b09d; }
.nav-link { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 13px; border-radius: 4px; font-size: 12px; }
.nav-link:hover { background: #343e36; color: white; }
.nav-name { flex: 1; min-width: 0; }
.vpn { display: inline-block; color: #bcc8b3; background: #303a32; border: 1px solid #4e5b4e; font-size: 8px; font-weight: 550; letter-spacing: .2px; padding: 1px 4px; border-radius: 3px; line-height: 1.5; white-space: nowrap; }
.sidebar-foot { flex-shrink: 0; margin: 0; padding: 15px 24px; border-top: 1px solid #424c41; font-size: 10px; line-height: 1.8; color: #b1bbae; }
.sidebar-foot>.vpn { margin-right: 4px; vertical-align: 1px; }
.background-services { margin: 22px 13px 0; padding-top: 15px; border-top: 1px solid #424c41; font-size: 11px; color: #a9b6a6; }
.background-services summary { cursor: pointer; padding: 4px 0; }
.background-services p { margin: 12px 0; }
.background-services strong,.background-services span { display: block; font-size: 10px; }
.background-services strong { font-weight: 550; color: #d4ddce; }
.background-services span { font-size: 9px; margin-top: 2px; }
main { margin-left: 246px; min-height: 100dvh; }
.content { max-width: 1170px; margin: 0 auto; padding: 77px clamp(32px,5.5vw,88px) 40px; }
.page-heading { margin-bottom: 38px; }
.site-name { font: 11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace!important; color: #767d6c!important; margin: 0 0 21px!important; }
h1 { font-size: 40px; font-weight: 600; line-height: 1.2; letter-spacing: -1.5px; margin: 0 0 13px; }
.page-heading>p { font-size: 14px; color: var(--muted); margin: 0; }
.destinations { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 157px 157px; gap: 16px; }
.service { color: #fff2eb; background: #85434c; padding: 26px 29px; border-radius: 9px; display: flex; flex-direction: column; min-width: 0; }
.service:first-child { grid-row: 1/3; }
.service:nth-child(2) { background: #ebc078; color: #392f1d; }
.service:nth-child(3) { background: #38685b; color: #f1f5e8; }
.service:hover { filter: brightness(.96); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.service-top>.icon { width: 21px; height: 21px; opacity: .75; }
.service-icon { color: #f5c5bb; }
.service-icon .icon { width: 38px; height: 38px; }
.service h2 { font-size: 33px; font-weight: 600; line-height: 1.2; letter-spacing: -1px; margin: 30px 0 10px; }
.service p { font-size: 13px; opacity: .85; margin: 0 0 27px; line-height: 1.7; }
.service-link { font-size: 11px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #ffffff66; }
.service:nth-child(2) .service-link { text-decoration-color: #392f1d66; }
.service:hover .service-link { text-decoration-color: currentColor; }
.service:not(:first-child) { display: grid; grid-template-columns: 1fr 22px; column-gap: 12px; padding: 25px 29px; }
.service:not(:first-child) .service-top { grid-column: 2; grid-row: 1/4; align-self: center; margin: 0; }
.service:not(:first-child) .service-icon { display: none; }
.service:not(:first-child) h2 { grid-column: 1; grid-row: 1; font-size: 24px; margin: 0 0 5px; letter-spacing: -.5px; }
.service:not(:first-child) p { grid-column: 1; grid-row: 2; font-size: 12px; margin: 0 0 12px; }
.service:not(:first-child) .service-link { grid-column: 1; grid-row: 3; }
footer { margin-top: 31px; padding-top: 19px; border-top: 1px solid var(--line); color: #717768; font-size: 11px; display: flex; justify-content: space-between; gap: 15px; }
footer p { margin: 0; }
.mobile-services { display: none; }
.mobile-bar,#menu-close,.backdrop { display: none; }
@media(min-width:1600px) { .content { padding-top: 98px; } }
@media(max-width:1100px) {
  .content { padding: 60px 34px 35px; }
  .destinations { gap: 13px; grid-template-rows: 151px 151px; }
  .service,.service:not(:first-child) { padding: 23px; }
  .service h2 { font-size: 30px; }
}
@media(min-width:701px) and (max-width:900px) {
  #sidebar { width: 220px; }
  .sidebar-head { padding: 0 21px; }
  main { margin-left: 220px; }
  .content { padding: 48px 28px; }
  .destinations { grid-template-columns: 1fr; grid-template-rows: auto; }
  .service:first-child { grid-row: auto; min-height: 225px; }
  .service:not(:first-child) { min-height: 132px; }
  .service h2 { margin-top: 24px; }
  .service p { margin-bottom: 19px; }
}
@media(max-width:700px) {
  .mobile-bar { display: flex; justify-content: space-between; align-items: center; height: 68px; padding: 0 22px; background: var(--sidebar); color: #e7e9df; position: sticky; top: 0; z-index: 3; }
  .mobile-bar .brand { font-size: 16px; }
  .mobile-bar button { display: flex; gap: 7px; align-items: center; padding: 7px 9px; border: 1px solid #52604f; border-radius: 4px; background: #303a32; font-size: 11px; }
  .mobile-bar button .icon { width: 17px; height: 17px; }
  #sidebar { width: min(310px,86vw); transform: translateX(-100%); }
  .menu-open #sidebar { transform: translateX(0); }
  .menu-open { overflow: hidden; }
  .sidebar-head { height: 77px; padding: 0 24px; }
  #menu-close { display: block; background: transparent; border: 0; padding: 5px; }
  .backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 4; border: 0; background: #16221b88; }
  main { margin-left: 0; min-height: calc(100dvh - 68px); }
  .content { padding: 32px 22px 28px; }
  .page-heading { margin-bottom: 25px; }
  .site-name { display: none; }
  h1 { font-size: 31px; letter-spacing: -1px; margin-bottom: 9px; }
  .page-heading>p { font-size: 13px; }
  .destinations { grid-template-columns: 1fr; grid-template-rows: auto; gap: 12px; }
  .service:first-child { grid-row: auto; min-height: 208px; padding: 23px; }
  .service h2 { font-size: 30px; margin: 22px 0 7px; }
  .service-icon .icon { width: 29px; height: 29px; }
  .service p { font-size: 12px; margin-bottom: 17px; }
  .service:not(:first-child) { min-height: 128px; padding: 22px 23px; }
  .service:not(:first-child) h2 { font-size: 23px; }
  .service:not(:first-child) p { font-size: 12px; margin-bottom: 12px; }
  .service-link { font-size: 10px; }
  .nav-link { min-height: 39px; font-size: 13px; }
  .nav-group h2 { font-size: 11px; }
  .vpn { font-size: 9px; }
  footer { font-size: 10px; line-height: 1.8; margin-top: 24px; padding-top: 16px; flex-direction: column; gap: 10px; }
  .mobile-services { display: inline; align-self: flex-start; text-decoration: underline; text-underline-offset: 3px; }
  .skip { left: 20px; }
  .sidebar-foot { font-size: 10px; }
}


/* The transparent layer fills the main viewport; the fixed sidebar stays clear. */
.bounce-stage[hidden], .bounce-controls[hidden] { display: none!important; }
.bounce-stage { display: block; position: fixed; inset: 0 0 0 246px; overflow: hidden; pointer-events: none; z-index: 2; }
@media(min-width:1250px) and (min-height:720px) {
  .bouncing-enabled .content { max-width: none; padding-left: var(--bounce-lane,220px); padding-right: var(--bounce-lane,220px); }
  .bouncing-enabled .destinations, .bouncing-enabled .page-heading, .bouncing-enabled footer { max-width: 740px; margin-left: auto; margin-right: auto; }
}
.page-heading, .service, footer { position: relative; z-index: 3; }
.bounce-controls { position: absolute; right: 0; top: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.bounce-controls button { border: 1px solid #bfc3b3; border-radius: 5px; background: #fbfbf5; min-height: 39px; padding: 8px 12px; font-size: 11px; }
.bounce-controls button:hover { background: #e4e8da; }
.bounce-controls>span { font-size: 10px; color: #64705c; }
.bouncer { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 215px; padding: 10px 11px; border: 1px solid #927866; border-radius: 6px; background: #f5e4d1; color: #49392f; font-size: 11px; font-weight: 550; white-space: nowrap; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; will-change: transform; cursor: grab; }
.bouncer.tone-1 { background: #f1dce0; border-color: #98616b; color: #643b44; }
.bouncer.tone-2 { background: #d6e5dd; border-color: #587b67; color: #304f3d; }
.bouncer .icon { width: 18px; height: 18px; }
.bouncer-name { overflow: hidden; text-overflow: ellipsis; }
.bounce-vpn { font: 8px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; border-left: 1px solid currentColor; padding-left: 6px; opacity: .8; }
.bouncer:hover, .bouncer:focus-visible { filter: brightness(.97); border-color: currentColor; z-index: 20; }
.bouncer.is-dragging { cursor: grabbing; z-index: 30; box-shadow: 0 5px 12px #29332820; }
@media(max-width:1249px), (max-height:719px) { .bounce-stage, .bounce-controls { display: none!important; } }
@media(prefers-reduced-motion:reduce) { .bouncer { will-change: auto; } }

/* Desktop drawer; mobile keeps its existing overlay navigation. */
#menu-close { display: block; background: transparent; border: 0; padding: 5px; }
#menu-close .icon { width: 19px; height: 19px; }
#sidebar-expand[hidden],#bowling-dock[hidden],#bowling-status[hidden],#bowling-exit[hidden],#bowling-result[hidden] { display: none!important; }
#sidebar-expand { position: fixed; top: 24px; left: 19px; z-index: 6; border: 1px solid #bac3b4; border-radius: 5px; padding: 9px; background: #f6f5ef; }
@media(min-width:701px) {
 .sidebar-collapsed #sidebar { transform: translateX(-100%); }
 .sidebar-collapsed main { margin-left: 0; }
 .sidebar-collapsed .bounce-stage { left: 0; }
}
#bowling-dock { position: absolute; left: max(38px,calc(var(--bounce-lane,220px) / 2 - 48px)); bottom: 16px; width: 96px; height: 64px; display: grid; place-items: center; border: 1px dashed #7b958033; background: transparent; border-radius: 50%; color: #607b634d; pointer-events: auto; z-index: 0; }
#bowling-dock svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; }
#bowling-dock:hover,#bowling-dock:focus-visible,#bowling-dock.is-near { color: #476d4f; border-color: #6e9274; background: #d9e3d45c; }
.bouncer { z-index: 1; }
#bowling-status { max-width: 235px; font-size: 11px; color: #435e46; text-align: right; }
#bowling-exit { min-height: 29px; padding: 4px 9px; font-size: 10px; }
.bowling-active #motion-hint { display: none; }
.bowling-active .bouncer { width: var(--game-width); min-height: max(30px,calc(40px * var(--bowling-scale))); padding: 6px 8px; gap: 5px; font-size: clamp(9px,calc(11px * var(--bowling-scale)),11px); }
.bowling-active .bouncer .icon { width: 13px; height: 13px; }
.bowling-active .bounce-vpn { display: none; }
.bowling-active .is-target { cursor: default; z-index: 1; }
.bowling-active .is-ball { z-index: 5; }
.bowling-active .is-thrown { pointer-events: none; }
.bowling-active .is-spent { opacity: .72; }
.bowling-active .bouncer.is-hit { background: #d8dcd8; color: #6c746d; border-color: #929b92; }
#bowling-result { position: fixed; bottom: 25px; right: 25px; z-index: 6; max-width: min(420px,calc(100vw - 40px)); padding: 14px 19px; border: 1px solid #a7b29e; border-radius: 7px; background: #f3f6ed; color: #354a36; box-shadow: 0 5px 20px #26332917; pointer-events: none; font-size: 14px; }
/* Collision geometry reads the text fragments rather than these layout wrappers. */
.difficulty { display: flex; align-items: center; gap: 9px; font-size: 10px; color: #64705c; }
#bowling-level { border: 1px solid #bbc5b3; border-radius: 4px; background: #f8f8f1; color: #344736; padding: 4px 7px; font: inherit; min-height: 29px; }
#bowling-status { display: block; width: 235px; }
.bouncer[hidden] { display: none!important; }
.bouncer.startpage-ball { color: #fff; border-color: #151a17; background: #252825; }
.bowling-active .startpage-ball { background: #181c19; color: #fff; }
/* Empty header/footer layout space must not intercept floating anchors. */
.page-heading, main footer { pointer-events: none; }
.page-heading button, .page-heading select, .page-heading label, .page-heading a, main footer a { pointer-events: auto; }
#site-wordmark.site-name { display: block; width: max-content; }
.wordmark-placeholder { display: block; }
.wordmark-placeholder[hidden],#difficulty-panel[hidden] { display: none!important; }
main footer { border-top: 0; }
#footer-divider { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
#difficulty-panel { position: absolute; left: 12px; bottom: 12px; width: 180px; height: 40px; padding: 5px 8px; border: 1px solid #bcc6b3; border-radius: 5px; background: #f4f5ed; pointer-events: auto; z-index: 40; }
#difficulty-panel select { width: 88px; }
#difficulty-panel #difficulty-label { font-size: 10px; }
.bowling-active .is-thrown { pointer-events: auto; }
.bowling-active .is-target { cursor: pointer; }
.bowling-active .startpage-ball { width: max-content; max-width: 180px; min-height: 20px; padding: 0; border: 0; background: transparent; color: #121712; font: 11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; }
.bowling-active .startpage-ball.is-spent { opacity: .72; }
/* The original wordmark becomes a recognisable black block only during play. */
.bowling-active .startpage-ball { width: var(--game-width); min-height: max(30px,calc(40px * var(--bowling-scale))); padding: 6px 8px; border: 1px solid #101410; border-radius: 6px; background: #191d19; color: #fff; }
#difficulty-panel { height: 76px; flex-direction: column; justify-content: center; align-items: stretch; gap: 5px; }
#difficulty-panel label { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 10px; }
#difficulty-panel select { width: 97px; font: inherit; border: 1px solid #bbc5b3; border-radius: 4px; background: #f8f8f1; color: #344736; padding: 4px 5px; min-height: 27px; }
.bowling-active .bouncer, .bowling-active .startpage-ball { min-height: max(var(--bowling-minheight,30px),calc(40px * var(--bowling-scale))); }
#difficulty-panel { height: 110px; }
#difficulty-panel select { width: 111px; }
#bowling-status { height: 36px; }
.aim-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 60; color: #647e5e; }
.aim-thread { stroke: currentColor; stroke-width: 2; stroke-dasharray: 5 3; }
.aim-guide.has-power { color: #bd7134; }
.aim-guide.has-power .aim-thread { stroke-dasharray: none; stroke-width: 3; }
.aim-cancel-zone { fill: #a6bb9020; stroke: #748f68; stroke-width: 1; stroke-dasharray: 4 4; }
.aim-strength { fill: currentColor; font: 11px system-ui,sans-serif; paint-order: stroke; stroke: #f1f0e9; stroke-width: 4px; stroke-linejoin: round; }
.single-rebound .startpage-ball.is-available { box-shadow: 0 0 0 2px #f5f4eb,0 0 0 5px #7e9e67; }
.single-rebound .startpage-ball.is-available::after { content: 'Bereit'; position: absolute; bottom: calc(100% + 8px); right: 0; color: #526e42; font: 10px system-ui,sans-serif; }
.single-rebound .startpage-ball.is-aiming { box-shadow: 0 0 0 2px #f5f4eb,0 0 0 5px #b98345; }
.single-rebound .startpage-ball.is-thrown { cursor: default; opacity: .8; }
