
:root{--navy:#071d49;--blue:#176af4;--pale:#eef5ff;--cream:#fff9e8;--green:#e7f8ee;--purple:#f1eaff;--line:#d7e4f7}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--navy);background:#f7faff}
a{color:inherit}
.games-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px max(18px,calc((100vw - 1180px)/2));background:#fff;border-bottom:1px solid #e4edf9}
.games-brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}.games-brand img{border-radius:50%}.games-brand strong{white-space:nowrap;font-size:.96rem}
.games-header nav{display:flex;gap:6px;flex-wrap:nowrap}.games-header nav a{text-decoration:none;font-weight:800;font-size:.86rem;padding:9px 11px;border-radius:999px}.games-header nav a:hover{background:var(--pale)}
main{width:min(1180px,calc(100% - 32px));margin:auto}
.games-hero{text-align:center;padding:72px 0 48px}.eyebrow{display:inline-block;font-weight:900;text-transform:uppercase;letter-spacing:.12em;color:#56708f;font-size:.78rem}.games-hero h1{font-size:clamp(2.7rem,7vw,5.6rem);line-height:.92;letter-spacing:-.055em;margin:10px 0 18px}.games-hero p{max-width:760px;margin:0 auto;font-size:1.12rem;line-height:1.6;color:#526985}.copyright-note{max-width:800px;margin:22px auto 0;padding:12px 16px;border-radius:16px;background:#fff;border:1px solid var(--line);font-size:.88rem;color:#63758d}
.game-card{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(420px,1.15fr);gap:32px;align-items:center;margin:30px 0;padding:34px;border-radius:34px;background:#fff;box-shadow:0 18px 50px rgba(7,29,73,.08);border:1px solid #e0eafb}.game-card.reverse .game-copy{order:2}.game-card.reverse .game-frame{order:1}.game-number{font-weight:900;color:#6a83a4;letter-spacing:.1em}.game-copy h2{font-size:clamp(2rem,4vw,3.7rem);line-height:.95;letter-spacing:-.045em;margin:8px 0 16px}.game-copy p{font-size:1rem;line-height:1.55;color:#536b88}.controls{font-size:.86rem!important;font-weight:700;color:#6a7f9c!important}.score-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.score-row button,.touch-pad button{border:0;background:var(--navy);color:#fff;font-weight:900;border-radius:999px;padding:11px 16px;cursor:pointer}.score-row button:hover{transform:translateY(-1px)}
.game-frame{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;border-radius:26px;background:linear-gradient(145deg,#eff6ff,#fff)}
canvas{display:block;width:100%;height:auto;max-width:100%;background:#fff;border-radius:20px;border:1px solid #dce8f8;touch-action:manipulation}
.touch-pad{display:none;margin-top:12px}.touch-pad>button{display:block;margin:auto}.touch-pad div{display:flex;gap:7px;margin-top:7px}
.mine-wrap{align-items:stretch}.mine-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;max-width:560px;width:100%;margin:auto}.mine-cell{aspect-ratio:1;border:0;border-radius:8px;background:#dfeafb;color:var(--navy);font-weight:900;cursor:pointer;font-size:clamp(.75rem,2vw,1rem)}.mine-cell:hover{background:#ccdef7}.mine-cell.open{background:#fff;border:1px solid #d8e3f2;cursor:default}.mine-cell.letter{background:#fff0bf}.mine-cell.flag{background:#e7f8ee}.game-status{text-align:center!important;margin:14px 0 0!important;font-weight:800!important}
.privacy-box{text-align:center;padding:50px 24px;margin:40px 0 70px;border-radius:32px;background:var(--navy);color:#fff}.privacy-box h2{font-size:clamp(2rem,4vw,3.4rem);margin:0 0 12px;letter-spacing:-.04em}.privacy-box p{color:#d8e5fa;max-width:720px;margin:0 auto 22px;line-height:1.55}.privacy-box a{display:inline-block;background:#fff;color:var(--navy);text-decoration:none;font-weight:900;padding:12px 18px;border-radius:999px}
footer{padding:28px max(18px,calc((100vw - 1180px)/2));background:#fff;border-top:1px solid #e1eaf7;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:.88rem}footer nav{display:flex;gap:14px;flex-wrap:wrap}footer a{text-decoration:none;font-weight:700}
@media(max-width:820px){.games-header nav{display:none}.games-brand strong{font-size:.76rem}.game-card{grid-template-columns:1fr;padding:22px}.game-card.reverse .game-copy,.game-card.reverse .game-frame{order:initial}.touch-pad{display:block}.games-hero{padding-top:48px}.mine-grid{gap:3px}.mine-cell{border-radius:6px}}
@media(max-width:420px){main{width:min(100% - 18px,1180px)}.games-brand strong{font-size:.66rem}.games-header{padding-left:10px;padding-right:10px}.games-brand img{width:40px;height:40px}.game-card{border-radius:24px;padding:16px}.game-frame{padding:12px}.score-row{align-items:flex-start;flex-direction:column}.mine-grid{grid-template-columns:repeat(10,1fr)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* V41.45 – interaktive Spielzentrale */
.games-hero{position:relative;overflow:hidden}
.games-hero:before,.games-hero:after{content:"";position:absolute;border-radius:50%;filter:blur(4px);z-index:-1;opacity:.55}
.games-hero:before{width:220px;height:220px;background:#ddebff;left:-40px;top:20px;animation:gameOrbA 7s ease-in-out infinite}
.games-hero:after{width:180px;height:180px;background:#fff0b9;right:-20px;bottom:10px;animation:gameOrbB 8s ease-in-out infinite}
.game-jumpbar{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:24px auto 0}
.game-jumpbar a{padding:10px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);text-decoration:none;font-weight:900;box-shadow:0 8px 22px rgba(7,29,73,.06);transition:.2s transform,.2s box-shadow}
.game-jumpbar a:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(7,29,73,.12)}
.game-card{transition:transform .28s ease,box-shadow .28s ease}
.game-card:hover{transform:translateY(-4px);box-shadow:0 24px 60px rgba(7,29,73,.11)}
.game-frame{position:relative;overflow:hidden}
.game-toolbar{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.game-toolbar button{border:0;border-radius:999px;padding:10px 14px;font-weight:900;cursor:pointer}
.game-start{background:var(--blue);color:#fff}.game-fullscreen{background:#fff;color:var(--navy);border:1px solid var(--line)!important}
.game-start-overlay{position:absolute;inset:64px 20px 20px;z-index:5;display:grid;place-items:center;text-align:center;padding:22px;border-radius:20px;background:rgba(7,29,73,.86);backdrop-filter:blur(5px);color:#fff;transition:opacity .2s ease,visibility .2s ease}
.game-start-overlay strong{display:block;font-size:clamp(1.4rem,3vw,2.2rem);margin-bottom:7px}.game-start-overlay span{color:#dbe8fb}
.game-start-overlay.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.game-frame:fullscreen{background:#eef5ff;padding:22px;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center}
.game-frame:fullscreen canvas{max-width:min(94vw,1200px);max-height:82vh;width:auto;height:auto}
.game-frame:fullscreen .mine-grid{max-width:min(82vh,900px)}
.game-frame:fullscreen .game-toolbar{position:absolute;top:16px;left:16px;right:16px;width:auto;z-index:20}
.game-difficulty{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#fff5ca;color:#6d5200;font-size:.74rem;font-weight:900;margin-left:8px}
@keyframes gameOrbA{0%,100%{transform:translate(0,0)}50%{transform:translate(20px,12px)}}
@keyframes gameOrbB{0%,100%{transform:translate(0,0)}50%{transform:translate(-18px,-10px)}}
@media(max-width:820px){.game-start-overlay{inset:60px 12px 12px}.game-toolbar{flex-wrap:wrap}.game-toolbar button{flex:1}.game-card:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.games-hero:before,.games-hero:after{animation:none}.game-card,.game-jumpbar a{transition:none}}

/* V41.46 – bessere mobile Steuerung */
@media(max-width:820px){
  .touch-pad{
    display:grid!important;
    grid-template-columns:72px 72px 72px;
    grid-template-rows:60px 60px;
    gap:12px;
    justify-content:center;
    align-items:center;
    margin-top:18px;
    width:100%;
  }
  .touch-pad>button[data-dir="up"]{grid-column:2;grid-row:1}
  .touch-pad>div{display:contents!important}
  .touch-pad button{
    width:72px!important;
    height:60px!important;
    padding:0!important;
    border-radius:18px!important;
    font-size:1.4rem!important;
    display:grid!important;
    place-items:center!important;
    touch-action:manipulation;
  }
  .touch-pad button[data-dir="left"]{grid-column:1;grid-row:2}
  .touch-pad button[data-dir="down"]{grid-column:2;grid-row:2}
  .touch-pad button[data-dir="right"]{grid-column:3;grid-row:2}
}
@media(max-width:420px){
  .touch-pad{
    grid-template-columns:66px 66px 66px;
    grid-template-rows:56px 56px;
    gap:14px;
  }
  .touch-pad button{
    width:66px!important;
    height:56px!important;
  }
}

/* Brief-Sucher von Anfang an in voller Größe zeigen */
.mine-wrap{min-height:620px;justify-content:center}
.mine-grid{min-height:520px}
@media(max-width:820px){
  .mine-wrap{min-height:520px}
  .mine-grid{min-height:430px}
}
@media(max-width:520px){
  .mine-wrap{min-height:430px}
  .mine-grid{min-height:360px}
}
