:root {
  --brand-navy: #07184d;
  --brand-blue: #086bff;
  --brand-cyan: #00c9f0;
  --brand-mint: #16d9a6;
  --brand-soft: #e8f8ff;
  --purple: var(--brand-blue);
  --purple-dark: var(--brand-navy);
  --purple-soft: var(--brand-soft);
  --coral: #f06d5e;
  --green: #138c72;
  --blue: #2d74c8;
  --gold: #d99a12;
  --ink: #0c2144;
  --muted: #56667d;
  --line: #dbe7f1;
  --canvas: #f4faff;
  --paper: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); }
button, select, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 100; padding: 10px 14px; background: white; border-radius: 8px; }
.skip-link:focus { top: 18px; }
.portal-header, main, footer, .comfort-panel { max-width: 1240px; margin-inline: auto; }
.portal-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 34px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand-logo { display: block; width: clamp(136px, 18vw, 190px); height: 48px; object-fit: contain; object-position: left center; }
.brand-product { display: grid; gap: 1px; padding-left: 14px; border-left: 1px solid var(--line); }
.brand-product strong { color: var(--brand-navy); font-size: 18px; }
.brand-product small { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.header-actions { display: flex; gap: 9px; }
.quiet-button, .install-button, .play-button, .close-button { min-height: 44px; padding: 0 17px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font-weight: 750; }
.install-button, .play-button { color: white; background: linear-gradient(120deg, var(--brand-blue), #008ed9); border-color: var(--brand-blue); box-shadow: 0 10px 24px #086bff20; }
.comfort-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-bottom: 18px; padding: 22px 34px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.comfort-panel div { flex: 1 1 300px; }
.comfort-panel h2 { margin: 0 0 5px; font-size: 20px; }
.comfort-panel p { margin: 0; }
.comfort-panel label { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.comfort-panel input { width: 20px; height: 20px; accent-color: var(--purple); }
main { padding: 38px 34px 70px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(43px, 6vw, 75px); line-height: 1; letter-spacing: -.06em; }
h2 { margin-bottom: 18px; font-size: clamp(31px, 4vw, 48px); line-height: 1.05; letter-spacing: -.045em; }
h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: -.025em; }
p { color: var(--muted); line-height: 1.65; }
.eyebrow { margin: 0 0 14px; color: var(--purple); font-size: 11px; line-height: 1.2; text-transform: uppercase; letter-spacing: .15em; font-weight: 850; }
.eyebrow.light { color: #c8f7ff; }
.portal-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.portal-intro > div:first-child { max-width: 760px; }
.portal-intro > div:first-child > p:last-child { font-size: 18px; }
.audience-pills { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 400px; }
.audience-pills span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--muted); font-size: 12px; font-weight: 700; }
.game-browser { margin: 0 0 34px; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: 0 18px 45px #3925520d; }
.filter-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.filter-heading h2 { margin: 0; font-size: clamp(29px, 4vw, 42px); }
.filter-heading strong { padding: 9px 13px; border-radius: 99px; color: var(--purple-dark); background: var(--purple-soft); font-size: 13px; white-space: nowrap; }
.search-field { display: grid; gap: 8px; margin-bottom: 22px; color: var(--ink); font-size: 13px; font-weight: 800; }
.search-field input { width: 100%; min-height: 54px; padding: 0 17px; border: 1px solid #d9d0df; border-radius: 15px; color: var(--ink); background: var(--canvas); outline: none; }
.search-field input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px #67478e20; background: white; }
.search-field input::placeholder { color: #91899a; }
.filter-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 14px; }
.filter-row > span { padding-top: 9px; color: var(--muted); font-size: 12px; font-weight: 800; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: white; font-size: 12px; font-weight: 780; }
.filter-chip:hover { color: var(--purple-dark); border-color: #bba8cb; }
.filter-chip.active { color: white; border-color: var(--purple); background: var(--purple); box-shadow: 0 7px 16px #67478e25; }
.reset-filters { margin-top: 20px; min-height: 39px; padding: 0 13px; border: 0; color: var(--purple); background: transparent; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.empty-results { margin: 0 0 34px; padding: 28px; border: 1px dashed #c7b8d3; border-radius: 22px; color: var(--purple-dark); background: var(--purple-soft); text-align: center; font-weight: 700; }
.filterable-game[hidden], .free-games[hidden] { display: none !important; }
.featured { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 470px; overflow: hidden; border-radius: 34px; color: white; background: linear-gradient(135deg, #07184d, #086bff 58%, #00b5df); box-shadow: 0 25px 60px #0a3a7a24; }
.featured-copy { padding: clamp(34px, 6vw, 70px); }
.featured h2 { margin-bottom: 18px; font-size: clamp(42px, 5vw, 68px); }
.featured p, .featured li { color: #e6f8ff; }
.featured ul { display: grid; gap: 8px; margin: 25px 0 30px; padding-left: 20px; }
.featured .play-button { color: var(--purple-dark); background: white; border-color: white; }
.featured-art { position: relative; display: grid; place-items: center; min-height: 330px; background: radial-gradient(circle at center, #ffffff22, transparent 55%); }
.snake-preview { position: relative; width: min(340px, 80%); aspect-ratio: 1; border: 1px solid #ffffff32; border-radius: 34px; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 32px 32px; }
.snake-preview i { position: absolute; display: block; width: 32px; height: 32px; border-radius: 10px; background: white; box-shadow: 0 10px 20px #22152e40; }
.snake-preview i:nth-child(1) { left: 64px; top: 192px; }
.snake-preview i:nth-child(2) { left: 96px; top: 192px; }
.snake-preview i:nth-child(3) { left: 128px; top: 192px; }
.snake-preview i:nth-child(4) { left: 128px; top: 160px; }
.snake-preview i:nth-child(5) { left: 128px; top: 128px; background: var(--coral); }
.snake-preview b { position: absolute; right: 64px; top: 64px; color: #ffd66f; font-size: 35px; text-shadow: 0 8px 16px #22152e60; }
.worlds-feature { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 560px; margin-bottom: 34px; overflow: hidden; border-radius: 34px; color: white; background: linear-gradient(135deg, #183f4d, #26735d 52%, #4a9078); box-shadow: 0 28px 65px #1846382a; }
.worlds-feature-copy { position: relative; z-index: 1; padding: clamp(36px, 6vw, 70px); }
.worlds-feature h2 { margin-bottom: 18px; font-size: clamp(48px, 6vw, 78px); }
.worlds-feature p, .worlds-feature li { color: #e4f3ed; }
.worlds-feature ul { display: grid; gap: 8px; margin: 25px 0 30px; padding-left: 20px; }
.worlds-feature .play-button { color: #174c3e; border-color: white; background: white; }
.worlds-preview { position: relative; min-height: 430px; overflow: hidden; background: radial-gradient(circle at 70% 18%, #fff7c477 0 8%, transparent 9%), linear-gradient(#83c9dc 0 57%, #4a9fc1 57% 100%); }
.worlds-preview::after { content: ''; position: absolute; inset: 58% -20% -22%; border-radius: 50% 50% 0 0; background: repeating-radial-gradient(ellipse at 50% -20%, #ffffff25 0 4px, transparent 5px 26px); }
.worlds-preview-sun { position: absolute; right: 17%; top: 11%; width: 70px; aspect-ratio: 1; border-radius: 50%; background: #ffe59a; box-shadow: 0 0 0 16px #fff4bd33, 0 0 45px #fff5b780; }
.worlds-preview-island { position: absolute; z-index: 2; left: 50%; top: 51%; width: min(380px, 78%); aspect-ratio: 1.3; transform: translate(-50%, -50%) rotate(-4deg); border: 13px solid #e7c98f; border-radius: 48% 52% 45% 55%; background: radial-gradient(circle at 45% 40%, #9bc870, #5f9c5d 68%, #467b4f 70%); box-shadow: 0 28px 0 -9px #b59061, 0 42px 45px #17475d55; }
.preview-land { position: absolute; display: grid; place-items: center; width: 28%; aspect-ratio: 1; transform: rotate(45deg); border: 4px solid #e4f0cf; border-radius: 14px; background: #8fc36d; box-shadow: 8px 10px 0 #4e8253; }
.preview-land i { transform: rotate(-45deg); font-size: clamp(25px, 4vw, 42px); font-style: normal; filter: drop-shadow(0 6px 5px #2d5a4135); }
.p-land-1 { left: 15%; top: 13%; }.p-land-2 { left: 43%; top: 8%; }.p-land-3 { left: 59%; top: 36%; }.p-land-4 { left: 31%; top: 40%; }.p-land-5 { left: 8%; top: 48%; }.p-land-6 { left: 45%; top: 67%; }
.worlds-preview-cloud { position: absolute; z-index: 3; width: 92px; height: 28px; border-radius: 99px; background: #ffffffc7; box-shadow: 25px -12px 0 -4px #ffffffc7, -20px -7px 0 -7px #ffffffc7; }
.cloud-one { left: 7%; top: 17%; }.cloud-two { right: 5%; top: 42%; transform: scale(.7); opacity: .75; }
.free-games { padding-top: 88px; }
.free-games-grid { display: grid; gap: 24px; }
.game-card { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: 0 20px 45px #39255212; }
.game-card-copy { padding: clamp(30px, 5vw, 55px); }
.game-card-copy h3 { margin: 10px 0 15px; font-size: clamp(32px, 4vw, 48px); }
.game-card-copy ul { display: grid; gap: 7px; margin: 22px 0 28px; padding-left: 20px; color: var(--muted); }
.game-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.game-facts span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--canvas); font-size: 11px; font-weight: 800; }
.light-facts span { color: white; border-color: #ffffff3a; background: #ffffff16; }
.game-tag { display: inline-flex; padding: 7px 11px; border-radius: 99px; color: var(--green); background: #e5f2ed; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.game-tag.coral-tag { color: #9c3e3d; background: #f9e9e8; }
.game-tag.purple-tag { color: var(--purple-dark); background: var(--purple-soft); }
.game-tag.blue-tag { color: #315d88; background: #e6eef7; }
.jump-preview { position: relative; min-height: 400px; overflow: hidden; background: linear-gradient(#84c7df 0 62%, #d8edf3 62%); }
.jump-preview::after { content: ''; position: absolute; left: -5%; right: -5%; bottom: -75px; height: 190px; border-radius: 50% 50% 0 0; background: #4d9d70; box-shadow: 0 -18px 0 #74bd75; }
.jump-cloud { position: absolute; width: 92px; height: 27px; border-radius: 99px; background: #ffffffc9; box-shadow: 25px -13px 0 2px #ffffffc9, 52px 0 0 #ffffffc9; }
.jump-cloud.c1 { left: 13%; top: 17%; }.jump-cloud.c2 { right: 25%; top: 29%; transform: scale(.7); }
.jump-platform { position: absolute; z-index: 2; height: 22px; border-radius: 10px; background: #5a3c62; box-shadow: inset 0 6px #83628b, 0 8px 0 #3f724e; }
.jump-platform.p1 { left: 7%; bottom: 85px; width: 34%; }.jump-platform.p2 { left: 48%; bottom: 145px; width: 24%; }.jump-platform.p3 { right: 2%; bottom: 210px; width: 20%; }
.jump-hero { position: absolute; z-index: 3; left: 29%; bottom: 113px; display: grid; place-items: center; width: 58px; aspect-ratio: 1; border: 5px solid white; border-radius: 18px 18px 24px 24px; color: white; background: var(--purple); box-shadow: 0 10px 20px #36234740; font-size: 17px; font-style: normal; font-weight: 900; transform: rotate(-6deg); }
.jump-star { position: absolute; z-index: 3; left: 58%; bottom: 195px; color: #ffd45d; font-size: 48px; font-style: normal; filter: drop-shadow(0 6px 5px #7d653a3b); }
.jump-goal { position: absolute; z-index: 3; right: 8%; bottom: 243px; color: white; font-size: 50px; filter: drop-shadow(0 0 12px #ffe990); }
.pairs-preview { display: grid; grid-template-columns: repeat(3, 82px); place-content: center; gap: 12px; min-height: 400px; padding: 35px; background: linear-gradient(145deg, #dcefe8, #edf6f2); }
.pairs-preview i { display: grid; place-items: center; aspect-ratio: 1; border: 0; border-radius: 18px; background: white; color: var(--green); font-size: 30px; font-style: normal; font-weight: 850; box-shadow: 0 12px 25px #1d5b4820; }
.pairs-preview i:nth-child(even) { color: white; background: var(--purple); font-size: 18px; }
.four-preview { display: grid; grid-template-columns: repeat(7, 44px); place-content: center; gap: 7px; min-height: 400px; padding: 35px; background: linear-gradient(145deg, #f2e5e5, #f9eeee); }
.four-preview span, .four-preview i, .four-preview b { display: block; width: 44px; aspect-ratio: 1; border: 5px solid white; border-radius: 50%; background: #efe9f1; box-shadow: 0 8px 16px #6b394018; }
.four-preview i { background: var(--purple); }
.four-preview b { background: var(--coral); }
.mills-preview { display: grid; place-items: center; min-height: 400px; padding: 35px; background: linear-gradient(145deg, #eae3f2, #f6f2f9); }
.mills-preview-board { position: relative; width: min(320px, 86%); aspect-ratio: 1; }
.preview-square { position: absolute; border: 5px solid #4d3863; }
.preview-outer { inset: 4%; }
.preview-middle { inset: 22%; }
.preview-inner { inset: 40%; }
.preview-piece { position: absolute; z-index: 1; width: 36px; aspect-ratio: 1; transform: translate(-50%, -50%); border: 5px solid white; border-radius: 50%; box-shadow: 0 8px 16px #3522462c; }
.purple-preview-piece { background: var(--purple); }
.coral-preview-piece { background: var(--coral); }
.preview-piece.p1 { left: 4%; top: 4%; }
.preview-piece.p2 { left: 50%; top: 4%; }
.preview-piece.p3 { left: 96%; top: 4%; }
.preview-piece.p4 { left: 22%; top: 78%; }
.preview-piece.p5 { left: 50%; top: 78%; }
.preview-piece.p6 { left: 78%; top: 78%; }
.sudoku-preview { display: grid; place-items: center; min-height: 400px; padding: 35px; background: linear-gradient(145deg, #e4edf7, #f2f6fb); }
.sudoku-preview-grid { display: grid; grid-template-columns: repeat(3, 78px); overflow: hidden; border: 5px solid #3f648d; border-radius: 20px; background: white; box-shadow: 0 18px 35px #244b7423; }
.sudoku-preview-grid i { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #c5d4e3; color: var(--blue); font-size: 31px; font-style: normal; font-weight: 850; }
.sudoku-preview-grid i:nth-child(odd) { background: #edf3f9; }
.categories { padding-top: 100px; }
.section-heading { max-width: 750px; margin-bottom: 36px; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.category-grid article { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.category-grid p { margin-bottom: 0; }
.category-grid article > b { grid-column: 2; color: var(--purple); font-size: 12px; }
.icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--purple); background: var(--purple-soft); font-size: 27px; }
.icon.coral { color: var(--coral); background: #f9e9e8; }
.icon.green { color: var(--green); background: #e5f2ed; }
.icon.blue { color: var(--blue); background: #e6eef7; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 34px 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.game-dialog { width: min(1080px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; overflow: auto; border: 0; border-radius: 28px; box-shadow: 0 35px 90px #241a2d55; }
.game-dialog::backdrop { background: #25182fcc; backdrop-filter: blur(6px); }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); background: #fffefc; }
.dialog-header h2 { margin: 0; font-size: 34px; }
.close-button { width: 46px; padding: 0; font-size: 27px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 25px; padding: 26px; background: var(--canvas); }
.game-stage { position: relative; display: grid; place-items: center; min-height: 500px; padding: 16px; border-radius: 22px; background: #ece6f1; }
#snake-canvas { display: block; width: min(100%, 480px); height: auto; max-height: 70dvh; border-radius: 18px; background: #2d2235; box-shadow: 0 15px 30px #2d22352b; touch-action: none; }
.game-message { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px); padding: 10px 15px; border-radius: 99px; color: white; background: #1d1524d9; font-size: 13px; text-align: center; }
.game-message[hidden] { display: none; }
.game-sidebar { padding: 5px; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.score-grid div { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.score-grid span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.score-grid strong { font-size: 29px; }
.score-grid.three { grid-template-columns: repeat(3, 1fr); }
.score-grid.three div { padding: 13px 10px; }
.score-grid.three strong { font-size: 23px; }
.game-sidebar label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.game-sidebar select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 12px 0 20px; }
.game-actions.one { grid-template-columns: 1fr; }
.full-button { width: 100%; }
.game-help { font-size: 13px; }
.direction-pad { display: grid; grid-template-columns: repeat(3, 58px); justify-content: center; gap: 7px; margin-top: 24px; }
.direction-pad button { width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--purple-dark); font-size: 24px; font-weight: 850; touch-action: manipulation; }
.direction-pad button[data-direction="up"] { grid-column: 2; }
.direction-pad button[data-direction="left"] { grid-column: 1; grid-row: 2; }
.direction-pad button[data-direction="down"] { grid-column: 2; grid-row: 2; }
.direction-pad button[data-direction="right"] { grid-column: 3; grid-row: 2; }
.pairs-stage { min-height: 540px; background: #e3f0eb; }
.pairs-board { --columns: 4; display: grid; grid-template-columns: repeat(var(--columns), minmax(58px, 1fr)); gap: 10px; width: min(100%, 620px); }
.pair-card { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; border: 0; border-radius: 16px; color: white; background: linear-gradient(145deg, var(--purple), var(--purple-dark)); box-shadow: 0 8px 16px #35224626; font-size: clamp(25px, 4vw, 43px); font-weight: 850; touch-action: manipulation; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.pair-card:hover { transform: translateY(-2px); }
.pair-card:focus-visible { outline: 4px solid #d79b31; outline-offset: 3px; }
.pair-card.revealed { color: var(--purple-dark); background: white; box-shadow: 0 8px 20px #1d5b4818; }
.pair-card.matched { color: white; background: var(--green); box-shadow: none; }
.pair-card .card-back { font-size: 14px; letter-spacing: -.02em; }
.four-stage { align-content: center; min-height: 520px; background: #eee8f5; }
.four-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }
.four-options label { margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.four-options select { margin-top: 7px; }
.friends-panel { margin: 0 0 14px; padding: 15px; border: 1px solid #d9cce2; border-radius: 16px; background: #f8f4fa; }
.friends-panel[hidden] { display: none; }
.friends-panel h3 { margin: 0 0 5px; font-size: 17px; }
.friends-panel > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.friends-create { margin-bottom: 10px; }
.friends-create .play-button { width: 100%; }
.friends-join { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.friends-join label { margin: 0; color: var(--purple-dark); font-size: 12px; font-weight: 800; }
.friends-join input { width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #cdbdd7; border-radius: 11px; text-transform: uppercase; letter-spacing: .15em; font-weight: 900; }
.friends-join button { min-height: 43px; }
.friends-room { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; margin-top: 12px; padding: 11px; border-radius: 12px; background: white; }
.friends-room[hidden] { display: none; }
.friends-room span { color: var(--muted); font-size: 12px; }
.friends-room strong { color: var(--purple-dark); letter-spacing: .12em; }
.friends-room button { grid-column: 1 / -1; margin-top: 5px; }
.friends-status { margin: 10px 0 0 !important; color: var(--purple-dark) !important; font-weight: 750; }
.column-controls { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; width: min(100%, 570px); margin-bottom: 9px; }
.column-controls button { min-width: 0; min-height: 45px; border: 0; border-radius: 11px; color: white; background: var(--purple); font-size: 20px; font-weight: 850; }
.column-controls button:disabled { cursor: default; opacity: .35; }
.four-board { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; width: min(100%, 570px); padding: 12px; border-radius: 22px; background: #493260; box-shadow: 0 18px 35px #39255228; }
.four-cell { position: relative; aspect-ratio: 1; border-radius: 50%; background: #f5f2f7; box-shadow: inset 0 4px 8px #30203f35; }
.four-cell.purple-piece { background: var(--purple); box-shadow: inset 0 -6px 10px #3a255250, 0 4px 8px #2d20352a; }
.four-cell.coral-piece { background: var(--coral); box-shadow: inset 0 -6px 10px #923c3c45, 0 4px 8px #4a25252a; }
.four-cell.winner { outline: 5px solid #f3be4e; outline-offset: -5px; }
.mills-stage { min-height: 560px; background: #eee8f5; }
.mills-board { position: relative; width: min(100%, 555px); aspect-ratio: 1; border-radius: 24px; background: linear-gradient(145deg, #f7f2fa, #e6dced); box-shadow: inset 0 0 0 1px #67478e12; }
.mills-lines { position: absolute; inset: 5%; width: 90%; height: 90%; overflow: visible; fill: none; stroke: #4d3863; stroke-linecap: round; stroke-linejoin: round; stroke-width: 9; }
.mills-points { position: absolute; inset: 5%; }
.mills-point { position: absolute; display: grid; place-items: center; width: clamp(32px, 6vw, 44px); aspect-ratio: 1; transform: translate(-50%, -50%); border: 4px solid #fff; border-radius: 50%; background: #cfbfd9; box-shadow: 0 6px 13px #39255230; touch-action: manipulation; }
.mills-point:hover { transform: translate(-50%, -50%) scale(1.07); }
.mills-point:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
.mills-point.purple-piece { background: var(--purple); }
.mills-point.coral-piece { background: var(--coral); }
.mills-point.selected { outline: 6px solid var(--gold); outline-offset: 2px; }
.mills-point.removable { animation: removable-pulse 1s ease-in-out infinite alternate; }
.mills-point.valid-target { border-color: var(--gold); background: #fff7df; }
.mills-counts { margin-bottom: 10px; }
.mills-wins { margin-bottom: 18px; }
.rules-help { margin-top: 18px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.rules-help summary { cursor: pointer; font-size: 13px; font-weight: 800; }
.rules-help p { margin: 10px 0 0; font-size: 12px; }
.worlds-dialog { width: min(1240px, calc(100% - 24px)); }
.worlds-dialog-header { background: #fbfffd; }
.worlds-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; padding: 24px; background: #eef5f1; }
.worlds-main { min-width: 0; }
.worlds-topbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 12px; }
.worlds-topbar div { min-width: 0; padding: 10px 12px; border: 1px solid #d9e8e1; border-radius: 13px; background: white; text-align: center; }
.worlds-topbar span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.worlds-topbar strong { color: #215d4c; font-size: 22px; }
.worlds-stage { position: relative; display: grid; place-items: center; min-height: 590px; overflow: hidden; border-radius: 24px; background: linear-gradient(#9ed7e6 0 39%, #4fa5c3 39% 100%); transition: background .35s ease; }
.worlds-stage.is-evening { background: linear-gradient(#6e78aa 0 39%, #3b7b9b 39% 100%); }
.worlds-sky { position: absolute; inset: 0; pointer-events: none; }
.worlds-sky span { position: absolute; right: 9%; top: 7%; width: 64px; aspect-ratio: 1; border-radius: 50%; background: #ffe7a0; box-shadow: 0 0 0 14px #fff2b63c; transition: transform .35s ease, background .35s ease; }
.is-evening .worlds-sky span { transform: translateY(18px); background: #f3f0dc; box-shadow: 0 0 0 12px #fff9dc1f; }
.worlds-sky i { position: absolute; left: 7%; top: 11%; width: 82px; height: 24px; border-radius: 99px; background: #ffffffb5; box-shadow: 22px -10px 0 -4px #ffffffb5; }
.worlds-map { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(54px, 78px)); gap: 6px; width: min(94%, 560px); padding: 24px; border: 10px solid #e6c68f; border-radius: 43% 47% 40% 50% / 33% 37% 45% 48%; background: #6faa63; box-shadow: 0 23px 0 -7px #ac8758, 0 38px 42px #25596d55; transform: perspective(900px) rotateX(3deg); }
.world-cell { position: relative; display: grid; place-items: center; min-width: 0; aspect-ratio: 1; padding: 0; border: 2px solid #ffffff38; border-radius: 13px; color: white; background: #83b96b; box-shadow: inset 0 -7px 13px #47794b22; font-size: clamp(21px, 4vw, 34px); touch-action: manipulation; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.world-cell:not(:disabled):hover { z-index: 2; transform: translateY(-4px); box-shadow: 0 8px 14px #284f3e35; }
.world-cell.water { border-color: #ffffff1f; background: #4fa5c3; box-shadow: inset 0 0 0 2px #8bd2e433; cursor: default; }
.world-cell.forest { background: #5d9b5d; }.world-cell.rock { background: #819685; }.world-cell.plaza { background: #d7b983; }
.world-cell.compatible { outline: 4px solid #ffe69a; outline-offset: -4px; animation: world-pulse 1.15s ease-in-out infinite alternate; }
.world-cell.built { animation: world-arrive .35s ease-out both; box-shadow: inset 0 -8px 13px #3159362c, 0 5px 9px #2446321d; }
.world-cell.built::before { content: ''; position: absolute; left: 14%; top: 10%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #fff6; box-shadow: 8px -4px 0 -2px #fff4; animation: world-glimmer 2.2s ease-in-out infinite; }
.world-cell small { position: absolute; right: 4px; bottom: 3px; color: #ffffffd6; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.worlds-status { min-height: 48px; margin: 12px 0 0; padding: 12px 16px; border: 1px solid #d5e5de; border-radius: 13px; color: #285d4e; background: white; font-size: 13px; font-weight: 750; }
.worlds-sidebar { min-width: 0; }
.worlds-guide { margin-bottom: 10px; padding: 16px; border: 1px solid #e5c76e; border-radius: 17px; background: linear-gradient(145deg, #fff9dc, #fffdf5); box-shadow: 0 10px 24px #71551b16; }
.worlds-guide > span { color: #7a5b12; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.worlds-guide h3 { margin: 7px 0 5px; color: #443052; font-size: 18px; }.worlds-guide p { margin: 0 0 12px; color: #675c70; font-size: 12px; line-height: 1.5; }
.worlds-guide > div { display: flex; justify-content: flex-end; gap: 7px; }.worlds-guide button { min-height: 38px; padding: 0 13px; font-size: 11px; }
.worlds-mission { padding: 18px; border-radius: 18px; color: white; background: linear-gradient(145deg, #493260, #67478e); box-shadow: 0 14px 30px #432c5825; }
.worlds-mission > span { display: block; margin-bottom: 7px; color: #e9daf6; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.worlds-mission h3 { margin: 0 0 6px; font-size: 21px; }.worlds-mission p { margin-bottom: 13px; color: #eee7f4; font-size: 12px; line-height: 1.45; }
.worlds-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #ffffff24; }.worlds-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: #f5c459; transition: width .3s ease; }
.worlds-mission small { display: block; margin-top: 7px; color: #f1eaf6; font-size: 10px; }
.worlds-happiness { display: flex; align-items: baseline; gap: 3px; margin: 10px 0; padding: 13px 16px; border: 1px solid #d5e5de; border-radius: 14px; background: white; }.worlds-happiness span { flex: 1; color: var(--muted); font-size: 12px; font-weight: 780; }.worlds-happiness strong { color: var(--green); font-size: 25px; }.worlds-happiness b { color: var(--green); }
.worlds-needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }.worlds-needs div { min-width: 0; padding: 9px 5px; border: 1px solid #d5e5de; border-radius: 12px; background: white; text-align: center; }.worlds-needs span { display: block; min-height: 24px; color: var(--muted); font-size: 8px; font-weight: 800; line-height: 1.25; text-transform: uppercase; }.worlds-needs strong { display: block; margin-top: 2px; color: #215d4c; font-size: 18px; }
.worlds-event { min-height: 42px; margin: 0 0 9px; padding: 10px 12px; border-left: 4px solid var(--gold); border-radius: 10px; color: #654f2e; background: #fff8df; font-size: 10px; font-weight: 750; line-height: 1.4; }
.worlds-buildings { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.worlds-buildings button { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 61px; padding: 8px; border: 1px solid #d7e5df; border-radius: 13px; color: var(--ink); background: white; text-align: left; }
.worlds-buildings button:hover { border-color: #8fb9a8; }.worlds-buildings button.active { color: white; border-color: var(--green); background: var(--green); box-shadow: 0 8px 16px #26735d28; }
.worlds-buildings button:disabled { cursor: default; opacity: .48; }.worlds-buildings i { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border-radius: 9px; background: #edf5f1; font-size: 17px; font-style: normal; }.worlds-buildings button.active i { background: #ffffff22; }
.worlds-buildings span { overflow: hidden; font-size: 11px; font-weight: 850; }.worlds-buildings small { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 8px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }.worlds-buildings button.active small { color: #e5f4ee; }
.worlds-actions { display: grid; grid-template-columns: 1.2fr .8fr; gap: 7px; margin-top: 10px; }.worlds-actions button { min-width: 0; padding-inline: 9px; font-size: 12px; }
@keyframes world-pulse { to { filter: brightness(1.13); box-shadow: inset 0 0 0 3px #fff0a5; } }
@keyframes world-arrive { from { transform: translateY(-10px) scale(.82); opacity: .4; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes world-glimmer { 0%, 70%, 100% { opacity: .15; } 82% { opacity: .75; } }

/* inselsturm · 3d-Ego-Run */
.feature-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.light-quiet { color: white; border-color: #ffffff75; background: #ffffff18; }
.light-quiet:hover { background: #ffffff2a; }
.island-run-feature { background: linear-gradient(135deg, #102a43, #135f73 48%, #2b8f76); }
.island-run-preview { perspective: 760px; background: radial-gradient(circle at 73% 15%, #fff2aa88 0 8%, transparent 9%), linear-gradient(#71bad2 0 54%, #dff2ef 54% 58%, #4d9bb7 58%); }
.run-horizon { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(55deg) translateY(45px); }
.run-horizon i { position: absolute; left: 50%; top: 50%; width: 150px; height: 115px; border: 9px solid #dfbf79; border-radius: 48% 52% 43% 57%; background: radial-gradient(circle at 45% 35%, #96cf70, #4e925a 72%); box-shadow: 0 20px 0 -8px #9a7653, 0 32px 28px #153e5270; transform: translate(-50%, -50%); }
.run-horizon i:nth-child(1) { transform: translate(-50%, 118px) scale(1.7); }
.run-horizon i:nth-child(2) { transform: translate(-128%, -4px) scale(.82) rotate(10deg); }
.run-horizon i:nth-child(3) { transform: translate(34%, -110px) scale(.58) rotate(-8deg); }
.run-horizon i:nth-child(4) { transform: translate(-172%, -190px) scale(.38); }
.run-horizon i:nth-child(5) { transform: translate(68%, -260px) scale(.28); }
.run-horizon b { position: absolute; z-index: 3; left: 50%; top: 50%; width: 28px; height: 55px; border-radius: 12px 12px 7px 7px; background: linear-gradient(#fff, #e8d7f6); box-shadow: 0 8px 16px #112c3c66; transform: translate(-50%, 148px) rotateX(-55deg); }
.island-run-dialog { width: min(1280px, calc(100% - 18px)); max-height: calc(100dvh - 18px); color: white; background: #0c1e2c; }
.island-run-header { color: #163242; background: #f7fcfa; }
.island-run-shell { padding: 14px; background: linear-gradient(145deg, #0b2233, #123a45); }
.island-run-stage { position: relative; height: min(72dvh, 720px); min-height: 500px; overflow: hidden; border: 1px solid #ffffff24; border-radius: 22px; background: linear-gradient(#6bb5cf, #d9efec); box-shadow: inset 0 0 70px #081b2b45; }
.island-run-host, .island-run-host canvas { display: block; width: 100%; height: 100%; min-height: 0; touch-action: none; }
.island-run-hud { position: absolute; z-index: 4; top: 14px; left: 14px; right: 14px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; pointer-events: none; }
.island-run-hud span { min-width: 0; padding: 9px 13px; border: 1px solid #ffffff4a; border-radius: 13px; background: #071d2bb8; box-shadow: 0 8px 24px #0717232e; backdrop-filter: blur(5px); }
.island-run-hud small { display: block; color: #bfe9e0; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.island-run-hud b { display: block; overflow: hidden; margin-top: 2px; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.island-run-questbar { position: absolute; z-index: 4; top: 88px; left: 50%; display: grid; grid-template-columns: auto minmax(190px, 1fr) auto; gap: 7px; width: min(720px, calc(100% - 28px)); color: white; transform: translateX(-50%); pointer-events: none; }
.island-run-questbar span { min-width: 0; padding: 7px 11px; border: 1px solid #ffffff3d; border-radius: 12px; background: #102b3bbb; text-align: center; box-shadow: 0 8px 18px #06131f2e; backdrop-filter: blur(5px); }
.island-run-questbar small { display: block; color: #bfe9e0; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.island-run-questbar b { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.island-run-questbar i { font-style: normal; }
.island-run-questbar #island-run-shield.active { color: #7df0ff; text-shadow: 0 0 10px #6ceeff; }
.island-run-route { position: absolute; z-index: 4; top: 145px; left: 50%; display: flex; align-items: center; gap: 12px; width: min(620px, calc(100% - 32px)); color: #eefcf8; transform: translateX(-50%); pointer-events: none; }
.island-run-route-track { position: relative; flex: 1; height: 7px; border: 1px solid #ffffff55; border-radius: 999px; background: #102b3bbb; box-shadow: 0 5px 16px #06131f40; }
.island-run-route-track > i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #70e3b1, #f3c85d); box-shadow: 0 0 12px #70e3b188; transition: width .25s ease-out; }
.route-stop { position: absolute; top: 50%; display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid #ffffff88; border-radius: 50%; color: #17384a; background: #eefcf8; font-size: 9px; transform: translate(-50%, -50%); }
.route-stop.one { left: 20%; }.route-stop.two { left: 40%; }.route-stop.three { left: 60%; }.route-stop.four { left: 80%; }.route-stop.goal { left: 100%; color: #65430a; background: #ffd86b; }
.island-run-route > span { min-width: 132px; padding: 5px 8px; border-radius: 9px; background: #102b3bbb; font-size: 10px; font-weight: 850; text-align: center; }
.island-run-message { position: absolute; z-index: 5; left: 50%; top: 52%; width: min(520px, calc(100% - 28px)); padding: clamp(22px, 5vw, 38px); border: 1px solid #ffffff48; border-radius: 26px; background: #0b2638dc; box-shadow: 0 28px 80px #06131f88; text-align: center; transform: translate(-50%, -50%); backdrop-filter: blur(9px); }
.island-run-message[hidden] { display: none; }
.island-run-message h3 { margin: 6px 0 11px; color: white; font-size: clamp(27px, 5vw, 44px); line-height: 1.04; }
.island-run-message p:not(.eyebrow) { margin: 0 auto 18px; max-width: 47ch; color: #d8ece9; }
.island-run-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: -4px auto 18px; padding: 10px; border: 1px solid #ffffff2e; border-radius: 14px; background: #ffffff0e; }
.island-run-result[hidden] { display: none; }
.island-run-result span { min-width: 0; padding: 6px; border-radius: 9px; background: #071d2b82; }
.island-run-result small { display: block; color: #9eddd0; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.island-run-result b { display: block; margin-top: 3px; color: white; font-size: 17px; }
.island-run-result .result-stars { color: #ffd86b; letter-spacing: .08em; }
.island-run-next-note { display: block; margin-top: 11px; color: #aee4d7; font-size: 11px; font-weight: 800; }
.run-key-guide { display: flex; justify-content: center; gap: 8px; margin: 0 0 18px; }
.run-key-guide span { padding: 7px 10px; border: 1px solid #ffffff35; border-radius: 9px; color: #e8f7f2; background: #ffffff12; font-size: 11px; font-weight: 850; }
.island-run-crosshair { position: absolute; z-index: 3; left: 50%; top: 50%; width: 10px; height: 10px; border: 2px solid #ffffffd9; border-radius: 50%; box-shadow: 0 0 8px #13384b; transform: translate(-50%, -50%); pointer-events: none; }
.island-run-cue { position: absolute; z-index: 6; left: 50%; top: 31%; max-width: calc(100% - 32px); padding: 9px 15px; border: 1px solid #ffffff55; border-radius: 999px; color: #17384a; background: #f7fffbdc; box-shadow: 0 10px 28px #07172350; font-size: 12px; font-weight: 900; text-align: center; transform: translate(-50%, -50%); pointer-events: none; animation: island-cue-in .24s ease-out both; }
.island-run-cue[hidden] { display: none; }
.island-run-cue.crystal { color: #125a49; background: #c9ffeccc; }.island-run-cue.warning { color: #78361e; background: #ffe0d2dc; }.island-run-cue.goal { color: #684a0a; background: #fff0b9e8; }
.island-run-flash { position: absolute; z-index: 5; inset: 0; border-radius: inherit; opacity: 0; background: #8fffd0; pointer-events: none; }
.island-run-flash.flash-good { animation: island-flash-good .48s ease-out; }.island-run-flash.flash-hit { background: #ff6f59; animation: island-flash-hit .42s ease-out; }.island-run-flash.flash-goal { background: #ffd86b; animation: island-flash-goal .7s ease-out; }
.island-run-legend { position: absolute; z-index: 4; right: 12px; bottom: 12px; display: grid; gap: 5px; padding: 8px 10px; border: 1px solid #ffffff38; border-radius: 12px; color: #edf9f6; background: #0b2638c9; font-size: 9px; font-weight: 800; pointer-events: none; }
.island-run-legend span { display: flex; align-items: center; gap: 6px; }
.island-run-legend i { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 6px; font-style: normal; }
.legend-crystal { color: #73f0c1; background: #195e514d; }.legend-rock { color: #ff9b74; background: #713d334d; }.legend-enemy { color: #f29ac8; background: #6d34554d; }.legend-ring { color: #ffd86b; background: #715e214d; }
.island-run-controls { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 9px; max-width: 520px; margin: 12px auto 0; }
.island-run-controls button { min-height: 58px; border: 1px solid #ffffff2e; border-radius: 16px; color: white; background: #183f52; box-shadow: 0 8px 18px #07151f42; font-size: 25px; font-weight: 900; touch-action: none; user-select: none; }
.island-run-controls .run-jump { color: #18333b; background: #f3c85d; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; }
.island-run-controls button.pressed { transform: translateY(2px); filter: brightness(1.2); }
.island-run-options { display: grid; grid-template-columns: 1fr 1fr auto minmax(150px, 1.4fr); align-items: end; gap: 9px; max-width: 920px; margin: 10px auto 0; }
.island-run-options label { display: grid; gap: 4px; color: #c9e5e1; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.island-run-options select { min-height: 42px; padding: 6px 34px 6px 11px; border: 1px solid #ffffff32; border-radius: 12px; color: white; background: #163b4c; font: inherit; font-size: 13px; text-transform: none; }
.island-run-options button { min-height: 42px; white-space: nowrap; }
.island-run-options > span { align-self: center; color: #cfe8e3; font-size: 12px; font-weight: 750; text-align: right; }
.island-run-options .island-run-jump-help { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; color: #f5dda1; text-align: center; }
.island-run-options .island-run-jump-help small { color: #fff2c8; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

/* Kartenwerkstatt 2.13 */
.card-classic-preview { background: radial-gradient(circle at 50% 35%, #fff9 0 12%, transparent 13%), linear-gradient(145deg, #4c3166, #b76673); }
.card-classic-preview span, .card-classic-preview i { display: grid; place-items: center; min-width: 78px; aspect-ratio: .72; border: 4px solid #fff8; border-radius: 12px; color: #372441; background: #fffdf8; box-shadow: 0 14px 24px #261a3344; font-size: 30px; font-style: normal; font-weight: 950; }
.card-classic-preview span { transform: rotate(-10deg) translate(12px, 8px); }.card-classic-preview i { color: #b44053; transform: rotate(9deg) translate(-12px, -4px); }
.card-table { min-height: 480px; background: linear-gradient(145deg, #173e3b, #205a4d 55%, #183a42); color: #fff; }
.card-table h3 { margin: 14px 0 8px; color: #fff; }.card-table small { color: #d9f3e9; font-weight: 800; }
.playing-card, button.playing-card { position: relative; display: inline-grid; place-items: center; flex: 0 0 clamp(47px, 7vw, 70px); width: clamp(47px, 7vw, 70px); min-height: clamp(68px, 9.8vw, 98px); padding: 5px; border: 3px solid #f5eee5; border-radius: 10px; color: #24202a; background: #fffdf8; box-shadow: 0 6px 12px #071d1b55; font-size: clamp(16px, 2.2vw, 25px); font-weight: 950; }
.playing-card.red { color: #bd334b; }.playing-card.back { color: #fff; background: repeating-linear-gradient(45deg, #5a3975 0 6px, #775494 6px 12px); }.playing-card.selected, .card-slot.selected { outline: 4px solid #ffd66f; transform: translateY(-6px); }
.card-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: end; min-height: 84px; padding: 8px; border-radius: 14px; background: #071d1b35; }.card-row.compact .playing-card { width: 44px; min-height: 62px; flex-basis: 44px; font-size: 15px; }
.hand-row { justify-content: center; }.solitaire-top, .freecell-top, .meld-area { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: start; margin-bottom: 18px; }.foundation-row { display: flex; gap: 8px; }
.card-slot { display: grid; place-items: center; min-width: 60px; min-height: 82px; padding: 5px; border: 2px dashed #e9f8ef88; border-radius: 10px; color: #fff; background: #0d2d2944; font-weight: 950; }.card-slot.red { color: #ffbac4; }.card-slot .playing-card { margin: -6px; }
.tableau { display: grid; grid-template-columns: repeat(8, minmax(56px, 1fr)); gap: 8px; align-items: start; overflow-x: auto; padding-bottom: 8px; }.spider-tableau { grid-template-columns: repeat(10, minmax(48px, 1fr)); }
.tableau-pile { display: flex; flex-direction: column; align-items: center; min-width: 48px; min-height: 126px; }.tableau-pile .playing-card + .playing-card { margin-top: -54px; }.spider-tableau .tableau-pile .playing-card + .playing-card { margin-top: -70px; }.tableau-pile .pile-target { width: 100%; min-height: 34px; margin-top: 7px; padding: 4px; border: 1px dashed #fff7; border-radius: 8px; color: #e8fff7; background: #09231f55; font-size: 10px; font-weight: 850; }
.meld-area > div { min-width: 180px; flex: 1; }.card-center { display: flex; gap: 15px; justify-content: center; align-items: center; min-height: 130px; }.trick-table { display: grid; grid-template-columns: repeat(4, minmax(70px, 1fr)); gap: 12px; place-items: center; min-height: 150px; padding: 14px; border: 1px solid #ffffff24; border-radius: 18px; background: #0a292655; }.trick-card { display: grid; gap: 3px; justify-items: center; }.trick-card small { max-width: 86px; text-align: center; }
.card-table .score-banner { flex-wrap: wrap; color: #f8fff9; background: #0b2b2777; }.card-table .score-banner span { min-width: 130px; }

@media (max-width: 700px) {
  .card-table { min-height: 400px; padding: 12px; }.tableau { grid-template-columns: repeat(8, 52px); }.spider-tableau { grid-template-columns: repeat(10, 46px); }.playing-card, button.playing-card { width: 48px; min-height: 68px; flex-basis: 48px; font-size: 16px; }.tableau-pile .playing-card + .playing-card { margin-top: -40px; }.spider-tableau .tableau-pile .playing-card + .playing-card { margin-top: -52px; }.trick-table { grid-template-columns: repeat(2, 1fr); }.solitaire-top, .freecell-top { gap: 8px; }.card-slot { min-width: 48px; min-height: 68px; }.card-row { gap: 4px; padding: 5px; }
}
.island-run-options .island-run-abilities { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; padding-top: 2px; color: #9fe8d0; text-align: center; }
.island-run-abilities small { color: #d7eee9; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.island-run-stage.biome-ice { box-shadow: inset 0 0 80px #a4efff45; }
.island-run-stage.biome-volcano { box-shadow: inset 0 0 90px #ff5a3338; }
.island-run-stage.biome-ruins { box-shadow: inset 0 0 90px #7957a052; }
.island-run-stage.biome-clouds { box-shadow: inset 0 0 95px #dff6ff5c; }
.island-run-status { min-height: 24px; margin: 9px 4px 0; color: #d1e8e3; text-align: center; font-size: 12px; font-weight: 750; }
@keyframes island-cue-in { from { opacity: 0; transform: translate(-50%, -35%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes island-flash-good { 0% { opacity: .34; } 100% { opacity: 0; } }
@keyframes island-flash-hit { 0% { opacity: .42; } 100% { opacity: 0; } }
@keyframes island-flash-goal { 0%, 35% { opacity: .38; } 100% { opacity: 0; } }
@media (max-width: 650px) {
  .island-run-dialog { width: calc(100% - 8px); max-height: calc(100dvh - 8px); }
  .island-run-shell { padding: 6px; }
  .island-run-stage { height: 58dvh; min-height: 460px; }
  .island-run-hud { top: 7px; left: 7px; right: 7px; grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .island-run-hud span { padding: 6px 9px; backdrop-filter: none; }
  .island-run-hud small { font-size: 8px; }.island-run-hud b { font-size: 15px; }
  .island-run-questbar { top: 116px; grid-template-columns: 1fr 1fr; width: calc(100% - 14px); }
  .island-run-questbar .run-mission { grid-column: 1 / -1; grid-row: 2; }
  .island-run-questbar span { padding: 5px 7px; backdrop-filter: none; }
  .island-run-route { top: 206px; gap: 7px; width: calc(100% - 22px); }
  .island-run-route > span { min-width: 104px; padding: 4px 6px; font-size: 9px; }
  .route-stop { width: 17px; height: 17px; }
  .island-run-message { top: 56%; padding: 20px 15px; backdrop-filter: none; }
  .island-run-result { gap: 4px; padding: 7px; }.island-run-result span { padding: 5px 3px; }.island-run-result b { font-size: 14px; }
  .island-run-cue { top: 35%; font-size: 10px; }
  .island-run-legend { right: 7px; bottom: 7px; grid-template-columns: 1fr 1fr; gap: 3px 7px; padding: 6px 7px; font-size: 8px; }
  .island-run-legend i { width: 15px; height: 15px; }
  .run-key-guide { display: none; }
  .island-run-controls button { min-height: 52px; }
  .island-run-options { grid-template-columns: 1fr 1fr; }
  .island-run-options button { width: 100%; }
  .island-run-options > span { text-align: left; }
}
@keyframes removable-pulse { to { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 7px #d79b3140; } }
.sudoku-stage { min-height: 520px; background: #e8eff7; }
.sudoku-board { --size: 9; display: grid; grid-template-columns: repeat(var(--size), 1fr); width: min(100%, 500px); aspect-ratio: 1; overflow: hidden; border: 4px solid #385d84; border-radius: 18px; background: white; box-shadow: 0 18px 35px #244b7420; }
.sudoku-cell { min-width: 0; padding: 0; border: 0; border-right: 1px solid #bdcddd; border-bottom: 1px solid #bdcddd; border-radius: 0; color: var(--blue); background: white; font-size: clamp(20px, 4vw, 34px); font-weight: 780; }
.sudoku-cell.given { color: var(--ink); background: #edf3f9; font-weight: 900; }
.sudoku-cell.selected { box-shadow: inset 0 0 0 4px var(--gold); background: #fff8e6; }
.sudoku-cell.same-number { background: #e3edf8; }
.sudoku-cell.error { color: #a63131; background: #fde7e6; }
.sudoku-cell.box-right { border-right: 4px solid #385d84; }
.sudoku-cell.box-bottom { border-bottom: 4px solid #385d84; }
.sudoku-board.size-9 .sudoku-cell:nth-last-child(-n + 9) { border-bottom-color: transparent; }
.sudoku-board.size-6 .sudoku-cell:nth-last-child(-n + 6) { border-bottom-color: transparent; }
.sudoku-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 16px 0; }
.sudoku-pad button { min-height: 48px; border: 1px solid #b9cce0; border-radius: 12px; color: #315d88; background: white; font-size: 20px; font-weight: 850; }
.sudoku-pad button:hover, .sudoku-pad button:focus-visible { color: white; background: var(--blue); }
.sudoku-stats { grid-template-columns: repeat(2, 1fr); margin: 18px 0 6px; }
.sudoku-actions { grid-template-columns: 1fr 1fr; }
.sudoku-actions button:first-child { grid-column: 1 / -1; }
.turn-card { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.turn-card small { display: block; margin-bottom: 3px; color: var(--muted); }
.turn-card strong { font-size: 20px; }
.turn-disc { display: block; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 -5px 9px #2b1c3a36; }
.purple-disc { background: var(--purple); }
.coral-disc { background: var(--coral); }
.patience-preview { position: relative; display: grid; place-items: center; min-height: 300px; overflow: hidden; background: linear-gradient(145deg, #236f58, #15493c); }
.patience-preview i { position: absolute; display: grid; align-content: space-between; width: 94px; aspect-ratio: 2 / 3; padding: 12px; border-radius: 12px; color: #392552; background: #fffdf8; box-shadow: 0 14px 24px #102c2445; font-size: 27px; font-style: normal; font-weight: 900; transform: translateX(-80px) rotate(-12deg); }
.patience-preview i:nth-child(2) { transform: translateY(-10px) rotate(2deg); }
.patience-preview i:nth-child(3) { color: #b33f45; transform: translateX(80px) rotate(13deg); }
.patience-preview i span { font-size: 34px; }
.backgammon-preview { position: relative; display: grid; place-items: center; min-height: 300px; overflow: hidden; background: #eadcc5; }
.preview-triangles { position: absolute; inset: 13%; border: 12px solid #59406e; border-radius: 16px; background: repeating-conic-gradient(from 15deg at 50% 0%, #c97d63 0 12deg, #f4e9d6 12deg 24deg); }
.backgammon-preview > i, .backgammon-preview > b { position: absolute; width: 48px; aspect-ratio: 1; border: 4px solid #fff8; border-radius: 50%; background: var(--purple); box-shadow: 0 5px 12px #30243b38; }
.backgammon-preview > i:nth-of-type(1) { left: 24%; top: 23%; }.backgammon-preview > i:nth-of-type(2) { right: 27%; bottom: 23%; }
.backgammon-preview > b { background: var(--coral); }.backgammon-preview > b:nth-of-type(1) { right: 23%; top: 29%; }.backgammon-preview > b:nth-of-type(2) { left: 30%; bottom: 21%; }
.draughts-preview { display: grid; place-items: center; min-height: 300px; background: #ede5f2; }
.draughts-preview-board { position: relative; width: min(76%, 280px); aspect-ratio: 1; border: 10px solid #4d3863; border-radius: 15px; background-color: #f7eee2; background-image: conic-gradient(#6b4b74 25%, #0000 0 50%, #6b4b74 0 75%, #0000 0); background-size: 25% 25%; box-shadow: 0 15px 25px #2c20362c; }
.draughts-preview-board i, .draughts-preview-board b { position: absolute; width: 17%; aspect-ratio: 1; border: 3px solid #fff9; border-radius: 50%; background: var(--purple); }
.draughts-preview-board i:nth-child(1) { left: 5%; bottom: 7%; }.draughts-preview-board i:nth-child(2) { left: 30%; bottom: 32%; }.draughts-preview-board i:nth-child(3) { right: 5%; bottom: 7%; }
.draughts-preview-board b { background: var(--coral); }.draughts-preview-board b:nth-of-type(1) { left: 5%; top: 7%; }.draughts-preview-board b:nth-of-type(2) { left: 55%; top: 7%; }.draughts-preview-board b:nth-of-type(3) { right: 17%; top: 32%; }
.wordsearch-preview, .mines-preview { display: grid; place-items: center; min-height: 300px; background: #e8f0f7; }
.wordsearch-preview > div, .mines-preview > div { display: grid; grid-template-columns: repeat(5, 1fr); width: min(78%, 280px); overflow: hidden; border: 7px solid #385d84; border-radius: 14px; background: white; box-shadow: 0 15px 25px #244b7420; }
.wordsearch-preview i { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #c5d4e2; color: #385d84; font-size: 20px; font-style: normal; font-weight: 900; }
.wordsearch-preview i:nth-child(-n+5), .wordsearch-preview i:nth-child(n+11):nth-child(-n+15), .wordsearch-preview i:nth-child(n+21) { color: white; background: var(--blue); }
.mines-preview { background: #e4ece9; }.mines-preview > div { grid-template-columns: repeat(4, 1fr); border-color: #4d7869; }
.mines-preview i { display: grid; place-items: center; aspect-ratio: 1; border: 2px outset #f5f8f7; color: #315d88; background: #dce8e3; font-size: 21px; font-style: normal; font-weight: 900; }
.mines-preview i:nth-child(3), .mines-preview i:nth-child(9) { color: #a53d43; }
.patience-stage { min-height: 590px; align-content: start; background: linear-gradient(145deg, #276f59, #174c3e); }
.patience-deck-row { display: flex; gap: 18px; justify-content: center; width: 100%; margin-bottom: 22px; }
.playing-card { display: grid; align-content: space-between; width: clamp(58px, 9vw, 78px); aspect-ratio: 2 / 3; padding: 7px; border: 0; border-radius: 9px; color: #2d2630; background: #fffdf8; box-shadow: 0 7px 13px #102c243b; font-size: clamp(16px, 2vw, 23px); font-weight: 900; }
.playing-card.red-card { color: #bd4249; }.playing-card.selected { outline: 5px solid var(--gold); outline-offset: 2px; transform: translateY(-5px); }
.playing-card:disabled { opacity: .52; }.playing-card.card-back, #patience-stock { place-items: center; color: white; background: repeating-linear-gradient(45deg, #4f3471 0 7px, #6a4d87 7px 14px); font-size: 12px; letter-spacing: -.03em; }
.patience-pyramid { position: relative; width: min(100%, 590px); height: 455px; }
.pyramid-card { position: absolute; z-index: calc(1 + var(--row)); left: calc((var(--column) + var(--offset)) * 13.9%); top: calc(var(--row) * 62px); width: 13.2%; min-width: 0; }
.pyramid-card.open-card { cursor: pointer; opacity: 1; }.pyramid-card:disabled { cursor: default; }
.backgammon-stage { min-height: 570px; background: #ddcaaa; }
.backgammon-board { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 1fr); gap: 0; width: min(100%, 720px); height: min(70vw, 500px); min-height: 390px; padding: 15px 24px; border: 13px solid #5a3c62; border-radius: 22px; background: #eadcc5; box-shadow: 0 18px 35px #37254134; }
.backgammon-point { position: relative; display: flex; justify-content: center; min-width: 0; padding: 3px; overflow: visible; border: 0; border-radius: 0; color: #4e3d54; background: linear-gradient(to bottom, #b96862 0 82%, transparent 82%); clip-path: polygon(0 0, 100% 0, 50% 86%); }
.backgammon-point:nth-child(even) { background: linear-gradient(to bottom, #765278 0 82%, transparent 82%); }
.backgammon-point.bottom { align-items: end; background: linear-gradient(to top, #b96862 0 82%, transparent 82%); clip-path: polygon(50% 14%, 100% 100%, 0 100%); }
.backgammon-point.bottom:nth-child(even) { background: linear-gradient(to top, #765278 0 82%, transparent 82%); }
.backgammon-point small { position: absolute; z-index: 3; top: 3px; color: #fff; font-size: 10px; }.backgammon-point.bottom small { top: auto; bottom: 3px; }
.backgammon-stack { z-index: 2; display: flex; flex-direction: column; gap: 2px; align-items: center; padding-top: 18px; }.backgammon-point.bottom .backgammon-stack { flex-direction: column-reverse; padding: 0 0 18px; }
.bg-piece { display: grid; place-items: center; width: clamp(20px, 4vw, 34px); aspect-ratio: 1; border: 2px solid #fff9; border-radius: 50%; color: white; font-size: 12px; font-style: normal; font-weight: 900; box-shadow: 0 3px 7px #392b3b55; }
.backgammon-point.selected { filter: drop-shadow(0 0 7px #f3be4e); }.backgammon-point.valid-target { filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 7px #f3be4e); }
.backgammon-bar-button { position: absolute; z-index: 5; inset: 0 calc(50% - 24px); display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 20px 4px; border: 0; color: white; background: #5a3c62; }.backgammon-bar-button b { font-size: 10px; writing-mode: vertical-rl; letter-spacing: .2em; text-transform: uppercase; }.backgammon-bar-button:disabled { opacity: 1; }
.backgammon-off { margin-top: 12px; min-height: 44px; padding: 0 22px; border: 1px solid #75547d; border-radius: 12px; color: #4d3863; background: white; font-weight: 850; }.backgammon-off.valid-target { color: white; background: var(--green); }
.backgammon-dice { display: flex; gap: 9px; min-height: 52px; margin: 14px 0; }.die { display: grid; place-items: center; width: 48px; aspect-ratio: 1; border: 2px solid #d7cadf; border-radius: 10px; color: var(--purple-dark); background: white; box-shadow: 0 5px 10px #39255220; font-size: 25px; font-weight: 900; }
.draughts-stage { min-height: 560px; background: #ece3f1; }.draughts-board { display: grid; grid-template-columns: repeat(8, 1fr); width: min(100%, 540px); aspect-ratio: 1; overflow: hidden; border: 12px solid #4d3863; border-radius: 20px; box-shadow: 0 18px 35px #39255228; }
.draughts-cell { position: relative; display: grid; place-items: center; min-width: 0; padding: 0; border: 0; border-radius: 0; }.draughts-cell.light { background: #f3eadc; }.draughts-cell.dark { background: #80658a; }
.draughts-piece { display: grid; place-items: center; width: 76%; aspect-ratio: 1; border: 4px solid #fff8; border-radius: 50%; color: white; box-shadow: inset 0 -7px 11px #38284042, 0 5px 9px #30223850; font-size: clamp(16px, 4vw, 29px); }.draughts-piece.king { border-color: var(--gold); }
.draughts-piece.purple-piece { background: var(--purple); }
.draughts-piece.coral-piece { background: var(--coral); }
.draughts-cell.selected { box-shadow: inset 0 0 0 6px var(--gold); }.draughts-cell.valid-target::after { content: ''; width: 29%; aspect-ratio: 1; border-radius: 50%; background: #f3be4e; box-shadow: 0 0 0 7px #f3be4e44; }
.wordsearch-stage { min-height: 560px; background: #e8f0f7; }.wordsearch-board { display: grid; grid-template-columns: repeat(10, 1fr); width: min(100%, 540px); aspect-ratio: 1; overflow: hidden; border: 7px solid #385d84; border-radius: 18px; background: white; box-shadow: 0 18px 35px #244b7420; }
.word-cell { min-width: 0; padding: 0; border: 1px solid #c8d7e5; border-radius: 0; color: #315d88; background: white; font-size: clamp(13px, 3vw, 24px); font-weight: 900; }.word-cell:hover { background: #edf5fb; }.word-cell.selected { color: #3b2950; background: var(--gold); }.word-cell.found { color: white; background: var(--green); }
.word-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }.word-chip { padding: 7px 10px; border: 1px solid #c7d7e4; border-radius: 999px; color: #315d88; background: white; font-size: 13px; font-weight: 850; }.word-chip.found { color: white; border-color: var(--green); background: var(--green); text-decoration: line-through; }
.mines-stage { min-height: 560px; background: #e4ece9; }.mines-board { --size: 8; display: grid; grid-template-columns: repeat(var(--size), 1fr); width: min(100%, 530px); aspect-ratio: 1; border: 7px solid #4d7869; border-radius: 16px; background: #c8d8d1; box-shadow: 0 18px 35px #254d4028; }
.mine-cell { min-width: 0; padding: 0; border: 3px outset #eef4f1; border-radius: 2px; color: #315d88; background: #cbdad4; font-size: clamp(12px, 3vw, 23px); font-weight: 900; }.mine-cell.revealed { border: 1px solid #adc3ba; background: #eef3f1; }.mine-cell.flagged { color: #a43e46; }.mine-cell.mine { color: white; background: var(--coral); }.mine-cell[data-count="2"] { color: #287a55; }.mine-cell[data-count="3"] { color: #b64046; }.mine-cell[data-count="4"], .mine-cell[data-count="5"], .mine-cell[data-count="6"], .mine-cell[data-count="7"], .mine-cell[data-count="8"] { color: #603b7d; }
.mine-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 15px 0; }.mine-mode button { min-height: 45px; }
.jump-stage { display: flex; flex-direction: column; justify-content: center; min-height: 590px; background: #ddeef4; }
#jump-canvas { display: block; width: min(100%, 760px); height: auto; border: 8px solid #4d3863; border-radius: 20px; background: #83c6df; box-shadow: 0 18px 35px #283d4b2b; touch-action: none; }
.jump-touch-controls { display: grid; grid-template-columns: repeat(3, 68px); justify-content: center; gap: 10px; margin-top: 16px; }
.jump-touch-controls button { width: 68px; height: 58px; border: 1px solid #cbbdd3; border-radius: 16px; color: var(--purple-dark); background: white; box-shadow: 0 7px 14px #39255216; font-size: 25px; font-weight: 900; touch-action: none; user-select: none; }
.jump-touch-controls button:nth-child(2) { color: white; border-color: var(--coral); background: var(--coral); }
.jump-touch-controls button.pressed { transform: translateY(2px); box-shadow: 0 3px 7px #39255216; }
.jump-stats { margin-top: 18px; }.jump-stats strong { font-size: 20px; }
.discovery-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 20px; }
.discovery-actions .reset-filters { margin: 0; }
.quality-filter { border-color: #e1b452; color: #684608; background: #fff7d9; }
.quality-filter.active { color: white; border-color: var(--purple); background: var(--purple); }
.quality-promise { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border: 1px solid #ead48f; border-radius: 18px; background: linear-gradient(135deg, #fff9e4, #fffdf7); }
.quality-promise span { flex: 0 0 auto; padding: 6px 10px; border-radius: 99px; color: #634404; background: #ffe9a3; font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.quality-promise p { margin: 0; color: #654f2e; font-size: 14px; }
#favorites-only.active { color: white; border-color: var(--gold); background: var(--gold); }
.recent-game { margin: 15px 0 0; color: var(--purple-dark); font-size: 12px; font-weight: 750; }
.game-card-copy, .worlds-feature-copy, .featured-copy { position: relative; }
.quality-choice.game-card { border-color: #e4c86d; box-shadow: 0 20px 50px #8a671d1d; }
.quality-badge { display: inline-flex; width: fit-content; align-items: center; min-height: 30px; margin: 0 8px 8px 0; padding: 0 10px; border: 1px solid #e1b452; border-radius: 99px; color: #684608; background: #fff4c8; font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.worlds-feature .quality-badge, .featured .quality-badge { color: #fff4c8; border-color: #ffe79988; background: #20172a38; }
.favorite-toggle { min-height: 38px; margin-left: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--purple-dark); background: white; font-size: 12px; font-weight: 800; }
.favorite-toggle[aria-pressed="true"] { color: #734d08; border-color: #e1b452; background: #fff4cf; }
.worlds-feature .favorite-toggle, .featured .favorite-toggle { color: white; border-color: #ffffff55; background: #ffffff18; }
.worlds-feature .favorite-toggle[aria-pressed="true"], .featured .favorite-toggle[aria-pressed="true"] { color: #4d3200; border-color: #ffe18a; background: #ffe18a; }
.duel-preview, .blocks-preview, .maze-preview { position: relative; min-height: 400px; overflow: hidden; }
.duel-preview { background: linear-gradient(145deg, #21142f, #5f4475); }
.duel-preview::after { content: ''; position: absolute; left: 50%; top: 8%; bottom: 8%; border-left: 4px dashed #ffffff40; }
.duel-preview i, .duel-preview b { position: absolute; top: 34%; width: 18px; height: 112px; border-radius: 9px; background: white; box-shadow: 0 0 22px #fff8; }
.duel-preview i { left: 16%; }.duel-preview b { right: 16%; background: var(--coral); box-shadow: 0 0 22px #e8777288; }
.duel-preview span { position: absolute; left: 58%; top: 43%; width: 30px; aspect-ratio: 1; border-radius: 50%; background: #ffe074; box-shadow: 0 0 30px #ffe074; }
.duel-preview em { position: absolute; top: 11%; left: 39%; color: white; font-size: 38px; font-style: normal; font-weight: 900; }.duel-preview em:last-child { left: auto; right: 37%; }
.blocks-preview { background: linear-gradient(145deg, #1f1830, #49305d); }
.blocks-preview > div { position: absolute; left: 12%; right: 12%; top: 14%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.blocks-preview i { height: 36px; border-radius: 9px; background: #7bcbb2; box-shadow: 0 5px 12px #1117; }.blocks-preview i:nth-child(4n+2) { background: #ffd06a; }.blocks-preview i:nth-child(4n+3) { background: #e87772; }.blocks-preview i:nth-child(4n) { background: #9b78bd; }
.blocks-preview b { position: absolute; left: 47%; bottom: 29%; width: 28px; aspect-ratio: 1; border-radius: 50%; background: #ffe176; box-shadow: 0 0 24px #ffe176; }.blocks-preview span { position: absolute; left: 32%; right: 32%; bottom: 16%; height: 20px; border-radius: 10px; background: white; }
.maze-preview { background: linear-gradient(145deg, #244a42, #6bb58a); }
.maze-preview > div { position: absolute; inset: 9%; border-radius: 18px; opacity: .48; background: repeating-linear-gradient(0deg, #fff 0 12px, transparent 12px 48px), repeating-linear-gradient(90deg, #fff 0 12px, transparent 12px 48px); }
.maze-preview i, .maze-preview b, .maze-preview span { position: absolute; z-index: 1; display: grid; place-items: center; font-style: normal; font-weight: 900; }
.maze-preview i { left: 18%; bottom: 17%; width: 48px; aspect-ratio: 1; border-radius: 15px; color: white; background: var(--purple); }.maze-preview b { left: 51%; top: 35%; color: #ffe06e; font-size: 42px; }.maze-preview span { right: 15%; top: 14%; color: white; font-size: 45px; }
.arcade-stage { display: flex; flex-direction: column; min-height: 570px; background: #e7e0ee; }
#duel-canvas, #blocks-canvas, #maze-canvas { display: block; width: min(100%, 800px); height: auto; border: 8px solid #4d3863; border-radius: 20px; box-shadow: 0 18px 35px #2a1c372b; touch-action: none; }
#maze-canvas { width: min(100%, 750px); }
.arcade-touch { display: grid; grid-template-columns: repeat(2, 76px); justify-content: center; gap: 10px; margin-top: 16px; }
.arcade-touch button, .maze-controls button { height: 58px; border: 1px solid #cbbdd3; border-radius: 16px; color: var(--purple-dark); background: white; box-shadow: 0 7px 14px #39255216; font-size: 25px; font-weight: 900; touch-action: none; user-select: none; }
.duel-touch button:first-child { color: white; border-color: var(--purple); background: var(--purple); }
.maze-controls { display: grid; grid-template-columns: repeat(3, 64px); justify-content: center; gap: 8px; margin-top: 15px; }
.maze-controls button:first-child { grid-column: 2; }.maze-controls button:nth-child(2) { grid-column: 1; }.maze-controls button:nth-child(3) { grid-column: 2; }.maze-controls button:nth-child(4) { grid-column: 3; }
.collection-preview { position: relative; display: grid; place-items: center; min-height: 300px; overflow: hidden; background: linear-gradient(145deg, #e8e0f0, #bda8d0); }
.collection-preview::before, .collection-preview::after { content: ''; position: absolute; border-radius: 50%; background: #ffffff35; }
.collection-preview::before { width: 210px; height: 210px; left: -65px; top: -55px; }
.collection-preview::after { width: 160px; height: 160px; right: -40px; bottom: -55px; }
.collection-preview span, .collection-preview i { position: relative; z-index: 1; display: grid; place-items: center; width: 108px; aspect-ratio: 1; border-radius: 30px; background: #fff; box-shadow: 0 20px 34px #2e213d35; font-size: 58px; font-style: normal; transform: rotate(-7deg); }
.collection-preview i { position: absolute; width: 64px; right: 19%; bottom: 20%; border-radius: 20px; font-size: 34px; transform: rotate(9deg); }
.cup-preview { background: linear-gradient(145deg, #f9d36d, #e97e71); }.racket-preview { background: linear-gradient(145deg, #94d5a5, #50795c); }
.sky-preview { background: linear-gradient(145deg, #78c7e7, #455b99); }.bubble-preview { background: linear-gradient(145deg, #f3a5ba, #8874ca); }
.cave-preview { background: linear-gradient(145deg, #443655, #86699d); }.goal-preview { background: linear-gradient(145deg, #72be83, #24714f); }
.era-preview { background: linear-gradient(145deg, #e0c182, #9a7448); }.city-preview { background: linear-gradient(145deg, #9bd1cf, #558b91); }
.poker-preview { background: linear-gradient(145deg, #2f765a, #164535); }
.green-tag { color: #236146; background: #dff3e7; }
.collection-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .7fr); min-height: 600px; }
.collection-stage { display: grid; align-content: center; min-width: 0; padding: 28px; background: linear-gradient(145deg, #f1edf5, #e4edf0); }
.collection-sidebar { padding: 28px; border-left: 1px solid var(--line); background: white; }
.collection-sidebar #collection-actions { display: grid; gap: 10px; margin: 18px 0; }
.collection-sidebar button, .collection-stage button { min-height: 46px; }
.collection-panel { width: min(100%, 760px); margin: auto; padding: 24px; border: 1px solid #d8cfde; border-radius: 24px; background: #ffffffdd; box-shadow: 0 18px 40px #38284518; }
.collection-panel h3 { margin: 0 0 8px; color: var(--purple-dark); font-size: clamp(22px, 4vw, 34px); }
.collection-panel p { color: var(--muted); line-height: 1.6; }
.choice-grid, .location-grid, .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.choice-grid button, .location-grid button { padding: 13px 10px; border: 1px solid #cfc3d6; border-radius: 14px; color: var(--purple-dark); background: white; font-weight: 850; }
.location-grid button { min-height: 110px; font-size: 30px; }.location-grid button small { display: block; margin-top: 7px; font-size: 12px; }
.inventory-row, .card-row, .poker-board { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.inventory-row span, .mini-badge { padding: 8px 11px; border-radius: 999px; color: #4c365f; background: #efe7f4; font-weight: 800; }
.timing-track { position: relative; height: 46px; margin: 28px 0; overflow: hidden; border-radius: 99px; background: linear-gradient(90deg, #e77b75 0 24%, #f1c65e 24% 43%, #6ebd94 43% 57%, #f1c65e 57% 76%, #e77b75 76%); }
.timing-marker { position: absolute; top: 5px; width: 12px; height: 36px; border-radius: 6px; background: #3d2b4e; box-shadow: 0 0 0 4px white; transform: translateX(-50%); }
.manager-stat { padding: 14px; border: 1px solid #d9cfe0; border-radius: 16px; text-align: center; background: white; }.manager-stat strong { display: block; margin: 8px 0; font-size: 28px; }.manager-stat div { display: flex; justify-content: center; gap: 6px; }.manager-stat button { min-width: 42px; }
.collection-canvas { display: block; width: min(100%, 720px); height: auto; margin: auto; border: 8px solid #4d3863; border-radius: 20px; background: #a7d9ee; box-shadow: 0 18px 35px #25324728; touch-action: none; }
.touch-row { display: grid; grid-template-columns: repeat(3, minmax(60px, 100px)); justify-content: center; gap: 8px; margin-top: 14px; }.touch-row button { border: 1px solid #cdbfd6; border-radius: 14px; color: var(--purple-dark); background: white; font-size: 22px; font-weight: 900; touch-action: none; }
.bubble-board { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; width: min(100%, 540px); margin: auto; }.bubble-cell { aspect-ratio: 1; min-height: 0 !important; padding: 0; border: 3px solid #fff8; border-radius: 50%; box-shadow: inset 0 -8px 12px #0002, 0 5px 9px #2c20312b; }.bubble-cell.empty { visibility: hidden; }
.cave-board, .city-board { display: grid; gap: 4px; width: min(100%, 560px); margin: auto; }.cave-board { grid-template-columns: repeat(8, 1fr); }.city-board { grid-template-columns: repeat(6, 1fr); }
.cave-cell, .city-cell { display: grid; place-items: center; aspect-ratio: 1; min-height: 0 !important; padding: 0; border: 0; border-radius: 8px; background: #d9c9b2; font-size: clamp(17px, 4vw, 31px); }.cave-cell.wall { background: #604f69; }.cave-cell.ground { background: #b18f6b; }.cave-cell.player { background: #f3c85d; }
.city-cell { border: 1px solid #b7cfc9; background: #d9eee3; }.city-cell.filled { background: #fff; }
.score-banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 16px; padding: 13px 16px; border-radius: 15px; color: white; background: var(--purple); font-weight: 850; }
.era-meters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 18px 0; }.era-meters div { padding: 14px; border-radius: 14px; background: #f0e9f4; }.era-meters strong { display: block; color: var(--purple-dark); font-size: 25px; }
.playing-mini-card { display: grid; place-items: center; width: 68px; aspect-ratio: 2/3; border: 1px solid #ddd; border-radius: 10px; color: #2f2932; background: white; box-shadow: 0 7px 14px #2b223022; font-size: 21px; font-weight: 900; }.playing-mini-card.red { color: #bd414d; }.playing-mini-card.back { color: white; background: repeating-linear-gradient(45deg,#4e3470 0 7px,#765894 7px 14px); }
.match-log { max-height: 190px; margin-top: 16px; padding: 12px 16px; overflow: auto; border-radius: 14px; background: #f4f0f6; line-height: 1.6; }
.expansion-panel { width: min(100%, 760px); margin: auto; padding: clamp(16px, 4vw, 28px); border: 1px solid #d8cfde; border-radius: 24px; background: #ffffffec; box-shadow: 0 18px 40px #38284518; }
.expansion-panel h3 { margin: 0 0 10px; color: var(--purple-dark); font-size: clamp(22px, 4vw, 34px); }
.expansion-panel p { color: var(--muted); line-height: 1.55; }
.exp-code, .guess-display { margin: 18px 0; color: var(--purple-dark); font-size: clamp(30px, 8vw, 64px); font-weight: 950; letter-spacing: .14em; text-align: center; }
.exp-history { max-height: 190px; margin-top: 15px; padding: 12px 15px; overflow: auto; border-radius: 14px; background: #f2edf5; line-height: 1.6; }
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; width: min(100%, 560px); margin: 18px auto; }
.exp-grid.five { grid-template-columns: repeat(5, 1fr); }.exp-grid.three { grid-template-columns: repeat(3, 1fr); }
.exp-grid button { min-width: 0; min-height: 58px; padding: 7px; border: 1px solid #cfc3d6; border-radius: 13px; color: var(--purple-dark); background: white; font-weight: 900; touch-action: manipulation; }
.exp-light { aspect-ratio: 1; border-radius: 18px !important; background: #dcd3e3 !important; box-shadow: inset 0 -7px 11px #44355218; }.exp-light.on { color: #523907 !important; background: var(--gold) !important; box-shadow: 0 0 26px #f3c85da8; }
.exp-number { aspect-ratio: 1; font-size: clamp(17px, 5vw, 28px); }.exp-number.selected { outline: 5px solid #f3c85d; outline-offset: -5px; }.exp-number.n2 { background: #f5eef8; }.exp-number.n4 { background: #eadff1; }.exp-number.n8 { color: white; background: #9b78bd; }.exp-number.n16, .exp-number.n32 { color: white; background: var(--coral); }.exp-number.n64, .exp-number.n128, .exp-number.n256 { color: #3b2b0d; background: var(--gold); }
.exp-slide { aspect-ratio: 1; font-size: clamp(17px, 5vw, 29px); }.exp-slide.empty { color: transparent; border-style: dashed; background: #eee8f1; box-shadow: none; }
.exp-sequence { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 48px; margin: 13px 0; }.exp-sequence span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 12px; color: white; background: var(--purple); font-size: 21px; font-weight: 900; }
.exp-seq-button { aspect-ratio: 1; font-size: 24px; transition: transform .12s ease, filter .12s ease; }.exp-seq-button.active { filter: brightness(1.5); transform: scale(.92); }
.exp-ttt { aspect-ratio: 1; font-size: clamp(25px, 7vw, 46px); }.exp-ttt.you { color: white !important; background: var(--purple) !important; }.exp-ttt.ai { color: white !important; background: var(--coral) !important; }
.exp-reversi { gap: 4px; padding: 7px; border-radius: 17px; background: #3d795d; }.exp-rev-cell { position: relative; aspect-ratio: 1; min-height: 0 !important; padding: 8%; border: 1px solid #ffffff28 !important; border-radius: 7px !important; background: #70b58d !important; }.exp-rev-cell i { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 -5px 8px #0004, 0 3px 5px #17362950; }.exp-rev-cell.p1 i { background: #f4edf7; }.exp-rev-cell.p2 i { background: #4a345c; }
.race-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 18px 0; }.race-track > span { display: grid; place-items: center; min-height: 46px; padding: 4px; border: 1px solid #d9cfe0; border-radius: 12px; color: var(--purple-dark); background: linear-gradient(145deg,#f6f2f8,#e7f1ed); font-size: 12px; font-weight: 900; }.race-track > span:first-child, .race-track > span:last-child { color: white; background: var(--purple); }
.exp-peg { aspect-ratio: 1; border-radius: 50% !important; background: #ece5f0 !important; }.exp-peg.filled::after { content: ''; display: block; width: 66%; aspect-ratio: 1; margin: auto; border-radius: 50%; background: var(--purple); box-shadow: inset 0 -5px 8px #23172f44; }.exp-peg.selected { background: var(--gold) !important; }

/* Version 2.18: Brettspiele 17 bis 20 */
.board-first-version { width: min(760px, 100%); }
.board-version-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.board-version-heading h3 { margin: 2px 0 0; }
.board-version-heading > div:first-child > span { color: var(--purple); font-size: .7rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.board-score { display: grid; grid-template-columns: repeat(3, auto); gap: 1px 10px; align-items: baseline; padding: 10px 14px; border-radius: 15px; background: #f0e9f4; text-align: center; }
.board-score b { font-size: 1.3rem; }.board-score small { color: #685875; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.board-option-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.board-option-row label { color: #574765; font-size: .73rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.board-option-row select { width: 100%; min-height: 44px; margin-top: 5px; padding: 8px 12px; border: 1px solid #d7c9df; border-radius: 12px; color: var(--purple-dark); background: #fff; font: inherit; text-transform: none; }
.board-turn { min-height: 24px; margin: 7px 0 12px; color: #5e4c6d; font-weight: 850; text-align: center; }
.board-ttt { width: min(420px, 100%); margin-inline: auto; }
.board-cell { min-height: 0 !important; border: 2px solid #d8c9df !important; border-radius: 18px !important; background: linear-gradient(145deg, #fff, #f1ebf4) !important; }
.board-cell.winning { outline: 5px solid #ffd86a; outline-offset: -7px; transform: scale(.96); }
.board-disc-key { display: flex; align-items: center; gap: 7px; color: #665574; font-size: .75rem; font-weight: 850; }
.board-disc-key i { width: 20px; aspect-ratio: 1; border-radius: 50%; background: #f4edf7; box-shadow: inset 0 -3px 5px #0003; }.board-disc-key i:nth-of-type(2) { margin-left: 6px; background: #4a345c; }
.board-reversi { display: grid; grid-template-columns: repeat(6, 1fr); width: min(540px, 100%); margin-inline: auto; }
.exp-rev-cell.legal::after { content: ''; position: absolute; inset: 35%; border-radius: 50%; background: #ffe082; box-shadow: 0 0 0 4px #ffe08250; }
.race-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0; }.race-legend span { padding: 6px 9px; border-radius: 999px; color: #5a4968; background: #f2ebf5; font-size: .72rem; font-weight: 850; }
.board-race { grid-template-columns: repeat(var(--race-cols, 6), 1fr); }
.board-race > span { grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; min-height: 58px; }.board-race > span small { opacity: .7; }.board-race > span b { font-size: 1rem; }.board-race > span i { grid-column: 1 / -1; min-height: 18px; color: var(--purple); font-size: .9rem; font-style: normal; letter-spacing: 4px; }
.board-race > span.special { background: linear-gradient(145deg, #fff6c7, #e7f2ec); }.board-race > span.goal { color: #fff; background: linear-gradient(145deg, var(--purple), #315f71); }
.dice-result { display: grid; place-items: center; min-width: 82px; min-height: 58px; border-radius: 18px; color: #fff; background: var(--purple); font-size: 1.35rem; font-weight: 950; box-shadow: 0 8px 20px #3f285d35; }.dice-result.rolling { animation: board-die-pop .35s ease; }
@keyframes board-die-pop { 35% { transform: rotate(8deg) scale(1.18); } }
.board-goal { padding: 9px 13px; border-radius: 13px; color: #fff; background: var(--purple); font-size: .78rem; font-weight: 850; }.board-goal b { font-size: 1.35rem; }
.board-peg { display: grid; width: min(540px, 100%); margin-inline: auto; gap: 7px; }.board-peg.peg-5 { grid-template-columns: repeat(5, 1fr); }.board-peg.peg-7 { grid-template-columns: repeat(7, 1fr); }
.board-peg .exp-peg { min-height: 0 !important; border: 2px solid #ddcfe4 !important; }.board-peg .exp-peg.target { background: #fff0a9 !important; box-shadow: inset 0 0 0 5px #f0c95b; }.board-peg .exp-peg.blocked { visibility: hidden; pointer-events: none; }
.board-peg .exp-peg.selected::after { background: #fff; box-shadow: inset 0 -5px 8px #23172f44, 0 0 0 5px #efc659; }

@media (max-width: 620px) {
  .board-version-heading { align-items: flex-start; }.board-option-row { grid-template-columns: 1fr; }.board-score { padding: 8px; }.board-reversi { gap: 2px; padding: 4px; }.board-race { gap: 3px; }.board-race > span { min-height: 48px; padding: 2px; }.board-peg { gap: 4px; }
}
.shape-board { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0; }.shape-board button { width: 76px; height: 76px; border-radius: 18px; font-size: 36px; }
.guess-range { width: 100%; margin: 16px 0 24px; accent-color: var(--purple); }
.reaction-pad { display: grid; place-items: center; width: min(100%, 520px); min-height: 260px; margin: 18px auto; border: 0; border-radius: 26px; color: white; background: #8b7b95; font-size: clamp(25px, 7vw, 44px); font-weight: 950; }.reaction-pad.waiting { background: var(--coral); }.reaction-pad.go { background: var(--green); box-shadow: 0 0 36px #65b98f66; }
.tower-zone { position: relative; width: min(100%, 560px); height: 340px; margin: 18px auto; overflow: hidden; border-radius: 20px; background: linear-gradient(#d9eff7 0 72%,#a8d49b 72%); }.tower-base, .tower-moving, .tower-zone i { position: absolute; left: 35%; bottom: 0; width: 30%; height: 26px; border-radius: 7px 7px 3px 3px; background: var(--purple); }.tower-moving { bottom: auto; top: 18px; background: var(--coral); }.tower-zone i { background: var(--gold); }
.road-board { display: grid; grid-template-columns: repeat(7, 1fr); width: min(100%, 520px); margin: 18px auto; overflow: hidden; border: 6px solid #4f3c5d; border-radius: 17px; }.road-cell { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: #9bd096; }.road-cell.r1, .road-cell.r2, .road-cell.r4, .road-cell.r5 { background: #6f6a72; }.road-cell.r1::after, .road-cell.r2::after, .road-cell.r4::after, .road-cell.r5::after { content: ''; position: absolute; left: 0; right: 0; top: 48%; border-top: 2px dashed #eee9; }.road-cell.car::before { content: '\1F697'; position: relative; z-index: 1; font-size: clamp(16px, 4vw, 29px); }.road-cell.player::before { content: '\1F438'; position: relative; z-index: 2; font-size: clamp(18px, 4vw, 31px); }
.garden-cell { aspect-ratio: 1; font-size: clamp(21px, 5vw, 34px); }.garden-cell[data-kind="water"] { background: #d8eef8; }.garden-cell[data-kind="flower"] { background: #fff0f4; }.garden-cell[data-kind="tree"] { background: #def0de; }
.domino-chain { display: flex; gap: 5px; min-height: 68px; margin: 18px 0; padding: 12px; overflow-x: auto; border-radius: 16px; background: #eee7f2; }.domino-hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 18px 0; }
.domino-tile, .domino-button { display: grid; grid-template-rows: 1fr 1fr; flex: 0 0 44px; width: 44px; height: 72px; padding: 3px; border: 1px solid #bcaec5; border-radius: 9px; color: var(--purple-dark); background: white; box-shadow: 0 5px 10px #33243f1c; font-size: 17px; font-weight: 900; }.domino-tile b, .domino-button b { display: grid; place-items: center; }.domino-tile b + b, .domino-button b + b { border-top: 2px solid #8d779d; }
.dice-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin: 24px 0; }.dice-button { min-height: 88px !important; border: 3px solid #d8cfde !important; border-radius: 18px !important; color: var(--purple-dark) !important; background: white !important; font-size: clamp(36px, 8vw, 58px); }.dice-button.held { border-color: var(--gold) !important; background: #fff6d8 !important; transform: translateY(-5px); }
.card-top { display: grid; place-items: center; min-height: 128px; margin: 12px 0; border-radius: 18px; background: #ece5f0; }.color-hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 18px 0; }.color-card { width: 72px; height: 104px; border: 4px solid #fff !important; border-radius: 14px !important; color: white !important; box-shadow: 0 7px 15px #2f213c30; font-size: 22px; font-weight: 900; }.color-card.violet { background: var(--purple) !important; }.color-card.coral { background: var(--coral) !important; }.color-card.green { background: var(--green) !important; }.color-card.blue { background: #4e89b8 !important; }
.sea-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; width: min(100%, 520px); margin: 18px auto; padding: 8px; border-radius: 18px; background: #5c98bd; }.sea-cell { aspect-ratio: 1; min-height: 0 !important; padding: 0; border: 1px solid #ffffff38 !important; border-radius: 9px !important; color: white !important; background: #7db5d2 !important; font-size: clamp(17px, 4vw, 28px); }.sea-cell.hit { color: #4b3408 !important; background: var(--gold) !important; }.sea-cell.miss { background: #5d8fac !important; }
.pebble-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }.pebble-pit { min-height: 100px !important; border: 5px solid #d8cbb9 !important; border-radius: 50% !important; color: #5b4431 !important; background: #efe3cf !important; box-shadow: inset 0 8px 15px #553d2424; font-weight: 900; }.pebble-pit.player { color: white !important; border-color: #9071a5 !important; background: var(--purple) !important; }
.tower-rods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-height: 300px; margin: 20px 0; }.tower-rod { position: relative; display: flex; align-items: center; flex-direction: column-reverse; justify-content: flex-start; gap: 4px; min-height: 290px !important; padding: 18px 7px 16px; border: 2px solid #d6ccdc !important; border-radius: 18px !important; background: linear-gradient(90deg,transparent 47%,#8e789e 47% 53%,transparent 53%), linear-gradient(#eff4f3,#e2edf0) !important; }.tower-rod::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: 11px; height: 10px; border-radius: 6px; background: #705484; }.tower-rod i { position: relative; z-index: 1; display: block; height: 28px; border-radius: 7px; background: var(--coral); box-shadow: inset 0 -5px 7px #6e2f3028; }.tower-rod.selected { border-color: var(--gold) !important; box-shadow: 0 0 0 4px #f3c85d44; }
.mosaic-top { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: min(calc(100% - 48px), 500px); margin: 0 0 5px auto; }.mosaic-top b, .mosaic-left b { display: grid; place-items: center; color: var(--purple-dark); font-size: 18px; }.mosaic-wrap { display: grid; grid-template-columns: 44px 1fr; gap: 5px; width: min(100%, 548px); margin: 15px auto; }.mosaic-left { display: grid; grid-template-rows: repeat(5, 1fr); gap: 4px; }.mosaic-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }.mosaic-cell { aspect-ratio: 1; min-height: 0 !important; padding: 0; border: 1px solid #cfc3d6 !important; border-radius: 9px !important; color: #a28fac !important; background: white !important; }.mosaic-cell.on { color: white !important; background: var(--purple) !important; }
.number-path-cell { aspect-ratio: 1; font-size: clamp(19px, 5vw, 30px); }.number-path-cell.done { color: white !important; background: var(--green) !important; opacity: .62; }
.math-wall { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, 60px); gap: 7px; max-width: 560px; margin: 22px auto; }.math-wall .brick { display: grid; place-items: center; border: 2px solid #d2a956; border-radius: 10px; color: #513a0b; background: #f6d77e; font-size: 24px; }.math-wall .b0 { grid-column: 1 / 3; grid-row: 3; }.math-wall .b1 { grid-column: 3 / 5; grid-row: 3; }.math-wall .b2 { grid-column: 5 / 7; grid-row: 3; }.math-wall .b3 { grid-column: 2 / 4; grid-row: 2; }.math-wall .b4 { grid-column: 4 / 6; grid-row: 2; }.math-wall .b5 { grid-column: 3 / 5; grid-row: 1; color: white; border-color: var(--purple); background: var(--purple); }
.clock-face { position: relative; width: min(70vw, 280px); aspect-ratio: 1; margin: 20px auto; border: 12px solid var(--purple); border-radius: 50%; background: radial-gradient(circle,#fff 0 7%,transparent 8%), repeating-conic-gradient(from -1deg,#d2c7d8 0 2deg,transparent 2deg 30deg), white; box-shadow: 0 14px 28px #33244024; }.clock-face::after { content: '12'; position: absolute; top: 8px; left: 50%; color: var(--purple-dark); font-weight: 900; transform: translateX(-50%); }.clock-face i, .clock-face b { position: absolute; left: calc(50% - 4px); bottom: 50%; width: 8px; border-radius: 8px; background: var(--purple-dark); transform-origin: 50% 100%; }.clock-face i { height: 29%; }.clock-face b { height: 40%; width: 5px; left: calc(50% - 2.5px); background: var(--coral); }
.sorting-belt { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 150px; margin: 20px 0; padding: 25px 15px; border: 8px solid #657279; border-radius: 18px; background: repeating-linear-gradient(90deg,#ccd5d7 0 34px,#b5c0c3 34px 68px); }.sorting-box { min-width: 68px; min-height: 68px; border: 3px solid #b98d4e !important; border-radius: 13px !important; color: #543c16 !important; background: #e7bd78 !important; font-size: 21px; font-weight: 900; box-shadow: 0 7px 10px #30211222; }
.bridge-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: min(100%, 520px); margin: 18px auto; padding: 7px; border-radius: 17px; background: #5b99be; }.bridge-cell { aspect-ratio: 1; min-height: 0 !important; border: 1px solid #ffffff30 !important; border-radius: 8px !important; color: white !important; background: #74add0 !important; font-size: clamp(18px, 5vw, 31px); }.bridge-cell.rock { color: #4c3d32 !important; background: #8da0a4 !important; }.bridge-cell.path { color: #4e3516 !important; background: #deb875 !important; }
.goal-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(100%, 500px); margin: 18px auto; padding: 18px; border: 9px solid white; border-radius: 18px; background: #4d8c63; box-shadow: 0 14px 28px #23402d32; }.goal-hole { aspect-ratio: 1; min-height: 0 !important; border: 4px solid #ffffff80 !important; border-radius: 50% !important; color: #ffffff55 !important; background: #214b31 !important; font-size: clamp(25px, 7vw, 46px); }.goal-hole.target { color: #553a05 !important; border-color: #fff4bf !important; background: var(--gold) !important; box-shadow: 0 0 28px #f3c85d99; }
.flight-grid { display: grid; grid-template-columns: repeat(7, 1fr); width: min(100%, 560px); margin: 18px auto; overflow: hidden; border: 7px solid #6d5790; border-radius: 18px; background: linear-gradient(#71bde0,#d9f2f6); }.flight-cell { position: relative; aspect-ratio: 1; }.flight-cell.cloud::after { content: '☁'; position: absolute; inset: 0; display: grid; place-items: center; color: white; font-size: clamp(18px, 5vw, 33px); text-shadow: 0 3px 5px #46758a55; }.flight-cell.balloon::before { content: '🎈'; position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; font-size: clamp(20px, 5vw, 35px); }
.space-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: min(100%, 500px); margin: 18px auto; padding: 9px; border: 7px solid #4b3865; border-radius: 18px; background: radial-gradient(circle at 20% 30%,#fff 0 1px,transparent 2px), radial-gradient(circle at 75% 60%,#fff 0 1px,transparent 2px), #20172f; background-size: 42px 42px,58px 58px; }.space-cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; color: #ffe476; font-size: clamp(20px, 6vw, 38px); }.space-cell.rock { color: #887c91; }
.warehouse-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; width: min(100%, 500px); margin: 18px auto; padding: 7px; border-radius: 16px; background: #8f7359; }.warehouse-cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; color: white; background: #c5a780; font-size: clamp(18px, 5vw, 31px); }.warehouse-cell.wall { background: #5a465e; box-shadow: inset 0 0 0 3px #ffffff18; }.warehouse-cell.goal { color: #5c3b06; background: var(--gold); }
.market-board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }.market-board div { padding: 18px; border: 1px solid #d8cfde; border-radius: 16px; background: #f4eff6; text-align: center; }.market-board span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }.market-board strong { display: block; margin-top: 6px; color: var(--purple-dark); font-size: 28px; }
.zoo-cell { aspect-ratio: 1; font-size: clamp(22px, 6vw, 36px); background: #edf5e8 !important; }
.large-text { font-size: 112.5%; }
.high-contrast { --ink: #0e0b11; --muted: #403945; --line: #bdb3c3; --canvas: #fff; --purple: #4b216f; }
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (max-width: 850px) {
  .portal-header, main, footer { padding-left: 20px; padding-right: 20px; }
  .portal-intro { align-items: start; flex-direction: column; }
  .filter-row { grid-template-columns: 1fr; gap: 6px; }
  .filter-row > span { padding-top: 0; }
  .audience-pills { justify-content: flex-start; }
  .featured, .worlds-feature, .category-grid, .game-layout, .game-card, .worlds-layout, .collection-layout { grid-template-columns: 1fr; }
  .collection-sidebar { border-top: 1px solid var(--line); border-left: 0; }
  .featured-art { min-height: 380px; }
  .worlds-preview { min-height: 430px; }
  .categories { padding-top: 70px; }
  .game-stage { min-height: 0; }
  .pairs-preview { min-height: 300px; }
  .jump-preview { min-height: 300px; }
  .duel-preview, .blocks-preview, .maze-preview { min-height: 300px; }
  .four-preview { min-height: 300px; }
  .mills-preview { min-height: 300px; }
  .sudoku-preview { min-height: 300px; }
  .mills-stage { min-height: 0; }
  .sudoku-stage { min-height: 0; }
  .patience-stage, .backgammon-stage, .draughts-stage, .wordsearch-stage, .mines-stage, .jump-stage, .arcade-stage { min-height: 0; }
  .worlds-stage { min-height: 540px; }
}
@media (max-width: 560px) {
  .portal-header { align-items: flex-start; }
  .header-actions { flex-direction: column; }
  .quiet-button, .install-button { min-height: 39px; padding-inline: 12px; font-size: 13px; }
  .featured { border-radius: 26px; }
  .worlds-feature { border-radius: 26px; }
  .featured-copy { padding: 30px 24px; }
  .worlds-feature-copy { padding: 34px 24px; }
  .game-browser { padding: 22px 18px; border-radius: 22px; }
  .quality-promise { align-items: flex-start; flex-direction: column; gap: 8px; }
  .filter-heading { align-items: start; flex-direction: column; gap: 10px; }
  .filter-chips { flex-wrap: nowrap; margin-inline: -18px; padding: 2px 18px 8px; overflow-x: auto; scrollbar-width: thin; }
  .filter-chip { flex: 0 0 auto; }
  .featured-art { min-height: 310px; }
  .worlds-preview { min-height: 350px; }
  .category-grid article { grid-template-columns: 1fr; }
  .category-grid article > b { grid-column: 1; }
  .game-dialog { width: 100%; max-height: 100dvh; border-radius: 0; }
  .game-layout { padding: 15px; }
  .pairs-board { gap: 7px; }
  .pair-card { border-radius: 12px; }
  .score-grid.three { gap: 6px; }
  .score-grid.three div { padding-inline: 7px; }
  .four-stage { padding: 10px; }
  .column-controls, .four-board { gap: 4px; }
  .four-board { padding: 7px; border-radius: 15px; }
  .column-controls button { min-height: 41px; }
  .four-options { grid-template-columns: 1fr; }
  .mills-stage { padding: 8px; }
  .mills-point { width: clamp(30px, 9vw, 44px); border-width: 4px; }
  .sudoku-stage { padding: 8px; }
  .sudoku-board { border-radius: 12px; }
  .sudoku-cell { font-size: clamp(18px, 7vw, 29px); }
  .patience-stage { padding: 12px 5px; }.patience-pyramid { height: 405px; }.pyramid-card { top: calc(var(--row) * 54px); }
  .backgammon-stage { padding: 8px; }.backgammon-board { min-height: 370px; padding-inline: 15px; border-width: 8px; border-radius: 14px; }.backgammon-bar-button { inset-inline: calc(50% - 17px); }.bg-piece { width: clamp(17px, 6vw, 27px); }
  .draughts-stage, .wordsearch-stage, .mines-stage { padding: 8px; }.draughts-board { border-width: 7px; border-radius: 13px; }.draughts-piece { border-width: 2px; }.wordsearch-board { border-width: 4px; border-radius: 11px; }.mines-board { border-width: 4px; }
  .jump-stage { padding: 8px; }.jump-touch-controls { grid-template-columns: repeat(3, minmax(64px, 1fr)); width: 100%; }.jump-touch-controls button { width: 100%; }
  .arcade-stage, .maze-stage { padding: 8px; }.arcade-touch { grid-template-columns: repeat(2, minmax(70px, 1fr)); width: 100%; }.maze-controls { grid-template-columns: repeat(3, minmax(58px, 1fr)); width: 100%; }
  .collection-stage { padding: 10px; }.collection-panel { padding: 16px; border-radius: 17px; }.choice-grid, .location-grid, .stat-grid { grid-template-columns: 1fr; }.location-grid button { min-height: 62px; }.bubble-board { gap: 3px; }.collection-preview { min-height: 260px; }
  .expansion-panel { padding: 14px; border-radius: 17px; }.exp-grid { gap: 5px; }.exp-grid button { min-height: 48px; }.shape-board button { width: 62px; height: 62px; }.reaction-pad { min-height: 220px; }.tower-zone { height: 290px; }.road-board { border-width: 4px; }
  .dice-row { gap: 5px; }.dice-button { min-height: 62px !important; border-radius: 12px !important; }.pebble-board { gap: 6px; }.pebble-pit { min-height: 72px !important; font-size: 11px; }.tower-rods { min-height: 245px; }.tower-rod { min-height: 235px !important; }.math-wall { grid-template-rows: repeat(3, 48px); }.goal-wall { gap: 7px; padding: 10px; border-width: 5px; }.market-board div { padding: 12px 7px; }
  .worlds-layout { padding: 10px; }.worlds-topbar { grid-template-columns: repeat(3, 1fr); }.worlds-stage { min-height: 430px; }.worlds-map { grid-template-columns: repeat(6, minmax(34px, 1fr)); width: 99%; padding: 11px; border-width: 7px; gap: 3px; }.world-cell { border-radius: 9px; font-size: clamp(15px, 6vw, 26px); }.world-cell small { display: none; }.worlds-buildings { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Vollständiges Skat */
.skat-settings, .skat-table, .skat-result {
  width: 100%;
  min-height: 100%;
  padding: clamp(16px, 3vw, 30px);
  border-radius: 24px;
  background: radial-gradient(circle at 8% 4%, rgba(116, 218, 176, .2), transparent 28%), linear-gradient(150deg, #f9fcfa, #f2edf8);
  color: #22334a;
}
.skat-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 22px; }
.skat-hero h3, .skat-choice h3, .skat-result h3 { margin: 10px 0 8px; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.05; }
.skat-hero p, .skat-choice p { max-width: 760px; margin: 0; color: #5d687b; }
.skat-preset-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.skat-preset-row button {
  padding: 10px 14px; border: 1px solid rgba(82, 56, 112, .18); border-radius: 999px;
  background: #fff; color: #4d3863; font: inherit; font-weight: 800; cursor: pointer;
}
.skat-preset-row button:hover, .skat-preset-row button:focus-visible { background: #6b4a8c; color: #fff; }
.skat-settings-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.skat-settings-grid label, .skat-contract-grid label { display: grid; gap: 6px; color: #566176; font-size: .83rem; font-weight: 800; }
.skat-settings-grid select, .skat-contract-grid select {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid rgba(58, 75, 101, .18);
  border-radius: 12px; background: #fff; color: #24334a; font: inherit; font-weight: 750;
}
.skat-toggle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.skat-toggle-grid label, .skat-contract-grid label:has(input) {
  display: flex; gap: 8px; align-items: center; min-height: 42px; padding: 9px 11px;
  border-radius: 12px; background: rgba(255, 255, 255, .8); color: #37445a; font-size: .82rem; font-weight: 750;
}
.skat-toggle-grid input, .skat-contract-grid input { width: 19px; height: 19px; accent-color: #6c4b8c; }
.skat-advanced { margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(73, 91, 118, .14); border-radius: 15px; background: rgba(255, 255, 255, .65); }
.skat-advanced summary { cursor: pointer; color: #4f3b67; font-weight: 900; }
.skat-advanced[open] summary { margin-bottom: 12px; }
.skat-rule-note { margin: 18px 0 0; padding: 12px 14px; border-left: 4px solid #60b88d; border-radius: 10px; background: rgba(83, 185, 135, .1); color: #476153; font-size: .86rem; }
.skat-score { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.skat-bock { background: #ffe3a5 !important; color: #624500 !important; }
.skat-seats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.skat-seat { display: grid; gap: 2px; padding: 11px 13px; border: 1px solid rgba(49, 68, 95, .13); border-radius: 14px; background: rgba(255, 255, 255, .78); transition: .18s ease; }
.skat-seat.active { border-color: #6f4f90; background: #f1e9f8; box-shadow: 0 0 0 3px rgba(111, 79, 144, .1); }
.skat-seat small { color: #788398; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.skat-seat strong { color: #27364d; }
.skat-seat span { color: #667187; font-size: .77rem; }
.skat-bid-display { display: grid; place-items: center; min-height: 150px; margin: 14px 0; padding: 18px; border-radius: 20px; background: linear-gradient(145deg, #233b55, #344c63); color: #fff; text-align: center; }
.skat-bid-display small { color: #b8dcca; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.skat-bid-display strong { font-size: clamp(2.7rem, 8vw, 5rem); line-height: 1; }
.skat-bid-display p { margin: 4px 0 0; color: #eef6f1; }
.skat-hand { align-items: flex-start; padding-bottom: 10px; }
.skat-hand .playing-card { margin-right: -14px; }
.skat-hand .playing-card:last-child { margin-right: 0; }
.skat-hand .playing-card:disabled { filter: grayscale(.55); opacity: .46; transform: translateY(5px); }
.skat-hand .playing-card:not(:disabled):hover, .skat-hand .playing-card:not(:disabled):focus-visible { transform: translateY(-8px); z-index: 5; }
.skat-log { display: grid; gap: 5px; max-height: 120px; margin: 14px 0 0; padding: 10px 10px 10px 30px; overflow: auto; border-radius: 12px; background: rgba(35, 54, 77, .06); color: #5a6578; font-size: .78rem; }
.skat-choice { margin: 16px 0; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .78); box-shadow: 0 12px 35px rgba(39, 49, 69, .08); }
.skat-contract-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.skat-value-preview { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #edf6f0; color: #2e6348; font-weight: 800; }
.skat-contract-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.skat-contract-banner > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #263d57; color: #fff; }
.skat-contract-banner small { color: #a8d8bf; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.skat-trick { display: flex; gap: 14px; align-items: center; justify-content: center; min-height: 160px; margin: 12px 0; padding: 16px; border: 4px solid rgba(255, 255, 255, .7); border-radius: 50% / 24%; background: radial-gradient(circle, rgba(80, 158, 119, .95), rgba(39, 103, 74, .98)); color: #fff; box-shadow: inset 0 0 35px rgba(0, 0, 0, .16); }
.skat-trick p { margin: 0; color: #eef8f1; font-weight: 800; }
.skat-played { display: grid; gap: 4px; place-items: center; }
.skat-played small { color: #f2fff6; font-size: .72rem; font-weight: 800; }
.skat-open-hand { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .72); }
.skat-hint-card { box-shadow: 0 0 0 4px #f0b93f, 0 10px 22px rgba(240, 185, 63, .35) !important; }
.skat-hidden-skat { display: flex; gap: 10px; justify-content: center; padding: 30px; }
.skat-result { text-align: center; }
.skat-result-score { margin: 12px 0 20px; color: #573c70; font-size: clamp(1.4rem, 4vw, 2.3rem); font-weight: 950; }
.skat-result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.skat-result-grid > div { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .84); }
.skat-result-grid small { color: #778297; font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.skat-warning, .skat-bock-note { margin: 14px auto; padding: 11px 13px; border-radius: 10px; font-weight: 800; }
.skat-warning { background: #ffe3df; color: #8b3d35; }
.skat-bock-note { background: #fff0bd; color: #735800; }
.skat-history { display: grid; gap: 5px; max-width: 600px; margin: 10px auto 0; padding: 0; list-style: none; }
.skat-history li { display: flex; justify-content: space-between; padding: 8px 11px; border-radius: 9px; background: rgba(255, 255, 255, .72); }
@media (max-width: 1050px) {
  .game-layout, .collection-layout { grid-template-columns: 1fr; }
  .game-sidebar { padding: 10px 5px 2px; }
  .collection-sidebar { border-top: 1px solid var(--line); border-left: 0; }
  .game-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .skat-settings-grid, .skat-toggle-grid, .skat-contract-grid, .skat-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skat-hero { grid-template-columns: 1fr; }
  .skat-preset-row { justify-content: flex-start; }
}

/* Version 2.34.5: klare Portalwahl, iPad-sichere Bedienung und stabiles inselsturm-Vollbild. */
body.portal-catalog-landing main > :not(.portal-intro):not(.portal-category-hub),
body.portal-catalog-open main > :not(.game-browser):not(.compact-catalog):not(.empty-results) { display: none !important; }
body.portal-catalog-landing .portal-intro { display: none !important; }
body.portal-catalog-landing .portal-intro h1 { max-width: 920px; font-size: clamp(48px, 8vw, 102px); }
.portal-category-hub {
  width: min(1500px, calc(100% - 48px)); margin: 0 auto 70px; padding: clamp(24px, 4vw, 54px);
  border: 1px solid #cfe2ee; border-radius: 30px; background: #fff; box-shadow: 0 24px 60px rgba(6,34,68,.1);
}
.category-hub-heading { max-width: 820px; margin-bottom: 28px; }
.category-hub-heading h2 { margin: 5px 0 9px; font-size: clamp(34px, 5vw, 64px); letter-spacing: -.045em; }
.category-hub-heading p:last-child { color: #586d86; font-size: clamp(16px, 2vw, 21px); }
.category-hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-hub-grid button {
  display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto; gap: 2px 13px; min-height: 112px;
  padding: 20px; border: 1px solid #cfe2ee; border-radius: 21px; color: #061f55; background: linear-gradient(145deg,#f8fcff,#edf8ff);
  text-align: left; box-shadow: 0 10px 26px rgba(6,34,68,.07); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.category-hub-grid button:hover,.category-hub-grid button:focus-visible { transform: translateY(-3px); border-color: #0b7cff; box-shadow: 0 16px 34px rgba(6,71,145,.16); }
.category-hub-grid button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: #fff; background: linear-gradient(145deg,#087cff,#00b9bf); font-size: 26px; font-weight: 950; }
.category-hub-grid strong { align-self: end; font-size: 18px; }
.category-hub-grid small { color: #657991; }

body.portal-catalog-open .game-browser { width: min(1500px, calc(100% - 48px)); margin: 30px auto 18px; padding: 25px; }
body.portal-catalog-open .filter-heading { margin-bottom: 16px; }
body.portal-catalog-open .filter-heading h2 { font-size: clamp(34px, 5vw, 56px); }
body.portal-catalog-open .discovery-start { grid-template-columns: auto minmax(260px,1fr) auto; align-items: end; }
.back-to-categories { min-height: 52px; white-space: nowrap; }
.filter-drawer { margin-top: 13px; border: 1px solid #d7e5ef; border-radius: 17px; background: #f8fcff; }
.filter-drawer > summary { padding: 15px 18px; color: #09265b; font-weight: 900; cursor: pointer; }
.filter-drawer[open] > summary { border-bottom: 1px solid #d7e5ef; }
.filter-drawer .filter-row { padding: 15px 18px; }
.difficulty-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.difficulty-chips button { min-height: 42px; padding: 8px 15px; border: 1px solid #cbdde9; border-radius: 999px; color: #17345e; background: #fff; font-weight: 850; }
.difficulty-chips button.active { border-color: #087cff; color: #fff; background: #087cff; }
body.portal-catalog-open .quality-promise,body.portal-catalog-open .recent-game { display: none; }
body.portal-catalog-open .discovery-actions { margin-top: 13px; }
.compact-catalog {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px;
  width: min(1500px, calc(100% - 48px)); margin: 0 auto 80px;
}
.compact-game-item {
  display: grid; grid-template-columns: 86px minmax(0,1fr) auto; gap: 14px; align-items: center; min-height: 116px;
  padding: 14px; border: 1px solid #d3e3ed; border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(6,34,68,.07);
}
.compact-game-item[hidden] { display: none !important; }
.compact-game-item > img { width: 86px; height: 86px; border-radius: 15px; object-fit: cover; background: #eaf5fb; }
.compact-game-item > div { min-width: 0; }
.compact-game-item small { color: #087cff; font-size: 11px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.compact-game-item h3 { margin: 2px 0 3px; color: #061f55; font-size: 20px; }
.compact-game-item p { display: -webkit-box; overflow: hidden; margin: 0 0 5px; color: #61748a; font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.compact-game-item div > span { color: #36506f; font-size: 11px; font-weight: 800; }
.compact-game-item aside { display: grid; gap: 8px; justify-items: stretch; min-width: 105px; }
.compact-game-item .compact-level { color: #516a84; font-size: 11px; text-align: center; }
.compact-game-item .play-button { min-height: 44px; padding: 9px 15px; }

.game-dialog,.game-dialog *:not(input):not(textarea):not(select) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.game-dialog img,.game-dialog canvas { -webkit-user-drag: none; user-drag: none; }
.game-help-button { width: 48px; min-width: 48px; font-size: 20px; font-weight: 950; }
.game-help-panel[hidden] { display: none !important; }
.game-help-panel {
  position: fixed; z-index: 1100; top: max(78px,calc(env(safe-area-inset-top) + 68px)); right: max(16px,env(safe-area-inset-right));
  width: min(430px,calc(100vw - 32px)); padding: 24px; border: 1px solid #c7e2f0; border-radius: 23px; color: #09265b; background: #fff;
  box-shadow: 0 24px 70px rgba(2,31,70,.28);
}
.game-help-panel > button { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #09265b; background: #edf7fc; font-size: 24px; }
.game-help-panel small { color: #087cff; font-weight: 950; letter-spacing: .1em; }
.game-help-panel h3 { margin: 7px 0; color: #061f55; font-size: 30px; }
.game-help-panel p { color: #425c78; line-height: 1.55; }
.game-help-panel em { color: #71859a; font-size: 12px; font-style: normal; }

#island-run-dialog[open]:not(.portal-fullscreen) { grid-template-columns: 1fr !important; grid-template-rows: auto minmax(0,1fr) !important; }
#island-run-dialog[open]:not(.portal-fullscreen) > .challenge-panel,
#island-run-dialog[open]:not(.portal-fullscreen) > .quality-dialog-hud { display: none !important; }
#island-run-dialog[open]:not(.portal-fullscreen) > .island-run-shell {
  grid-column: 1 !important; grid-row: 2 !important; width: auto !important; min-height: calc(100dvh - 130px) !important;
  margin: 14px clamp(12px,3vw,42px) 32px !important;
}
.island-run-stage { touch-action: pan-y; overscroll-behavior: contain; }
.island-run-controls,.island-run-toolbar,.island-run-controls button,.island-run-toolbar button { touch-action: none; }
.island-run-pause { background: rgba(1,20,48,.68) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.island-run-stage.is-paused canvas { filter: brightness(.72) saturate(.8) !important; }
.island-run-pause-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.island-run-pause-actions .quiet-button { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.12); }
#island-run-pause-exit[hidden] { display: none !important; }
.native-pause-dialog > .universal-pause-button,.native-pause-dialog > .universal-pause-overlay { display: none !important; }
.universal-pause-overlay { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(3,19,56,.88) !important; }

#island-run-dialog.portal-fullscreen {
  position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100dvh !important;
  max-width: none !important; max-height: none !important; overflow: hidden !important; touch-action: none; overscroll-behavior: none;
}
#island-run-dialog.portal-fullscreen > .island-run-shell { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100dvh !important; }
#island-run-dialog.portal-fullscreen .island-run-stage { position: absolute !important; inset: 0 !important; width: 100vw !important; height: 100dvh !important; touch-action: none; }
#island-run-dialog.portal-fullscreen .island-run-toolbar { right: max(150px,calc(env(safe-area-inset-right) + 140px)); }
#island-run-dialog.portal-fullscreen .island-run-pause { position: fixed !important; inset: 0 !important; z-index: 900 !important; }
#island-run-dialog.portal-fullscreen > .fullscreen-exit-button { z-index: 1200 !important; }

@media (max-width: 900px) {
  .category-hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .compact-catalog { grid-template-columns: 1fr; }
  body.portal-catalog-open .discovery-start { grid-template-columns: 1fr auto; }
  body.portal-catalog-open .back-to-categories { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 620px) {
  .portal-category-hub,.compact-catalog,body.portal-catalog-open .game-browser { width: calc(100% - 20px); }
  .category-hub-grid { grid-template-columns: 1fr; }
  .compact-game-item { grid-template-columns: 66px minmax(0,1fr); }
  .compact-game-item > img { width: 66px; height: 66px; }
  .compact-game-item aside { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; }
  .island-run-pause-actions { grid-template-columns: 1fr; }
}

/* Die Pause bleibt auch im echten Vollbild erreichbar, obwohl der Dialogkopf dort verschwindet. */
.fullscreen-pause-button { display: none !important; }
.game-dialog:fullscreen > .fullscreen-pause-button,
.game-dialog.portal-fullscreen > .fullscreen-pause-button {
  position: fixed !important; z-index: 240 !important;
  display: inline-flex !important; width: auto !important; min-width: 106px !important; max-width: none !important;
  height: auto !important; min-height: 48px !important; max-height: none !important;
  top: max(14px, env(safe-area-inset-top)) !important;
  right: max(174px, calc(env(safe-area-inset-right) + 158px)) !important;
  left: auto !important; bottom: auto !important; margin: 0 !important;
  color: #fff !important; border-color: rgba(255,255,255,.34) !important;
  background: rgba(3,19,56,.8) !important; backdrop-filter: blur(12px);
}
@media (max-width: 900px) {
  .game-dialog:fullscreen > .fullscreen-pause-button,
  .game-dialog.portal-fullscreen > .fullscreen-pause-button {
    right: max(186px, calc(env(safe-area-inset-right) + 178px)) !important;
    min-width: 48px !important; padding-inline: 11px !important;
  }
  .fullscreen-pause-button b { display: none; }
}

/* Version 2.32.0: freie, bewegte Spielwelten statt Kästchen-Spielfeldern. */
.motion-arena {
  position: relative;
  width: 100%;
  min-height: clamp(390px, 58dvh, 650px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: clamp(24px, 3vw, 42px);
  box-shadow: 0 30px 70px rgba(2,27,58,.28), inset 0 1px 0 rgba(255,255,255,.84);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.motion-score { position: relative; z-index: 8; margin-bottom: 12px; }
.motion-tip {
  position: absolute;
  z-index: 20;
  right: 18px;
  bottom: 16px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(2,27,58,.72);
  color: #fff;
  font-size: clamp(.7rem, 1.2vw, .9rem);
  font-weight: 850;
  letter-spacing: .03em;
  backdrop-filter: blur(8px);
}
.motion-controls button,
.motion-directions button { touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.motion-controls { display:grid !important; grid-template-columns:repeat(3,minmax(56px,78px)) !important; grid-template-rows:repeat(2,58px) !important; justify-content:center; gap:8px !important; flex:none !important; width:auto !important; }
.motion-controls button { min-width:0 !important; width:100% !important; min-height:58px; font-size:1.6rem; }
.motion-controls button:nth-child(1) { grid-column:2; grid-row:1; }
.motion-controls button:nth-child(2) { grid-column:1; grid-row:2; }
.motion-controls button:nth-child(3) { grid-column:2; grid-row:2; }
.motion-controls button:nth-child(4) { grid-column:3; grid-row:2; }
.goal-cheer { animation: motion-goal-cheer .48s ease-in-out 3 alternate !important; }
.hit { animation: motion-hit .18s linear 3 alternate !important; }
@keyframes motion-goal-cheer { to { transform: translate(-50%,-50%) scale(1.22) rotate(7deg); filter: drop-shadow(0 0 18px #ffe264); } }
@keyframes motion-hit { to { opacity: .3; filter: saturate(.2) brightness(1.7); } }

/* dribbelpfad */
.dribbel-arena {
  min-height: clamp(430px, 63dvh, 690px);
  background:
    linear-gradient(90deg, transparent 49.55%, rgba(255,255,255,.66) 49.55% 50.45%, transparent 50.45%),
    radial-gradient(circle at 50% 50%, transparent 0 13%, rgba(255,255,255,.58) 13.3% 13.9%, transparent 14.2%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 12.5%, rgba(1,67,42,.08) 12.5% 25%),
    linear-gradient(165deg, #29a86d, #08764c 72%, #03543d);
  perspective: 900px;
}
.dribbel-arena::before {
  content: '';
  position: absolute;
  inset: 5% 3%;
  border: 3px solid rgba(255,255,255,.68);
  border-radius: 12px;
  pointer-events: none;
}
.dribbel-crowd { position: absolute; z-index: -1; inset: 0 0 82%; background: radial-gradient(circle, #fff 0 2px, transparent 3px) 0 0/18px 15px, linear-gradient(#063b3e,#031c2a); opacity: .9; }
.dribbel-goal-scene { position: absolute; z-index: 3; left: 86%; top: 2.5%; width: 12%; height: 14%; border: 5px solid #f9fcff; border-bottom: 0; transform: perspective(180px) rotateX(-8deg); box-shadow: 0 8px 14px rgba(0,0,0,.26); }
.dribbel-goal-scene::before { content: ''; position: absolute; inset: 6px; background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255,255,255,.48) 10px 11px), repeating-linear-gradient(0deg, transparent 0 8px, rgba(255,255,255,.48) 9px 10px); }
.dribbel-goal-scene i,.dribbel-goal-scene b { position:absolute; bottom:-3px; width:12px; height:12px; border-radius:50%; background:#ffda55; box-shadow:0 0 16px #ffda55; }
.dribbel-goal-scene i { left:-8px; }.dribbel-goal-scene b { right:-8px; }
.dribbel-gate-scene { position:absolute; z-index:4; width:10%; height:7%; transform:translate(-50%,-50%); transition:.25s ease; }
.dribbel-gate-scene.g1 { left:25%; top:72%; }.dribbel-gate-scene.g2 { left:52%; top:49%; }.dribbel-gate-scene.g3 { left:76%; top:28%; }
.dribbel-gate-scene i,.dribbel-gate-scene b { position:absolute; bottom:0; width:9px; height:100%; border-radius:8px 8px 3px 3px; background:linear-gradient(#fff6a8,#f6b925); box-shadow:0 0 12px rgba(255,218,85,.9); }
.dribbel-gate-scene i { left:5%; }.dribbel-gate-scene b { right:5%; }
.dribbel-gate-scene::after { content:''; position:absolute; left:8%; right:8%; bottom:-2px; height:8px; border-radius:50%; border:3px solid #ffdc54; }
.dribbel-gate-scene.collected { opacity:.3; filter:grayscale(.6); transform:translate(-50%,-50%) scale(.75); }
.dribbel-barrier-scene { position:absolute; z-index:3; width:11%; height:5%; transform:translate(-50%,-50%); border:4px solid #fff; border-radius:9px; background:repeating-linear-gradient(135deg,#ef664e 0 12px,#fff 12px 24px); box-shadow:0 8px 14px rgba(0,0,0,.2); }
.dribbel-barrier-scene.b1 { left:37%; top:62%; }.dribbel-barrier-scene.b2 { left:63%; top:42%; }.dribbel-barrier-scene.b3 { left:48%; top:24%; width:13%; }
.dribbel-runner { position:absolute; z-index:10; width:52px; height:66px; transform:translate(-50%,-50%); transition:left .17s linear,top .17s linear,filter .2s; filter:drop-shadow(0 10px 7px rgba(0,0,0,.32)); }
.dribbel-runner i { position:absolute; left:15px; top:0; width:23px; height:23px; border-radius:50%; background:#a6633c; box-shadow:inset -5px -2px rgba(90,40,20,.24); }
.dribbel-runner b { position:absolute; left:10px; top:20px; width:34px; height:32px; border-radius:12px 12px 8px 8px; background:linear-gradient(90deg,#0667c8 0 48%,#eaf7ff 48% 58%,#0667c8 58%); }
.dribbel-runner em { position:absolute; left:25px; top:48px; width:21px; height:21px; border-radius:50%; background:radial-gradient(circle at 30% 25%,#fff 0 20%,#202b36 22% 34%,#fff 36% 57%,#202b36 59% 68%,#fff 70%); box-shadow:0 5px 7px rgba(0,0,0,.25); }
.dribbel-runner[data-facing="left"] em { left:-4px; }.dribbel-runner[data-facing="right"] em { left:36px; }.dribbel-runner[data-facing="up"] em { top:34px; }.dribbel-runner.blocked { animation:motion-hit .12s linear 2 alternate; }

/* straßenhüpfer */
.road-crossing-arena { min-height:clamp(430px,62dvh,680px); background:linear-gradient(#73d487 0 14%,#d7e6e5 14% 17%,#343e4d 17% 78%,#d7e6e5 78% 81%,#57bb6d 81%); }
.road-crossing-arena::before { content:''; position:absolute; inset:17% 0 22%; background:repeating-linear-gradient(0deg,transparent 0 13.5%,rgba(255,255,255,.7) 13.5% 14.4%,transparent 14.4% 25%); opacity:.5; }
.road-bank { position:absolute; z-index:2; left:0; width:100%; height:14%; display:grid; place-items:center; color:rgba(0,45,26,.58); font-weight:950; letter-spacing:.25em; }
.road-bank.target { top:0; }.road-bank.start { bottom:0; }
.road-lane { position:absolute; z-index:1; left:0; width:100%; height:12%; background:repeating-linear-gradient(90deg,transparent 0 8%,rgba(255,230,111,.75) 8% 12%,transparent 12% 20%) center/100% 4px no-repeat; }
.road-lane.lane-one { top:66%; }.road-lane.lane-two { top:51%; }.road-lane.lane-three { top:36%; }.road-lane.lane-four { top:21%; }
.road-car { position:absolute; z-index:8; width:clamp(54px,9%,86px); height:clamp(30px,5.5%,48px); transform:translate(-50%,-50%); border-radius:14px 23px 9px 9px; background:linear-gradient(165deg,#e85e57,#9d2132); box-shadow:0 12px 12px rgba(0,0,0,.28),inset 0 3px rgba(255,255,255,.42); will-change:left,top; }
.road-car.blue { background:linear-gradient(165deg,#4ca9ed,#075fa9); }.road-car.gold { background:linear-gradient(165deg,#ffd55f,#e58b18); }.road-car.green { background:linear-gradient(165deg,#62d399,#087a58); }
.road-car i { position:absolute; left:18%; right:18%; top:15%; height:34%; border-radius:8px 14px 3px 3px; background:linear-gradient(90deg,#bdeeff,#5a8fa8 48%,#bdeeff 52%); }
.road-car b::before,.road-car b::after { content:''; position:absolute; bottom:-6px; width:17px; height:17px; border-radius:50%; background:#152231; border:3px solid #68798a; }.road-car b::before { left:10%; }.road-car b::after { right:10%; }
.road-runner { position:absolute; z-index:12; width:46px; height:52px; transform:translate(-50%,-50%); transition:left .13s linear,top .13s linear; filter:drop-shadow(0 8px 5px rgba(0,0,0,.32)); }
.road-runner i { position:absolute; left:9px; top:0; width:28px; height:28px; border-radius:48% 48% 42% 42%; background:radial-gradient(circle at 28% 30%,#fff 0 3px,#15364b 4px 6px,transparent 7px),radial-gradient(circle at 72% 30%,#fff 0 3px,#15364b 4px 6px,transparent 7px),#4bd07b; }
.road-runner b { position:absolute; left:5px; top:23px; width:36px; height:25px; border-radius:50% 50% 35% 35%; background:#2cad61; }

/* ballonflug */
.balloon-arena { min-height:clamp(440px,64dvh,690px); background:linear-gradient(180deg,#126dc9 0%,#51c4eb 48%,#c4f0f4 100%); }
.balloon-arena::before { content:''; position:absolute; inset:0; background:linear-gradient(115deg,transparent 0 38%,rgba(255,255,255,.2) 45%,transparent 54%); animation:sky-shimmer 8s ease-in-out infinite alternate; }
.balloon-sun { position:absolute; z-index:1; right:9%; top:8%; width:90px; aspect-ratio:1; border-radius:50%; background:#ffe47b; box-shadow:0 0 0 22px rgba(255,228,123,.15),0 0 60px rgba(255,231,135,.7); }
.height-goal { position:absolute; z-index:2; left:2%; right:2%; top:5%; height:6%; border-top:4px dashed rgba(255,218,72,.95); color:#ffe260; font-weight:950; letter-spacing:.18em; text-align:center; text-shadow:0 2px 5px rgba(0,0,0,.35); }
.moving-cloud { position:absolute; z-index:5; width:clamp(70px,12%,125px); height:36px; transform:translate(-50%,-50%); border-radius:999px; background:rgba(255,255,255,.96); box-shadow:0 12px 20px rgba(17,67,110,.2); will-change:left,top; }
.moving-cloud.wide { width:clamp(105px,18%,175px); }.moving-cloud i,.moving-cloud b,.moving-cloud em { position:absolute; bottom:8px; border-radius:50%; background:inherit; }.moving-cloud i { left:12%; width:38px; height:38px; }.moving-cloud b { left:41%; width:54px; height:54px; }.moving-cloud em { right:8%; width:42px; height:42px; }
.balloon-player { position:absolute; z-index:11; width:66px; height:88px; transform:translate(-50%,-50%); transition:left .16s linear,top .16s linear; filter:drop-shadow(0 12px 9px rgba(0,38,72,.32)); }
.balloon-player i { position:absolute; left:9px; top:0; width:48px; height:58px; border-radius:50% 50% 45% 45%; background:repeating-linear-gradient(90deg,#ffcc49 0 9px,#ef5e67 9px 18px,#27a6cf 18px 27px); box-shadow:inset -7px -5px rgba(71,29,71,.18); }
.balloon-player i::after { content:''; position:absolute; left:17px; bottom:-10px; border:7px solid transparent; border-top:14px solid #a96333; }
.balloon-player b { position:absolute; left:21px; bottom:0; width:25px; height:20px; background:linear-gradient(#b9783d,#744321); border-radius:3px 3px 7px 7px; }
.balloon-player em { position:absolute; left:14px; top:50px; width:38px; height:22px; border-left:2px solid #5b3c29; border-right:2px solid #5b3c29; }
@keyframes sky-shimmer { to { transform:translateX(8%); opacity:.55; } }

/* weltraumsammler */
.space-flight-arena { min-height:clamp(440px,64dvh,690px); background:radial-gradient(circle at 72% 22%,rgba(31,202,210,.35),transparent 24%),radial-gradient(circle at 24% 70%,rgba(156,83,225,.38),transparent 28%),radial-gradient(circle,#fff 0 1px,transparent 2px) 0 0/46px 43px,linear-gradient(145deg,#07143f,#02071d 68%,#190a3e); }
.space-nebula { position:absolute; inset:-20%; background:conic-gradient(from 90deg at 50% 50%,transparent,#18b5d333,transparent,#a351ce33,transparent); filter:blur(15px); animation:space-nebula 16s linear infinite; }
.space-crystal { position:absolute; z-index:6; width:34px; height:46px; transform:translate(-50%,-50%); filter:drop-shadow(0 0 15px #6ef5ff); animation:crystal-float 1.4s ease-in-out infinite alternate; }
.space-crystal i { position:absolute; inset:0; background:linear-gradient(135deg,#d5ffff,#21d9e8 47%,#0477d5); clip-path:polygon(50% 0,92% 30%,72% 100%,28% 100%,8% 30%); }
.space-crystal.taken { opacity:0; transform:translate(-50%,-50%) scale(2.4); transition:.4s ease; }
.moving-asteroid { position:absolute; z-index:8; width:52px; height:52px; transform:translate(-50%,-50%) rotate(0deg); will-change:left,top; animation:asteroid-spin 5s linear infinite; }
.moving-asteroid.size-2 { width:75px; height:75px; animation-duration:7s; }
.moving-asteroid i { position:absolute; inset:0; background:radial-gradient(circle at 30% 32%,#798296 0 8%,transparent 9%),radial-gradient(circle at 70% 64%,#4f586c 0 12%,transparent 13%),linear-gradient(145deg,#9ba3b5,#394359); clip-path:polygon(28% 0,72% 8%,100% 42%,82% 84%,39% 100%,4% 70%,0 28%); box-shadow:inset -10px -12px 18px rgba(0,0,0,.28); }
.space-ship { position:absolute; z-index:12; width:58px; height:76px; transform:translate(-50%,-50%); transition:left .14s linear,top .14s linear; filter:drop-shadow(0 10px 8px rgba(0,0,0,.52)); }
.space-ship i { position:absolute; left:12px; top:0; width:34px; height:62px; border-radius:50% 50% 35% 35%; background:linear-gradient(90deg,#c6e8ff,#fff 45%,#55a8dd); clip-path:polygon(50% 0,87% 32%,100% 80%,68% 70%,50% 100%,32% 70%,0 80%,13% 32%); }
.space-ship b { position:absolute; left:23px; top:18px; width:13px; height:18px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#d8ffff,#168ac1 55%,#063e76); }
.space-ship em { position:absolute; left:18px; top:59px; width:22px; height:22px; background:linear-gradient(#fff087,#ff6d35 50%,transparent); clip-path:polygon(20% 0,80% 0,100% 35%,50% 100%,0 35%); animation:rocket-flame .22s ease-in-out infinite alternate; }
@keyframes crystal-float { to { transform:translate(-50%,-62%) rotate(5deg); } }
@keyframes asteroid-spin { to { transform:translate(-50%,-50%) rotate(360deg); } }
@keyframes rocket-flame { to { transform:scaleY(1.5); filter:brightness(1.4); } }
@keyframes space-nebula { to { transform:rotate(360deg); } }

/* Im echten Vollbild bleibt nur die Spielwelt samt HUD und Steuerung sichtbar. */
.game-dialog:fullscreen:has(.motion-arena) .collection-stage,
.game-dialog.portal-fullscreen:has(.motion-arena) .collection-stage { padding:0 !important; overflow:hidden !important; background:#031338 !important; }
.game-dialog:fullscreen:has(.motion-arena) .collection-panel,
.game-dialog.portal-fullscreen:has(.motion-arena) .collection-panel {
  position:relative; width:100% !important; max-width:none !important; height:100dvh !important; min-height:100dvh !important; margin:0 !important; padding:0 !important; border:0 !important; border-radius:0 !important; overflow:hidden !important; background:#031338 !important; box-shadow:none !important;
}
.game-dialog:fullscreen:has(.motion-arena) .motion-arena,
.game-dialog.portal-fullscreen:has(.motion-arena) .motion-arena { position:absolute; inset:0; width:100%; height:100dvh; min-height:100dvh; border:0; border-radius:0; }
.game-dialog:fullscreen:has(.motion-arena) .motion-score,
.game-dialog.portal-fullscreen:has(.motion-arena) .motion-score { position:absolute; z-index:40; top:max(16px,env(safe-area-inset-top)); left:max(18px,env(safe-area-inset-left)); right:max(180px,calc(env(safe-area-inset-right) + 164px)); margin:0; background:rgba(2,27,58,.78); color:#fff; backdrop-filter:blur(10px); }
.game-dialog:fullscreen:has(.motion-arena) .collection-sidebar,
.game-dialog.portal-fullscreen:has(.motion-arena) .collection-sidebar { position:fixed !important; z-index:60 !important; left:max(18px,env(safe-area-inset-left)) !important; right:auto !important; top:auto !important; bottom:max(16px,env(safe-area-inset-bottom)) !important; width:auto !important; max-width:calc(100vw - 32px) !important; transform:none !important; display:block !important; padding:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important; pointer-events:none; }
.game-dialog:fullscreen:has(.motion-arena) .collection-sidebar > :not(#collection-actions),
.game-dialog.portal-fullscreen:has(.motion-arena) .collection-sidebar > :not(#collection-actions) { display:none !important; }
.game-dialog:fullscreen:has(.motion-arena) #collection-actions,
.game-dialog.portal-fullscreen:has(.motion-arena) #collection-actions { display:flex !important; flex-wrap:nowrap !important; gap:10px !important; padding:10px !important; border:1px solid rgba(255,255,255,.28); border-radius:22px; background:rgba(2,27,58,.76); backdrop-filter:blur(12px); pointer-events:auto; }
.game-dialog:fullscreen:has(.motion-arena) #collection-actions > .quiet-button:last-child,
.game-dialog.portal-fullscreen:has(.motion-arena) #collection-actions > .quiet-button:last-child { display:none !important; }

@media (max-width:760px) {
  .motion-arena { min-height:470px; border-radius:22px; }
  .motion-tip { left:12px; right:auto; bottom:10px; max-width:72%; }
  .motion-score { gap:8px; padding:9px 12px; }
  .road-car { width:58px; }
  .game-dialog:fullscreen:has(.motion-arena) .motion-score,
  .game-dialog.portal-fullscreen:has(.motion-arena) .motion-score { right:max(92px,calc(env(safe-area-inset-right) + 82px)); }
  .game-dialog:fullscreen:has(.motion-arena) #collection-actions,
  .game-dialog.portal-fullscreen:has(.motion-arena) #collection-actions { transform:scale(.88); transform-origin:bottom center; }
}
@media (max-width:1050px) {
  .game-dialog:not(:fullscreen):not(.portal-fullscreen):has(.motion-arena) .collection-layout { display:flex !important; flex-direction:column !important; height:auto !important; min-height:0 !important; overflow:visible !important; }
  .game-dialog:not(:fullscreen):not(.portal-fullscreen):has(.motion-arena) .collection-stage { display:block !important; width:100% !important; height:auto !important; min-height:560px !important; overflow:visible !important; }
  .game-dialog:not(:fullscreen):not(.portal-fullscreen):has(.motion-arena) .collection-sidebar { position:relative !important; width:100% !important; height:auto !important; min-height:0 !important; }
  .game-dialog:not(:fullscreen):not(.portal-fullscreen):has(.motion-arena) .collection-panel { width:100% !important; max-width:none !important; }
}
@media (prefers-reduced-motion:reduce) {
  .space-nebula,.space-crystal,.moving-asteroid,.space-ship em,.balloon-arena::before { animation-duration:.001ms !important; animation-iteration-count:1 !important; }
}
@media (max-width: 560px) {
  .skat-settings, .skat-table, .skat-result { padding: 12px; border-radius: 16px; }
  .skat-settings-grid, .skat-toggle-grid, .skat-contract-grid, .skat-result-grid, .skat-contract-banner { grid-template-columns: 1fr; }
  .skat-seats { gap: 5px; }
  .skat-seat { padding: 8px; }
  .skat-seat span { font-size: .65rem; }
  .skat-hand .playing-card { margin-right: -23px; transform: scale(.9); transform-origin: center bottom; }
  .skat-trick { min-height: 130px; gap: 6px; padding: 10px; }
}

/* Version 2.15: Vollbild, austauschbare Spielwelten und eigene Kartenfiguren */
html.scene-pub { --game-scene: url('assets/game-scenes/pub.png'); }
html.scene-beach { --game-scene: url('assets/game-scenes/beach.png'); }
html.scene-home { --game-scene: url('assets/game-scenes/home.png'); }
html.avatars-medieval { --avatar-sheet: url('assets/avatars/medieval.png'); }
html.avatars-modern { --avatar-sheet: url('assets/avatars/modern.png'); }
html.avatars-digital { --avatar-sheet: url('assets/avatars/digital.png'); }
html.avatars-animals { --avatar-sheet: url('assets/avatars/animals.png'); }
html.deck-medieval { --court-atlas: url('assets/card-decks/court-medieval.png'); --deck-main: #6b426e; --deck-accent: #d0a657; }
html.deck-modern { --court-atlas: url('assets/card-decks/court-modern.png'); --deck-main: #244f69; --deck-accent: #ef825f; }
html.deck-digital { --court-atlas: url('assets/card-decks/court-digital.png'); --deck-main: #142c58; --deck-accent: #43d7e9; }
html.deck-animals { --court-atlas: url('assets/card-decks/court-animals.png'); --deck-main: #316750; --deck-accent: #e1a94b; }

.dialog-window-controls { display: flex; gap: 8px; align-items: center; }
.universal-pause-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 106px; min-height: 46px; padding: 8px 14px; border: 1px solid #c9dff0;
  border-radius: 14px; color: #062244; background: rgba(255,255,255,.94); font: inherit;
  box-shadow: 0 8px 22px rgba(3,19,56,.12); cursor: pointer;
}
.universal-pause-button span { font-weight: 900; letter-spacing: -3px; }
.universal-pause-button b { font-size: 14px; }
.universal-pause-overlay[hidden] { display: none !important; }
.universal-pause-overlay {
  position: fixed; z-index: 250; inset: 0; display: grid; place-items: center; padding: 24px;
  color: #fff; background: rgba(3,19,56,.82); backdrop-filter: blur(12px); pointer-events: auto;
}
.universal-pause-overlay > div {
  width: min(480px, 100%); padding: clamp(28px, 6vw, 52px); border: 1px solid rgba(255,255,255,.25);
  border-radius: 30px; text-align: center; background: linear-gradient(145deg, rgba(5,43,93,.96), rgba(1,20,50,.96));
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
}
.universal-pause-overlay span { display: block; font-size: 44px; font-weight: 900; letter-spacing: -10px; }
.universal-pause-overlay h3 { margin: 14px 0 8px; color: #fff; font-size: clamp(30px, 5vw, 54px); }
.universal-pause-overlay p { margin: 0 0 24px; color: rgba(255,255,255,.8); }
.game-dialog.is-game-paused * { animation-play-state: paused !important; }
.game-dialog:fullscreen > .dialog-header .universal-pause-button,
.game-dialog.portal-fullscreen > .dialog-header .universal-pause-button {
  position: fixed; z-index: 210; top: max(14px, env(safe-area-inset-top));
  right: max(170px, calc(env(safe-area-inset-right) + 154px));
}
.qa-audit-strip {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px,1.25fr) minmax(280px,1.75fr) auto;
  gap: 18px; align-items: center; margin-bottom: 22px; padding: 20px;
  border: 1px solid #b9ddee; border-radius: 22px; color: #062244;
  background: linear-gradient(135deg, #edfaff, #f7fff9); box-shadow: 0 12px 32px rgba(5,52,93,.08);
}
.qa-audit-strip div:first-child { display: grid; gap: 4px; }
.qa-audit-strip small { color: #0579be; font-weight: 900; letter-spacing: .12em; }
.qa-audit-strip strong { font-size: 23px; }
.qa-audit-strip span { color: #4d6379; }
.qa-audit-strip > em { justify-self: end; padding: 9px 13px; border-radius: 999px; color: #675018; background: #fff0ba; font-style: normal; font-weight: 800; white-space: nowrap; }
.qa-age-coverage { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-age-coverage span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #d5e8f3; font-size: 12px; font-weight: 800; }
.qa-age-coverage b { color: #0075b8; font-size: 14px; }
@media (max-width: 900px) {
  .qa-audit-strip { grid-template-columns: 1fr; }
  .qa-audit-strip > em { justify-self: start; }
  .game-dialog:fullscreen > .dialog-header .universal-pause-button,
  .game-dialog.portal-fullscreen > .dialog-header .universal-pause-button { right: max(76px, calc(env(safe-area-inset-right) + 68px)); min-width: 48px; }
  .game-dialog:fullscreen > .dialog-header .universal-pause-button b,
  .game-dialog.portal-fullscreen > .dialog-header .universal-pause-button b { display: none; }
}
.dialog-tool-button {
  display: grid; place-items: center; width: 46px; min-height: 46px; padding: 0; border: 1px solid var(--line);
  border-radius: 12px; color: #3e3346; background: #fff; font-size: 22px; font-weight: 900;
}
.dialog-tool-button:hover, .dialog-tool-button:focus-visible { border-color: #9279aa; background: #f3edf7; outline: none; }
.game-style-panel {
  position: sticky; top: 89px; z-index: 8; display: grid; grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(145px, .55fr));
  gap: 12px; align-items: end; padding: 15px 28px; border-bottom: 1px solid #d8cce1; background: rgba(248, 244, 251, .98);
  box-shadow: 0 10px 25px rgba(46, 31, 58, .08);
}
.game-style-panel > div { display: grid; gap: 3px; }
.game-style-panel small { color: #706579; line-height: 1.3; }
.game-style-panel label { display: grid; gap: 5px; color: #4e4355; font-size: .76rem; font-weight: 850; }
.game-style-panel select { min-height: 42px; padding: 0 10px; border: 1px solid #cfc2d8; border-radius: 10px; color: #2d2532; background: #fff; }

.game-dialog:fullscreen, .game-dialog.portal-fullscreen {
  position: fixed; inset: 0; z-index: 9999; width: 100vw; max-width: none; height: 100dvh; max-height: none;
  margin: 0; border-radius: 0; background: #fff; overflow: auto;
}
.game-dialog:fullscreen .dialog-header, .game-dialog.portal-fullscreen .dialog-header { padding-inline: clamp(16px, 3vw, 42px); }
.game-dialog:fullscreen .collection-layout, .game-dialog.portal-fullscreen .collection-layout { min-height: calc(100dvh - 91px); }
.game-dialog:fullscreen .game-layout, .game-dialog.portal-fullscreen .game-layout { min-height: calc(100dvh - 91px); }

/* Version 2.23: echtes Spiel-Vollbild auf Desktop und iPad */
html.game-fullscreen-open,
body.game-fullscreen-open {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none;
}
.game-dialog:fullscreen,
.game-dialog.portal-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 100vw !important;
  min-width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  overscroll-behavior: contain;
}
.game-dialog:fullscreen::backdrop { background: #fff; }
.game-dialog:fullscreen > .dialog-header,
.game-dialog.portal-fullscreen > .dialog-header {
  position: relative;
  top: auto;
  flex: 0 0 auto;
}
.game-dialog:fullscreen > .game-style-panel,
.game-dialog.portal-fullscreen > .game-style-panel {
  position: relative;
  top: auto;
  max-height: 38dvh;
  overflow: auto;
}
.game-dialog:fullscreen > .game-layout,
.game-dialog.portal-fullscreen > .game-layout,
.game-dialog:fullscreen > .collection-layout,
.game-dialog.portal-fullscreen > .collection-layout {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto;
}
.game-dialog:fullscreen .game-stage,
.game-dialog.portal-fullscreen .game-stage,
.game-dialog:fullscreen .collection-stage,
.game-dialog.portal-fullscreen .collection-stage {
  min-height: min(68dvh, 760px);
}

.skat-visual-settings {
  display: grid; grid-template-columns: minmax(210px, 1.2fr) repeat(3, minmax(140px, .7fr)); gap: 12px;
  align-items: end; margin: 0 0 18px; padding: 15px; border: 1px solid rgba(100, 71, 137, .18); border-radius: 16px;
  background: linear-gradient(135deg, rgba(238, 232, 245, .92), rgba(238, 247, 244, .92));
}
.skat-visual-settings > div { display: grid; gap: 4px; }
.skat-visual-settings small { color: #6c6471; line-height: 1.35; }
.skat-visual-settings label { display: grid; gap: 5px; color: #4c4253; font-size: .76rem; font-weight: 850; }
.skat-visual-settings select { min-height: 42px; padding: 0 10px; border: 1px solid #cfc4d7; border-radius: 10px; background: #fff; }

.collection-dialog .card-table {
  background-color: #173e3b;
  background-image: linear-gradient(rgba(10, 31, 32, .76), rgba(12, 42, 38, .86)), var(--game-scene);
  background-position: center; background-size: cover;
}
.pairs-stage, .four-stage, .mills-stage, .backgammon-stage, .draughts-stage {
  background-image: linear-gradient(rgba(244, 239, 247, .72), rgba(231, 238, 236, .82)), var(--game-scene);
  background-position: center; background-size: cover;
}

.skat-visual-table {
  position: relative; min-height: clamp(420px, 55vw, 580px); margin: 14px 0 18px; overflow: hidden;
  border: 5px solid rgba(255, 255, 255, .86); border-radius: 28px; background-color: #234c41;
  background-image: linear-gradient(rgba(18, 25, 31, .09), rgba(18, 25, 31, .18)), var(--game-scene);
  background-position: center; background-size: cover; box-shadow: 0 22px 50px rgba(23, 31, 40, .23);
}
.skat-table-seat { position: absolute; z-index: 3; display: grid; align-items: end; }
.skat-table-seat.left { left: 2.5%; top: 5%; width: 25%; }
.skat-table-seat.right { right: 2.5%; top: 5%; width: 25%; }
.skat-table-seat.bottom { left: 50%; bottom: 3%; width: min(42%, 360px); transform: translateX(-50%); }
.skat-avatar { display: block; justify-self: center; width: min(100%, 184px); aspect-ratio: 1 / 1.06; margin-bottom: -18px; background-image: var(--avatar-sheet); background-repeat: no-repeat; background-size: 200% 100%; filter: drop-shadow(0 12px 12px rgba(13, 21, 25, .4)); }
.skat-avatar.left { background-position: left center; }
.skat-avatar.right { background-position: right center; }
.skat-seat-card {
  display: grid; gap: 1px; padding: 9px 11px; border: 2px solid rgba(255, 255, 255, .78); border-radius: 13px;
  color: #fff; background: rgba(19, 31, 42, .86); box-shadow: 0 8px 20px rgba(10, 16, 23, .28); backdrop-filter: blur(7px);
}
.skat-table-seat.active .skat-seat-card { border-color: #ffd86a; box-shadow: 0 0 0 4px rgba(255, 216, 106, .34), 0 8px 25px rgba(10, 16, 23, .34); }
.skat-table-seat.active .skat-seat-card::before { content: 'am zug'; color: #ffe58d; font-size: .63rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.skat-seat-card small { color: #aee2c7; font-size: .64rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.skat-seat-card strong { font-size: clamp(.82rem, 1.5vw, 1.03rem); }
.skat-seat-card span { color: #e1e9ec; font-size: clamp(.62rem, 1.1vw, .76rem); }
.skat-scene-center { position: absolute; z-index: 2; left: 50%; top: 52%; width: min(49%, 420px); transform: translate(-50%, -50%); }
.skat-scene-center .skat-bid-display { min-height: 150px; margin: 0; border: 3px solid rgba(255,255,255,.7); background: rgba(31, 47, 61, .91); box-shadow: 0 12px 32px rgba(12,20,25,.36); backdrop-filter: blur(8px); }
.skat-scene-center .skat-trick { min-height: 170px; margin: 0; border-color: rgba(255,255,255,.82); background: radial-gradient(circle, rgba(58, 130, 92, .94), rgba(28, 78, 56, .96)); }

.playing-card[data-face] { overflow: hidden; align-content: start; text-shadow: 0 1px #fff; }
.playing-card[data-face]::after {
  content: ''; position: absolute; z-index: 0; left: 4px; right: 4px; bottom: 4px; height: 68%; border-radius: 5px;
  background-image: linear-gradient(to top, rgba(255,255,255,.04), rgba(255,255,255,.18)), var(--court-atlas);
  background-repeat: no-repeat; background-size: 400% 100%; box-shadow: inset 0 0 0 1px rgba(38, 28, 42, .08);
}
.playing-card[data-face="jack"]::after { background-position: 0 50%; }
.playing-card[data-face="queen"]::after { background-position: 33.333% 50%; }
.playing-card[data-face="king"]::after { background-position: 66.666% 50%; }
.playing-card[data-face="joker"]::after { background-position: 100% 50%; }
.playing-card.back, .playing-card.card-back, #patience-stock {
  background-color: var(--deck-main); background-image: repeating-linear-gradient(45deg, transparent 0 7px, rgba(255,255,255,.13) 7px 13px),
    radial-gradient(circle at 50% 50%, var(--deck-accent) 0 5%, transparent 5.5% 17%, var(--deck-accent) 17.5% 19%, transparent 19.5%);
}

@media (max-width: 780px) {
  .dialog-header { padding: 16px; }
  .dialog-header h2 { font-size: clamp(24px, 7vw, 32px); }
  .dialog-tool-button, .close-button { width: 42px; min-height: 42px; }
  .game-style-panel, .skat-visual-settings { grid-template-columns: 1fr; }
  .game-style-panel { position: relative; top: auto; padding: 14px 16px; }
  .skat-visual-table { min-height: 455px; }
  .skat-table-seat.left, .skat-table-seat.right { width: 31%; top: 4%; }
  .skat-table-seat.left { left: 1.5%; }
  .skat-table-seat.right { right: 1.5%; }
  .skat-table-seat.bottom { width: 68%; }
  .skat-scene-center { top: 58%; width: 62%; }
  .skat-avatar { margin-bottom: -12px; }
}

@media (max-width: 520px) {
  .dialog-header .eyebrow { display: none; }
  .dialog-window-controls { gap: 5px; }
  .dialog-tool-button, .close-button { width: 39px; min-height: 39px; border-radius: 10px; font-size: 20px; }
  .skat-visual-table { min-height: 420px; border-width: 3px; }
  .skat-table-seat.left, .skat-table-seat.right { width: 36%; }
  .skat-table-seat.bottom { width: 80%; bottom: 2%; }
  .skat-seat-card { padding: 7px 8px; }
  .skat-seat-card span { font-size: .58rem; }
  .skat-scene-center { top: 57%; width: 72%; }
  .skat-scene-center .skat-trick { min-height: 140px; padding: 7px; }
}

/* Version 2.16: immersiver Skatraum und klassische Kartenansicht */
body.skat-room-open { overflow: hidden; }
#collection-dialog.skat-room-active {
  position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none;
  margin: 0; overflow: hidden; border-radius: 0; background: #111b1d;
}
#collection-dialog.skat-room-active .dialog-header {
  position: fixed; z-index: 60; inset: 0 0 auto; min-height: 70px; padding: 12px 14px;
  border: 0; background: linear-gradient(180deg, rgba(13, 18, 21, .74), transparent); pointer-events: none;
}
#collection-dialog.skat-room-active .dialog-header > div:first-child {
  display: grid; gap: 0; max-width: min(44vw, 360px); padding: 7px 12px; border: 1px solid rgba(255,255,255,.22);
  border-radius: 13px; color: #fff; background: rgba(19, 29, 33, .72); text-shadow: 0 2px 8px #000;
  backdrop-filter: blur(9px); pointer-events: auto;
}
#collection-dialog.skat-room-active .dialog-header h2 { color: #fff; font-size: clamp(1.15rem, 2.4vw, 1.65rem); }
#collection-dialog.skat-room-active .dialog-header .eyebrow { color: #d8f0e1; font-size: .64rem; }
#collection-dialog.skat-room-active .dialog-window-controls { pointer-events: auto; }
#collection-dialog.skat-room-active .dialog-tool-button,
#collection-dialog.skat-room-active .close-button {
  border-color: rgba(255,255,255,.38); color: #fff; background: rgba(20, 29, 34, .78); backdrop-filter: blur(8px);
}
#collection-dialog.skat-room-active .game-style-panel {
  position: fixed; z-index: 70; top: 70px; right: 14px; left: auto; width: min(760px, calc(100vw - 28px));
  border: 1px solid rgba(255,255,255,.28); border-radius: 16px; background: rgba(247, 243, 250, .96);
}
#collection-dialog.skat-room-active .collection-layout { display: block; width: 100%; height: 100dvh; min-height: 0; padding: 0; }
#collection-dialog.skat-room-active .collection-stage {
  position: absolute; inset: 0; display: grid; place-items: center; min-height: 0; padding: 0; overflow: hidden; border-radius: 0;
  background-color: #203f35; background-image: linear-gradient(rgba(9, 14, 17, .08), rgba(9, 14, 17, .18)), var(--game-scene);
  background-position: center; background-size: cover;
}
#collection-dialog.skat-room-active .collection-sidebar {
  position: fixed; z-index: 50; top: 86px; right: 14px; width: min(310px, 30vw); max-height: calc(100dvh - 102px);
  padding: 12px; overflow: auto; border: 1px solid rgba(255,255,255,.28); border-radius: 16px;
  color: #fff; background: rgba(18, 28, 32, .78); box-shadow: 0 16px 36px rgba(0,0,0,.28); backdrop-filter: blur(10px);
}
#collection-dialog.skat-room-active .collection-sidebar .game-help { margin: 0 0 9px; color: #fff; }
#collection-dialog.skat-room-active .collection-sidebar #collection-actions { display: grid; gap: 7px; }
#collection-dialog.skat-room-active .collection-sidebar #collection-actions button { min-height: 44px; }
#collection-dialog.skat-room-active .collection-sidebar details { margin-top: 8px; color: #e7f3ec; }
#collection-dialog.skat-room-active .collection-sidebar details:not([open]) p { display: none; }
#collection-dialog.skat-room-active:has(.skat-table) .collection-sidebar { display: none; }
#collection-dialog.skat-room-active .skat-settings,
#collection-dialog.skat-room-active .skat-result {
  position: relative; z-index: 12; width: min(1120px, calc(100vw - 32px)); max-height: calc(100dvh - 105px);
  margin-top: 72px; overflow: auto; box-shadow: 0 26px 70px rgba(0,0,0,.36);
}
#collection-dialog.skat-room-active .skat-table { position: absolute; inset: 0; min-height: 100%; padding: 0; border-radius: 0; background: transparent; }
#collection-dialog.skat-room-active .skat-scene-center { top: 34%; width: min(58vw, 560px); }
#collection-dialog.skat-room-active .skat-visual-table {
  position: absolute; inset: 0; min-height: 0; height: 100%; margin: 0; border: 0; border-radius: 0;
  background-position: center; background-size: cover; box-shadow: none;
}
#collection-dialog.skat-room-active .skat-score {
  position: fixed; z-index: 34; top: 12px; left: 50%; width: min(660px, 50vw); margin: 0;
  transform: translateX(-50%); border: 1px solid rgba(255,255,255,.25); color: #fff; background: rgba(13, 25, 27, .74);
  box-shadow: 0 10px 26px rgba(0,0,0,.18); backdrop-filter: blur(8px);
}
#collection-dialog.skat-room-active .skat-contract-banner {
  position: fixed; z-index: 32; top: 73px; left: 50%; width: min(610px, 46vw); margin: 0; transform: translateX(-50%);
}
#collection-dialog.skat-room-active .skat-contract-banner > div { background: rgba(28, 48, 56, .82); backdrop-filter: blur(7px); }
#collection-dialog.skat-room-active .skat-log { display: none; }
#collection-dialog.skat-room-active .skat-open-hand { position: fixed; z-index: 28; left: 12px; bottom: 12px; max-width: 34vw; }

.skat-visual-table .skat-table-seat.bottom { left: 18px; bottom: 18px; width: min(24%, 230px); transform: none; }
.skat-visual-table .skat-hand-dock {
  position: absolute; z-index: 18; right: clamp(12px, 2vw, 30px); bottom: clamp(12px, 2.3vh, 24px); left: clamp(12px, 2vw, 30px);
  display: grid; justify-items: center; pointer-events: none;
}
.skat-hand-dock h3 {
  margin: 0 0 5px; padding: 5px 11px; border-radius: 999px; color: #fff; background: rgba(17, 29, 34, .68);
  font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.skat-hand-heading { display: flex; align-items: center; justify-content: center; gap: 8px; pointer-events: auto; }
.skat-sort-controls { display: flex; gap: 6px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.28); border-radius: 11px; color: #fff; background: rgba(17,29,34,.72); backdrop-filter: blur(7px); }
.skat-sort-controls label { display: flex; align-items: center; gap: 4px; font-size: .65rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.skat-sort-controls select { min-height: 28px; padding: 2px 22px 2px 7px; border: 0; border-radius: 7px; color: #14242a; background: #fff; font-size: .72rem; font-weight: 800; }
.skat-hand-dock .skat-hand {
  display: flex; flex-wrap: nowrap; justify-content: center; align-items: end; width: min(860px, 82vw); min-height: 158px;
  padding: 9px 40px 0; overflow: visible; border-radius: 50% 50% 12px 12px / 20% 20% 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 20, 19, .28)); pointer-events: auto;
}
.skat-hand .skat-playing-card {
  z-index: var(--fan-order); flex: 0 0 clamp(72px, 7.4vw, 104px); width: clamp(72px, 7.4vw, 104px);
  height: clamp(104px, 10.4vw, 148px); min-height: 0; margin-right: clamp(-38px, -2.6vw, -24px);
  transform: translateY(var(--fan-lift, 0)) rotate(var(--fan-angle, 0)); transform-origin: 50% 135%;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.skat-hand .skat-playing-card:last-child { margin-right: 0; }
.skat-hand .skat-playing-card:not(:disabled):hover,
.skat-hand .skat-playing-card:not(:disabled):focus-visible,
.skat-hand .skat-playing-card.selected {
  z-index: 30; transform: translateY(calc(var(--fan-lift, 0px) - 22px)) rotate(var(--fan-angle, 0));
}
.skat-hand .skat-playing-card:disabled {
  transform: translateY(calc(var(--fan-lift, 0px) + 7px)) rotate(var(--fan-angle, 0)); filter: grayscale(.58) brightness(.72); opacity: .72;
}
.skat-playing-card {
  position: relative; overflow: hidden; place-items: stretch; padding: 0; border: 3px solid #f7f0e5; border-radius: 10px;
  background: linear-gradient(145deg, #fffefb, #f3eee7); box-shadow: 0 7px 16px rgba(8, 17, 18, .48); isolation: isolate;
}
.skat-playing-card[data-face]::after { display: none; }
.skat-card-corner {
  position: absolute; z-index: 3; display: grid; justify-items: center; line-height: .84; font-style: normal;
  font-size: clamp(.72rem, 1.2vw, 1.04rem); font-weight: 950;
}
.skat-card-corner b { font: inherit; }
.skat-card-corner i { font-style: normal; font-size: 1.1em; }
.skat-card-corner-top { top: 6px; left: 6px; }
.skat-card-corner-bottom { right: 6px; bottom: 6px; transform: rotate(180deg); }
.skat-card-art {
  position: absolute; z-index: 1; inset: 18% 11% 16%; display: grid; place-items: center; overflow: hidden; border-radius: 7px;
  background-color: rgba(255,255,255,.72); background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(48,35,45,.08);
}
.skat-card-art[data-card-art] { background-image: var(--court-atlas); background-size: 400% 100%; }
.skat-card-art[data-card-art="jack"] { background-position: 0 50%; }
.skat-card-art[data-card-art="queen"] { background-position: 33.333% 50%; }
.skat-card-art[data-card-art="king"] { background-position: 66.666% 50%; }
.skat-card-art[data-card-art="joker"] { background-position: 100% 50%; }
.skat-card-pip { font-size: clamp(2rem, 4vw, 4rem); line-height: 1; text-shadow: 0 2px #fff; }
.skat-played .skat-playing-card { width: clamp(64px, 6.4vw, 90px); height: clamp(92px, 9vw, 128px); min-height: 0; }

.skat-inline-dock { display: grid; gap: 6px; margin-top: 7px; }
.skat-inline-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.skat-inline-actions button { min-height: 38px; padding: 8px 15px; border-radius: 11px; }
.skat-inline-actions .play-button { min-width: 150px; }
.skat-inline-dock [data-skat-status] { min-height: 1.2em; margin: 0; color: #eff9f3; font-size: .72rem; font-weight: 750; text-align: center; text-shadow: 0 2px 6px #000; }
.skat-bid-display { padding: 14px 16px; }
.skat-bid-display > strong { margin-bottom: 2px; }
.skat-bid-wheel-row { display: grid; grid-template-columns: minmax(245px, 1fr) minmax(115px, .65fr); align-items: center; gap: 10px; margin-top: 11px; }
.skat-bid-wheel { display: grid; grid-template-columns: 42px minmax(105px, 1fr) 42px; align-items: center; gap: 8px; width: 100%; margin: 0; }
.skat-bid-wheel button { min-height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); font-size: 1.55rem; font-weight: 900; }
.skat-bid-wheel button:disabled { opacity: .3; }
.skat-bid-wheel > div { display: grid; place-items: center; min-height: 54px; padding: 4px 12px; border: 2px solid #b8dcca; border-radius: 16px; background: rgba(5,17,23,.34); }
.skat-bid-wheel span { color: #b8dcca; font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.skat-bid-wheel b { color: #fff; font-size: 1.7rem; line-height: 1; }
.skat-bid-meaning { min-height: 1.3em; margin: 0 !important; padding: 7px 9px; border-left: 2px solid rgba(255,229,154,.62); color: #ffe59a !important; font-size: .72rem; font-weight: 850; text-align: left; }

@media (max-width: 900px) {
  #collection-dialog.skat-room-active .dialog-header > div:first-child { max-width: 38vw; }
  #collection-dialog.skat-room-active .collection-sidebar { top: 76px; right: 8px; width: min(270px, 31vw); padding: 9px; }
  #collection-dialog.skat-room-active .collection-sidebar details { display: none; }
  #collection-dialog.skat-room-active .skat-score { width: 48vw; }
  #collection-dialog.skat-room-active .skat-contract-banner { top: 70px; left: 42%; width: 43vw; }
  .skat-visual-table .skat-table-seat.left, .skat-visual-table .skat-table-seat.right { top: 11%; width: 24%; }
  .skat-visual-table .skat-hand-dock { right: 8px; }
  .skat-hand-dock .skat-hand { width: 88vw; min-height: 135px; padding-inline: 22px; }
  .skat-hand .skat-playing-card { flex-basis: clamp(64px, 8vw, 84px); width: clamp(64px, 8vw, 84px); height: clamp(92px, 11.2vw, 120px); margin-right: -28px; }
  .skat-scene-center { top: 33%; width: min(52%, 430px); }
}

@media (max-width: 620px) {
  #collection-dialog.skat-room-active .dialog-header > div:first-child { display: none; }
  #collection-dialog.skat-room-active .collection-sidebar {
    top: 60px; right: 7px; left: 7px; width: auto; max-height: 118px; padding: 7px 10px;
  }
  #collection-dialog.skat-room-active .collection-sidebar .game-help { display: none; }
  #collection-dialog.skat-room-active .collection-sidebar #collection-actions { display: flex; gap: 6px; overflow-x: auto; }
  #collection-dialog.skat-room-active .collection-sidebar #collection-actions button { flex: 1 0 auto; min-height: 40px; padding: 8px 11px; }
  #collection-dialog.skat-room-active .skat-score { top: 9px; left: 9px; width: calc(100vw - 155px); transform: none; }
  #collection-dialog.skat-room-active .skat-contract-banner { display: none; }
  #collection-dialog.skat-room-active .skat-settings, #collection-dialog.skat-room-active .skat-result { margin-top: 58px; max-height: calc(100dvh - 70px); }
  .skat-visual-table .skat-table-seat.left, .skat-visual-table .skat-table-seat.right { top: 20%; width: 33%; }
  .skat-visual-table .skat-table-seat.bottom { left: 7px; bottom: 7px; width: 35%; }
  .skat-scene-center { top: 36%; width: 70%; }
  .skat-visual-table .skat-hand-dock { right: 5px; bottom: 2px; left: 5px; }
  .skat-hand-heading { gap: 4px; }
  .skat-hand-dock h3 { display: none; }
  .skat-sort-controls { padding: 3px 5px; }
  .skat-sort-controls label { font-size: 0; }
  .skat-sort-controls select { min-height: 25px; font-size: .66rem; }
  .skat-hand-dock .skat-hand { width: 100%; min-height: 116px; padding: 6px 14px 0; }
  .skat-hand .skat-playing-card { flex-basis: 58px; width: 58px; height: 84px; margin-right: -25px; }
  .skat-card-corner { font-size: .68rem; }
  .skat-card-art { inset: 20% 12% 17%; }
  .skat-bid-wheel-row { grid-template-columns: 1fr; gap: 4px; }
  .skat-bid-meaning { padding: 3px 6px; border-left: 0; text-align: center; }
}

/* Computer- und Retrospiele 33–46 */
.retro-pack-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.35fr);
  gap: 22px;
  margin: 0 0 26px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(91, 65, 127, .16);
  border-radius: 28px;
  color: #fff;
  background: radial-gradient(circle at 84% 18%, rgba(255, 213, 109, .22), transparent 28%), linear-gradient(135deg, #271a38, #4c2f61 62%, #70426f);
  box-shadow: 0 20px 54px rgba(39, 26, 56, .18);
}
.retro-pack-copy h3 { margin: 4px 0 10px; font-size: clamp(1.45rem, 2.7vw, 2.35rem); line-height: 1.05; }
.retro-pack-copy > p:last-of-type { margin: 0; color: rgba(255,255,255,.76); line-height: 1.55; }
.retro-pack-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.retro-pack-facts span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.08); }
.retro-pack-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.retro-pack-list button { display: grid; grid-template-columns: 38px 1fr 22px; align-items: center; gap: 8px; min-height: 44px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; color: #fff; text-align: left; background: rgba(255,255,255,.075); cursor: pointer; }
.retro-pack-list button:hover, .retro-pack-list button:focus-visible { background: rgba(255,255,255,.15); transform: translateY(-1px); }
.retro-pack-list button.completed { border-color: #83d6b7; background: rgba(83, 185, 147, .16); }
.retro-pack-list b { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 9px; color: #2c2137; background: #f6cf67; }
.retro-pack-list span { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.retro-pack-list i { color: #f6cf67; font-size: 1.15rem; font-style: normal; text-align: center; }
.retro-number-badge { display: inline-flex; width: max-content; margin: 0 0 9px; padding: 5px 9px; border-radius: 999px; color: #f8f3ff; background: #473158; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.featured .retro-number-badge, .worlds-feature .retro-number-badge { color: #332441; background: #f6cf67; }
.retro-number-badge.completed { color: #17382d; background: #8bd7bb; }
.retro-mission-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 18px; color: #fff; background: linear-gradient(90deg, #332441, #604177); }
.retro-mission-strip b, .retro-mission-strip em { white-space: nowrap; }
.retro-mission-strip span { overflow: hidden; color: rgba(255,255,255,.82); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.retro-mission-strip em { padding: 4px 8px; border-radius: 999px; color: #2e2237; background: #f6cf67; font-size: .72rem; font-style: normal; font-weight: 900; text-transform: uppercase; }
@media (max-width: 900px) {
  .retro-pack-summary { grid-template-columns: 1fr; }
  .retro-mission-strip { grid-template-columns: auto 1fr; }
  .retro-mission-strip em { display: none; }
}
@media (max-width: 560px) {
  .retro-pack-list { grid-template-columns: 1fr; }
  .retro-pack-summary { padding: 18px; border-radius: 22px; }
  .retro-mission-strip { gap: 8px; padding: 9px 12px; }
  .retro-mission-strip span { font-size: .8rem; }
}

/* Sportspiele 47–58 */
.sport-pack-summary {
  background: radial-gradient(circle at 88% 14%, rgba(255,255,255,.22), transparent 30%), linear-gradient(135deg, #155c69, #258578 58%, #58a269);
}
.sport-pack-summary .retro-pack-list b { background: #d9f07a; }
.sport-pack-summary .retro-pack-list i { color: #e5f98d; }
.sport-card { border-color: rgba(44, 132, 121, .18); }
.sport-preview { background: linear-gradient(145deg, #dff5eb, #b6dfd5); }
.sport-preview span, .sport-preview i { font-size: clamp(2.25rem, 5vw, 4.1rem); }
.sport-number-badge {
  display: inline-flex;
  width: max-content;
  margin: 0 0 9px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #eefdf8;
  background: #176b69;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sport-number-badge.completed { color: #17382d; background: #9ae1a5; }
.sport-mission-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(90deg, #13545e, #2e8977);
}
.sport-mission-strip b, .sport-mission-strip em { white-space: nowrap; }
.sport-mission-strip span { overflow: hidden; color: rgba(255,255,255,.84); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.sport-mission-strip em { padding: 4px 8px; border-radius: 999px; color: #19463d; background: #d9f07a; font-size: .72rem; font-style: normal; font-weight: 900; text-transform: uppercase; }
.sport-panel { min-height: 540px; }
.sport-panel .score-banner { margin: 0 0 18px; }
.sport-scene, .sport-court, .sport-track, .sport-pool {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 245px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 24px;
}
.sport-scene span, .sport-scene b { font-size: clamp(3.7rem, 9vw, 7.4rem); }
.sport-scene b { position: absolute; right: 12%; bottom: 12%; font-size: clamp(2.6rem, 6vw, 5rem); }
.basket-scene { background: linear-gradient(#88c7ef 0 62%, #d79968 62%); }
.bowling-scene { grid-template-columns: 1fr 1fr; color: #fff; background: linear-gradient(90deg, #7c4d6d, #e7bc8d); }
.bowling-scene b { position: static; white-space: pre-line; font: 900 1.4rem/1.3 system-ui; text-align: center; }
.golf-scene { background: linear-gradient(#8fd0f2 0 45%, #65b96d 45%); }
.golf-scene span { transition: transform .35s ease; }
.volley-scene { background: linear-gradient(#8bd0f0 0 60%, #eed18e 60%); }
.handball-scene { background: linear-gradient(#e8e0d1 0 62%, #d68d5c 62%); }
.hockey-scene { color: #15334d; background: repeating-linear-gradient(90deg, #e7f7fb 0 22%, #d1eff4 22% 44%); }
.sport-timing { position: relative; height: 52px; margin: 18px 12px; border-radius: 999px; background: linear-gradient(90deg, #d85e6a, #f1c768 30%, #77c78d 44% 56%, #f1c768 70%, #d85e6a); box-shadow: inset 0 3px 10px rgba(27,31,43,.25); }
.sport-timing i { position: absolute; top: -8px; bottom: -8px; left: 0; width: 8px; border: 3px solid #fff; border-radius: 999px; background: #2f243b; box-shadow: 0 4px 14px rgba(0,0,0,.3); transform: translateX(-50%); }
.sport-zone { position: absolute; inset: 0 43%; border: 2px solid rgba(255,255,255,.72); border-radius: 999px; }
.sport-grid { display: grid; gap: 8px; width: min(100%, 520px); margin: 0 auto; }
.dribbel-grid { grid-template-columns: repeat(5, 1fr); }
.sport-cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: 13px; background: #d9efdc; font-size: clamp(1.35rem, 5vw, 2.5rem); box-shadow: inset 0 0 0 2px rgba(32,108,78,.08); }
.sport-cell.wall { background: #8d796d; }
.sport-cell.goal { outline: 3px dashed #e5b74b; }
.sport-directions { display: grid; grid-template-columns: repeat(4, minmax(54px,1fr)); gap: 7px; width: 100%; }
.sport-slider { display: grid; grid-template-columns: 90px 1fr 44px; align-items: center; gap: 12px; margin: 14px 0; padding: 12px 14px; border-radius: 15px; background: #f4f0f7; font-weight: 800; }
.sport-slider input { width: 100%; accent-color: #318d7c; }
.sport-slider output { text-align: right; }
.darts-board { display: block; width: min(100%, 440px); height: auto; margin: 0 auto 15px; border-radius: 50%; background: #efe7d9; touch-action: manipulation; }
.tennis-court { grid-template-columns: 1fr auto 1fr; color: #fff; background: linear-gradient(90deg, #347c63 0 49%, #fff 49% 51%, #347c63 51%); }
.tennis-court span, .tennis-court b { font-size: 1.25rem; }
.tennis-court i { font-size: 3.4rem; font-style: normal; }
.table-court { grid-template-columns: 1fr auto 1fr; background: linear-gradient(#2579a5 0 49%, #fff 49% 51%, #2579a5 51%); }
.table-court span, .table-court b, .table-court i { font-size: 3.4rem; font-style: normal; }
.sport-action-label { grid-column: 1 / -1; margin: 0; font-weight: 900; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.sprint-track { min-height: 190px; background: repeating-linear-gradient(0deg, #bb654f 0 38px, #f2cfab 38px 41px); }
.sprint-track i { position: absolute; bottom: 45%; left: 0; font-size: 3.5rem; font-style: normal; transition: left .12s linear; }
.sprint-track b { position: absolute; right: 3%; top: 18px; bottom: 18px; display: grid; place-items: center; padding-left: 12px; border-left: 7px checkerboard; font-size: 3rem; }
.sport-pool { min-height: 210px; background: repeating-linear-gradient(0deg, #5fc0de 0 34px, #d9f7ff 34px 38px); }
.sport-pool i { position: absolute; left: 0; font-size: 3.6rem; font-style: normal; transition: left .2s ease; }
.sport-pool b { position: absolute; right: 15px; top: 15px; color: #174b68; }
@media (max-width: 900px) {
  .sport-mission-strip { grid-template-columns: auto 1fr; }
  .sport-mission-strip em { display: none; }
}
@media (max-width: 620px) {
  .sport-panel { min-height: 430px; padding: 14px; }
  .sport-scene, .sport-court, .sport-track, .sport-pool { min-height: 180px; border-radius: 18px; }
  .sport-slider { grid-template-columns: 72px 1fr 34px; gap: 7px; padding: 9px; }
  .sport-mission-strip { gap: 8px; padding: 9px 12px; }
  .sport-mission-strip span { font-size: .8rem; }
}

/* Version 2.21: vollständiger Katalog und gemeinsame Spielwelten */
html.scene-forest { --game-scene: radial-gradient(circle at 25% 20%, #b8e59b 0 8%, transparent 9%), linear-gradient(145deg, #183d32, #4f8760 48%, #b5d389); }
html.scene-castle { --game-scene: linear-gradient(135deg, rgba(255,255,255,.1) 25%, transparent 25%) 0 0 / 56px 56px, linear-gradient(145deg, #493d56, #8a6b68 58%, #d6b98c); }
html.scene-space { --game-scene: radial-gradient(circle at 20% 22%, #fff 0 2px, transparent 3px), radial-gradient(circle at 72% 35%, #77e0ff 0 2px, transparent 3px), linear-gradient(145deg, #070d2a, #273b70 60%, #6c4a8b); }
html.scene-stadium { --game-scene: radial-gradient(ellipse at 50% 100%, #3c8a5c 0 35%, transparent 36%), linear-gradient(#8cd9ff 0 42%, #f5f7fb 43% 50%, #4c7c67 51%); }
html.scene-winter { --game-scene: radial-gradient(circle at 18% 20%, #fff 0 4px, transparent 5px), linear-gradient(145deg, #dff6ff, #8ec2de 54%, #5c7390); }
html.avatars-explorers { --avatar-sheet: url('assets/avatars/modern.png'); }
html.avatars-athletes { --avatar-sheet: url('assets/avatars/animals.png'); }
.catalog-number { display: inline-grid; place-items: center; width: 38px; min-height: 30px; margin: 0 0 8px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #5d367e, #2f6d78); box-shadow: 0 5px 14px rgba(58,35,76,.18); font-size: .78rem; font-weight: 950; }
.catalog-inline-number { display: inline-grid; place-items: center; min-width: 26px; margin-right: 6px; font-weight: 950; }
.catalog-followup-summary { grid-column: 1 / -1; display: grid; gap: 14px; margin: 4px 0 10px; padding: clamp(18px,3vw,30px); border: 1px solid rgba(74,54,92,.15); border-radius: 26px; background: linear-gradient(145deg,rgba(252,248,255,.98),rgba(235,247,244,.96)); box-shadow: 0 18px 42px rgba(47,31,59,.1); }
.catalog-summary-heading { display: grid; gap: 6px; }
.catalog-summary-heading > span { color: #6a4281; font-size: .73rem; font-weight: 950; letter-spacing: .12em; }
.catalog-summary-heading h3 { margin: 0; color: #2d2533; font-size: clamp(1.25rem,2.5vw,1.8rem); }
.catalog-summary-heading p { margin: 0; color: #6a6070; }
.catalog-range { display: grid; grid-template-columns: minmax(210px,.75fr) minmax(0,2fr); gap: 14px; padding: 14px; border: 1px solid #e0d7e5; border-radius: 18px; background: rgba(255,255,255,.76); }
.catalog-range > div:first-child { display: grid; align-content: start; gap: 5px; }
.catalog-range small { color: #786284; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.catalog-range strong { color: #302738; font-size: 1.03rem; }
.catalog-range-progress { color: #28705e; font-size: .82rem; font-weight: 850; }
.catalog-range-buttons { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 8px; }
.catalog-range-buttons button { display: grid; grid-template-columns: 30px 1fr 16px; gap: 7px; align-items: center; min-height: 46px; padding: 7px 9px; border: 1px solid #d7ccdd; border-radius: 12px; color: #3d3443; background: #fff; text-align: left; cursor: pointer; }
.catalog-range-buttons button:hover, .catalog-range-buttons button:focus-visible { border-color: #7c5b91; background: #f7f1fa; outline: none; }
.catalog-range-buttons b { display: grid; place-items: center; height: 28px; border-radius: 8px; color: #fff; background: #68467f; font-size: .72rem; }
.catalog-range-buttons span { overflow: hidden; font-size: .77rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.catalog-range-buttons i { color: #2d806a; font-style: normal; font-size: 1.2rem; }
.game-world-avatar { display: grid; place-items: center; width: 42px; min-height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; background: linear-gradient(145deg,#694882,#326b75); box-shadow: 0 6px 16px rgba(42,30,53,.18); font-size: 1.2rem; font-weight: 950; }
.theme-panel-intro { display: grid !important; grid-template-columns: auto 1fr; gap: 10px !important; align-items: center; }
.theme-figure-preview { display: flex !important; gap: 5px !important; }
.theme-figure-preview span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: #5f4278; font-weight: 950; }
.game-style-panel { grid-template-columns: minmax(200px,1.15fr) repeat(5,minmax(118px,.55fr)); }
.theme-ready-dialog { --theme-button: #68468a; --theme-button-hover: #52356f; --theme-button-text: #fff; }
html.buttons-ocean .theme-ready-dialog { --theme-button: #216f87; --theme-button-hover: #17566a; }
html.buttons-forest .theme-ready-dialog { --theme-button: #347054; --theme-button-hover: #285942; }
html.buttons-sunset .theme-ready-dialog { --theme-button: #c75f4b; --theme-button-hover: #a34839; }
html.buttons-gold .theme-ready-dialog { --theme-button: #bd8b29; --theme-button-hover: #946c1d; --theme-button-text: #20180d; }
.theme-ready-dialog .collection-actions button:not(.dialog-tool-button), .theme-ready-dialog .game-controls button:not(.dialog-tool-button), .theme-ready-dialog .sport-action-grid button, .theme-ready-dialog .primary-action, .theme-ready-dialog .play-button { border-color: transparent; color: var(--theme-button-text); background: var(--theme-button); }
.theme-ready-dialog .collection-actions button:not(.dialog-tool-button):hover, .theme-ready-dialog .game-controls button:not(.dialog-tool-button):hover, .theme-ready-dialog .sport-action-grid button:hover, .theme-ready-dialog .primary-action:hover { background: var(--theme-button-hover); }
.theme-ready-dialog .collection-stage, .theme-ready-dialog .game-stage { background-image: linear-gradient(rgba(250,248,252,.84),rgba(236,242,241,.9)), var(--game-scene); background-position: center; background-size: cover; }
html.icons-outline .game-world-avatar, html.icons-outline .dialog-tool-button { border-radius: 8px; background: transparent; color: #543d65; box-shadow: inset 0 0 0 2px currentColor; }
html.icons-pixel .game-world-avatar, html.icons-pixel .dialog-tool-button, html.icons-pixel .catalog-number { border-radius: 2px; image-rendering: pixelated; box-shadow: 4px 4px 0 rgba(34,25,42,.25); }
html.icons-soft .game-world-avatar, html.icons-soft .dialog-tool-button { border: 0; border-radius: 18px; background: #eee4f3; color: #5f4670; box-shadow: 0 7px 18px rgba(56,39,69,.12); }
@media (max-width: 980px) { .game-style-panel { grid-template-columns: repeat(2,minmax(0,1fr)); } .theme-panel-intro { grid-column: 1 / -1; } .catalog-range { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .game-world-avatar { display: none; } .game-style-panel { grid-template-columns: 1fr; } .theme-panel-intro { grid-column: auto; } .catalog-range-buttons { grid-template-columns: 1fr 1fr; } .catalog-range-buttons span { font-size: .7rem; } }

/* Version 2.22: kompakte Spielauswahl, Rückweg und individuelle Spielidentitäten */
.portal-intro { min-height: auto; padding-block: clamp(44px, 7vw, 88px); }
.portal-intro h1 { max-width: 820px; font-size: clamp(50px, 7.2vw, 98px); line-height: .94; }
.game-browser { padding: clamp(24px, 4vw, 42px); }
.filter-heading { align-items: center; margin-bottom: 18px; }
.filter-heading > div > p:last-child { margin: 7px 0 0; color: var(--muted); }
.filter-heading strong { display: grid; place-items: center; min-width: 92px; min-height: 50px; padding: 8px 16px; font-size: .9rem; }
.discovery-start { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.discovery-start .search-field { margin: 0; }
.search-field > span { display: flex; align-items: center; gap: 8px; }
.search-field > span b, .filter-row > span b { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: var(--purple); font-size: .72rem; }
.surprise-primary { min-height: 54px; padding-inline: 22px; white-space: nowrap; }
.filter-row { grid-template-columns: 132px minmax(0, 1fr); margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.filter-row > span { display: flex; align-items: center; gap: 8px; padding-top: 6px; color: var(--purple-dark); font-size: .82rem; }
.filter-chip { min-height: 42px; padding: 0 15px; font-size: .8rem; }
.category-chips { display: grid; grid-template-columns: repeat(4, minmax(125px, 1fr)); }
.category-chips .filter-chip { display: flex; align-items: center; justify-content: flex-start; gap: 9px; border-radius: 14px; text-align: left; }
.category-chips .filter-chip i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: var(--purple); background: var(--purple-soft); font-size: .85rem; font-style: normal; font-weight: 900; }
.category-chips .filter-chip.active i { color: var(--purple-dark); background: #fff; }
.discovery-actions { margin-top: 16px; }
.quality-promise { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 15px; }
.quality-promise p { margin: 0; }
.recent-game { margin-bottom: 0; }
.back-to-top { position: fixed; z-index: 60; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 8px 15px 8px 9px; border: 1px solid #fff7; border-radius: 999px; color: #fff; background: #352343eb; box-shadow: 0 14px 32px #24162d55; opacity: 0; pointer-events: none; transform: translateY(18px); transition: opacity .2s ease, transform .2s ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #352343; background: #fff; font-size: 1.25rem; font-weight: 950; }
.back-to-top b { font-size: .82rem; }
.sport-inline-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 14px 0 10px; }
.sport-inline-guide span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 13px; color: #564760; background: #f2edf5; font-size: .78rem; font-weight: 800; }
.sport-inline-guide b { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #fff; background: var(--purple); }
.sport-inline-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin-top: 12px; }
.sport-inline-actions button { min-height: 56px; border-radius: 16px; font-size: 1rem; }
.sport-inline-actions button:first-child { color: var(--theme-button-text, #fff); border-color: transparent; background: var(--theme-button, var(--purple)); box-shadow: 0 10px 22px #4e326524; }
.sport-inline-feedback { min-height: 25px; margin: 10px 0 0 !important; color: var(--purple-dark) !important; font-weight: 850; text-align: center; }
.sport-timing { cursor: pointer; }
.game-identity-card { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--identity-accent, #67478e) 24%, white); border-radius: 13px; background: linear-gradient(120deg, color-mix(in srgb, var(--identity-accent, #67478e) 13%, white), #fff); }
.game-identity-card > span { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: var(--identity-radius, 12px); color: #fff; background: linear-gradient(145deg, var(--identity-accent, #67478e), var(--identity-accent-two, #2f6d78)); font-size: 1.05rem; font-weight: 900; }
.game-identity-card strong { display: block; color: var(--purple-dark); font-size: .72rem; font-weight: 900; }
.game-identity-card small { display: block; margin-top: 2px; color: var(--muted); font-size: .64rem; }
.filterable-game.identity-angular, .filterable-game.identity-angular .game-identity-card { --identity-radius: 5px; }
.filterable-game.identity-round, .filterable-game.identity-round .game-identity-card { --identity-radius: 999px; }
.filterable-game.identity-soft, .filterable-game.identity-soft .game-identity-card { --identity-radius: 18px; }
.filterable-game[class*="identity-"] .play-button { border-color: transparent; border-radius: var(--identity-radius, 14px); color: var(--identity-button-text, #fff); background: linear-gradient(135deg, var(--identity-accent), var(--identity-accent-two)); }
.game-identity-banner { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 11px; border: 1px solid #ffffff75; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--identity-accent), var(--identity-accent-two)); box-shadow: 0 8px 22px #22162b26; }
.dialog-window-controls { position: relative; z-index: 8; flex: 0 0 auto; }
.game-identity-banner > span { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: var(--identity-radius, 12px); color: var(--identity-accent); background: #fff; font-size: 1.08rem; font-weight: 900; }
.game-identity-banner strong { display: block; max-width: 190px; margin-top: 2px; overflow: hidden; font-size: .68rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.game-identity-banner small { display: block; font-size: .59rem; font-weight: 750; line-height: 1.2; opacity: .84; }
.game-dialog.identity-active .collection-stage, .game-dialog.identity-active .game-stage { background-image: radial-gradient(circle at 17% 15%, color-mix(in srgb, var(--identity-accent) 28%, transparent), transparent 34%), linear-gradient(145deg, color-mix(in srgb, var(--identity-accent-two) 18%, white), rgba(255,255,255,.78)), var(--game-scene); }
.game-dialog.identity-active .play-button, .game-dialog.identity-active .primary-action, .game-dialog.identity-active .collection-sidebar button:not(.quiet-button) { border-radius: var(--identity-radius, 14px); color: var(--identity-button-text, #fff); background: linear-gradient(135deg, var(--identity-accent), var(--identity-accent-two)); }
.game-dialog.identity-angular { --identity-radius: 5px; }
.game-dialog.identity-round { --identity-radius: 999px; }
.game-dialog.identity-soft { --identity-radius: 18px; }
@media (max-width: 900px) {
  .category-chips { grid-template-columns: repeat(2, minmax(135px, 1fr)); }
  .discovery-start { grid-template-columns: 1fr; }
  .surprise-primary { width: 100%; }
  .portal-intro { padding-block: 36px; }
}
@media (max-width: 640px) {
  .game-browser { padding: 20px 16px; }
  .filter-row { grid-template-columns: 1fr; gap: 9px; }
  .filter-chips { margin-inline: 0; padding-inline: 0; }
  .category-chips { display: grid; overflow: visible; }
  .filter-heading { align-items: flex-start; }
  .filter-heading strong { min-width: 0; min-height: 38px; }
  .quality-promise { align-items: flex-start; }
  .back-to-top b { display: none; }
  .back-to-top { padding: 7px; }
  .sport-inline-actions { grid-template-columns: 1fr; }
  .game-identity-banner { display: none; }
}

/* Version 2.25: ladi-tools-Farbwelt, fünf Spielstufen und Qualitätsausbau */
html { accent-color: var(--brand-blue); }
body { background: linear-gradient(180deg, #f8fcff, var(--canvas)); }
.portal-header { border-bottom: 1px solid #dceaf5; background: #ffffffdc; backdrop-filter: blur(18px); }
.search-field input:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 4px #086bff20; }
.filter-chip:hover { border-color: #72bfff; }
.filter-chip.active, .quality-filter.active { border-color: var(--brand-blue); background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue)); box-shadow: 0 8px 18px #086bff28; }
.empty-results { border-color: #83cfff; }
.mills-preview, .mills-board, .draughts-stage, .card-top, .era-meters div { background: linear-gradient(145deg, #eaf8ff, #f6fcff); }
.preview-square, .mills-lines, .draughts-preview-board, .draughts-board, #jump-canvas, #duel-canvas, #blocks-canvas, #maze-canvas, .collection-canvas { border-color: var(--brand-navy); }
.mills-lines { stroke: var(--brand-navy); }
.draughts-preview-board { background-image: conic-gradient(#176fd2 25%, #0000 0 50%, #176fd2 0 75%, #0000 0); }
.worlds-mission, .score-banner, .dice-result, .board-goal { background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue)); }
.duel-preview { background: linear-gradient(145deg, #06143f, #087edb); }
.catalog-number, .game-world-avatar, .theme-figure-preview span, .catalog-range-buttons b { background: linear-gradient(135deg, var(--brand-navy), var(--brand-cyan)); }
.catalog-summary-heading > span { color: var(--brand-blue); }
.catalog-range-buttons button:hover, .catalog-range-buttons button:focus-visible { border-color: var(--brand-blue); background: var(--brand-soft); }
.catalog-followup-summary { border-color: #c9e5f4; background: linear-gradient(145deg, #f8fcff, #e9fbf7); }
.theme-ready-dialog { --theme-button: var(--brand-blue); --theme-button-hover: #0056d6; --theme-button-text: #fff; }
html.buttons-violet .theme-ready-dialog, html.buttons-ocean .theme-ready-dialog { --theme-button: var(--brand-blue); --theme-button-hover: #0056d6; }
html.buttons-mint .theme-ready-dialog { --theme-button: var(--brand-mint); --theme-button-hover: #0bb98d; --theme-button-text: var(--brand-navy); }
html.buttons-navy .theme-ready-dialog { --theme-button: var(--brand-navy); --theme-button-hover: #10296a; }
html.icons-outline .game-world-avatar, html.icons-outline .dialog-tool-button { color: var(--brand-navy); }
.game-dialog::backdrop { background: #031338d9; }
.game-stage, .collection-stage { background-color: #eaf6fd; }
.four-stage { background: #eaf8ff; }
.four-board { background: var(--brand-navy); box-shadow: 0 18px 35px #07184d30; }
.playing-card.back, .playing-card.card-back, #patience-stock, .playing-mini-card.back { background: repeating-linear-gradient(45deg, var(--brand-navy) 0 7px, #0c65c4 7px 14px); }
.blocks-preview { background: linear-gradient(145deg, #06143f, #0b60b7); }
.collection-preview { background: linear-gradient(145deg, #e8f8ff, #8fd9ef); }
.game-tag.purple-tag { color: var(--brand-navy); background: var(--brand-soft); }
.back-to-top { background: var(--brand-navy); }
.back-to-top span { color: var(--brand-navy); }
.high-contrast { --ink: #061333; --muted: #253550; --line: #8eabc0; --canvas: #fff; --purple: #005cdd; }

.challenge-card-badge { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin: 0 0 18px; padding: 7px 10px; border: 1px solid #b9e0f5; border-radius: 999px; color: var(--brand-navy); background: var(--brand-soft); font-size: .7rem; font-weight: 850; }
.challenge-card-badge span { color: var(--brand-blue); }
.challenge-card-badge b { font-weight: 900; }
.challenge-panel { position: relative; z-index: 7; display: grid; grid-template-columns: minmax(150px,.7fr) minmax(320px,1.5fr) minmax(220px,1fr); gap: 12px 18px; align-items: center; padding: 14px 26px; border-bottom: 1px solid #cfe4f2; color: var(--brand-navy); background: linear-gradient(110deg, #effaff, #f4fffb); }
.challenge-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.challenge-heading div { display: grid; gap: 1px; }
.challenge-heading span { color: var(--brand-blue); font-size: .62rem; font-weight: 950; letter-spacing: .13em; }
.challenge-heading strong { font-size: 1.05rem; }
.challenge-heading small { color: var(--muted); font-size: .68rem; }
.challenge-levels { display: grid; grid-template-columns: repeat(4, minmax(72px,1fr)); gap: 6px; }
.challenge-levels button { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 5px; min-height: 40px; padding: 5px 8px; border: 1px solid #c9e0ee; border-radius: 11px; color: var(--brand-navy); background: #fff; text-align: left; }
.challenge-levels button b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: var(--brand-blue); background: var(--brand-soft); font-size: .68rem; }
.challenge-levels button span { overflow: hidden; font-size: .69rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.challenge-levels button.active { color: #fff; border-color: var(--brand-blue); background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue)); box-shadow: 0 7px 17px #086bff25; }
.challenge-levels button.active b { color: var(--brand-navy); background: #fff; }
.challenge-explanation { display: grid; gap: 3px; }
.challenge-explanation p, .challenge-explanation strong { margin: 0; font-size: .69rem; line-height: 1.4; }
.challenge-explanation strong { color: var(--brand-navy); }
.challenge-age-fit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.challenge-age-fit span { margin-right: 2px; color: var(--muted); font-size: .63rem; font-weight: 800; }
.challenge-age-fit b { padding: 4px 7px; border-radius: 999px; color: #075747; background: #dff9f0; font-size: .6rem; }
.game-dialog[data-challenge-level="pro"] details:not([open]), .game-dialog[data-challenge-level="master"] details:not([open]) { opacity: .72; }
.game-dialog[data-challenge-level="master"] .legal:not(:focus-visible), .game-dialog[data-challenge-level="master"] .valid-target:not(:focus-visible) { box-shadow: none; filter: saturate(.75); }

/* Qualitätsausbau 2.25: eigene Welten, Figuren und ein zweiter spielbarer Missionsbogen. */
.quality-upgraded {
  position: relative;
  isolation: isolate;
  border-color: color-mix(in srgb, var(--identity-accent, #0b4ea2) 38%, #d7e8f3) !important;
  box-shadow: 0 24px 58px color-mix(in srgb, var(--identity-accent, #0b4ea2) 17%, transparent) !important;
}
.quality-upgraded > .quality-world-art {
  grid-column: 1;
  grid-row: 1;
}
.quality-upgraded > .game-card-copy,
.quality-upgraded > .worlds-feature-copy,
.quality-upgraded > .featured-copy {
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
  color: #082b59;
  background: linear-gradient(150deg, rgba(255,255,255,.98), rgba(244,251,255,.95));
}
.quality-upgraded > .game-card-copy h2,
.quality-upgraded > .game-card-copy h3,
.quality-upgraded > .worlds-feature-copy h2,
.quality-upgraded > .featured-copy h2 { color: #082b59 !important; }
.quality-upgraded > .game-card-copy p,
.quality-upgraded > .game-card-copy li,
.quality-upgraded > .worlds-feature-copy p,
.quality-upgraded > .worlds-feature-copy li,
.quality-upgraded > .featured-copy p,
.quality-upgraded > .featured-copy li { color: #40556d !important; }
.quality-upgraded > .game-card-copy .game-facts,
.quality-upgraded > .worlds-feature-copy .game-facts,
.quality-upgraded > .featured-copy .game-facts { color: #183b61 !important; }
.quality-upgraded > .collection-preview,
.quality-upgraded > .sport-preview,
.quality-upgraded > .game-preview,
.quality-upgraded > [class$="-preview"] { display: none !important; }
.quality-world-art {
  --quality-world-image: linear-gradient(135deg,#0a315f,#16c7b5);
  position: relative;
  display: grid;
  align-content: end;
  min-height: 370px;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  color: #fff;
  background-image: var(--quality-world-image);
  background-position: center;
  background-size: cover;
}
.quality-world-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(3,19,56,.28) 52%, rgba(3,19,56,.96) 100%);
}
.quality-world-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--identity-accent-two, #16c7b5) 55%, transparent), transparent 30%);
  mix-blend-mode: screen;
  opacity: .48;
}
.quality-world-art > img {
  position: relative;
  z-index: 2;
  width: clamp(110px, 13vw, 160px);
  aspect-ratio: 1;
  margin-bottom: 18px;
  border: 4px solid rgba(255,255,255,.92);
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 20px 46px rgba(3,19,56,.38);
  transform: rotate(-2deg);
}
.quality-world-art > div:last-child { position: relative; z-index: 2; display: grid; gap: 5px; text-shadow: 0 2px 10px #031338; }
.quality-world-art span { width: fit-content; padding: 6px 11px; border: 1px solid rgba(255,255,255,.44); border-radius: 999px; background: rgba(3,19,56,.62); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.quality-world-art strong { max-width: 19ch; font-size: clamp(24px, 3vw, 38px); line-height: 1.02; }
.quality-world-art small { font-size: 13px; font-weight: 800; color: #dffbf6; }
.quality-tier-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 20px 0 14px;
  padding: 11px 14px;
  border: 1px solid #b9dff2;
  border-radius: 15px;
  background: linear-gradient(135deg,#e9f8ff,#e7fcf7);
  color: #082b59;
}
.quality-tier-badge span { font-size: 11px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.quality-tier-badge b { color: var(--identity-accent, #0b4ea2); font-size: 13px; }
.quality-tier-badge[data-stars="3"] { border-color: #f0c34e; background: linear-gradient(135deg,#fff7d9,#e7fcf7); }

.game-dialog[data-quality-world] {
  --quality-world-image: none;
  background-color: #eef8fc;
  background-image: linear-gradient(180deg, rgba(3,19,56,.1), rgba(3,19,56,.02)), var(--quality-world-image);
  background-position: center;
  background-size: cover;
}
.game-dialog[data-quality-world] > .game-layout,
.game-dialog[data-quality-world] > .collection-layout {
  background: rgba(244,251,255,.9);
  backdrop-filter: blur(8px);
}
.quality-dialog-hud {
  position: relative;
  z-index: 14;
  display: grid;
  grid-template-columns: minmax(190px,.8fr) minmax(260px,1.5fr) minmax(150px,.65fr);
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 13px clamp(16px,3vw,38px);
  border-block: 1px solid rgba(164,211,235,.74);
  color: #fff;
  background: linear-gradient(112deg, rgba(3,19,56,.97), color-mix(in srgb, var(--quality-accent, #0b4ea2) 82%, #031338), color-mix(in srgb, var(--quality-accent-two, #16c7b5) 82%, #031338));
  box-shadow: 0 12px 32px rgba(3,19,56,.2);
}
.quality-hud-profile { display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: center; gap: 12px; min-width: 0; }
.quality-hud-profile img { width: 58px; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.8); border-radius: 17px; object-fit: cover; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.quality-hud-profile div { display: grid; min-width: 0; }
.quality-hud-profile small,.quality-hud-mission small { color: #adf0e6; font-size: 9px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.quality-hud-profile strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.quality-hud-profile span { overflow: hidden; color: #dcebf7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.quality-hud-mission { display: grid; gap: 5px; min-width: 0; }
.quality-hud-mission strong { font-size: 13px; line-height: 1.25; }
.quality-progress { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.18); }
.quality-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#67ead5,#ffd45b); transition: width .24s ease; }
.quality-hud-score { display: grid; justify-items: end; text-align: right; }
.quality-hud-score > span { color: #ffd45b; font-size: 21px; letter-spacing: .06em; white-space: nowrap; }
.quality-hud-score small { color: #fff; font-size: 10px; font-weight: 800; }
.quality-hud-score b { color: #bfe9ff; font-size: 10px; }
.challenge-levels [data-challenge-level="legend"] { border-color: #edbf45; background: linear-gradient(145deg,#fff7d5,#dffbf6); }
.challenge-levels [data-challenge-level="legend"].active { color: #062244; background: linear-gradient(135deg,#ffd45b,#67ead5); box-shadow: 0 10px 24px rgba(16,151,159,.22); }
.game-dialog[data-challenge-level="legend"] .legal:not(:focus-visible),
.game-dialog[data-challenge-level="legend"] .valid-target:not(:focus-visible) { box-shadow: none; filter: saturate(.6); }
.game-dialog[data-challenge-level="legend"] .quality-hud-mission small { color: #ffd45b; }
.retro-mission-strip { background: linear-gradient(90deg, #062244, #0b4ea2 58%, #10979f) !important; }
.retro-mission-strip span { color: #dff8ff !important; }
.retro-mission-strip em { color: #062244 !important; background: #ffd45b !important; }

@media (max-width: 820px) {
  .quality-upgraded > .quality-world-art,
  .quality-upgraded > .game-card-copy,
  .quality-upgraded > .worlds-feature-copy,
  .quality-upgraded > .featured-copy { grid-column: 1; }
  .quality-upgraded > .quality-world-art { grid-row: 1; min-height: 320px; }
  .quality-upgraded > .game-card-copy,
  .quality-upgraded > .worlds-feature-copy,
  .quality-upgraded > .featured-copy { grid-row: 2; }
  .quality-dialog-hud { grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .quality-hud-mission { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 520px) {
  .quality-world-art { min-height: 280px; }
  .quality-dialog-hud { grid-template-columns: 1fr; }
  .quality-hud-mission { grid-column: 1; grid-row: auto; }
  .quality-hud-score { justify-items: start; text-align: left; }
  .quality-hud-profile span { display: none; }
}

.age-overview { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.6fr); gap: clamp(20px,4vw,50px); align-items: center; margin: 0 0 34px; padding: clamp(24px,4vw,42px); border: 1px solid #c8e4f2; border-radius: 28px; background: linear-gradient(135deg, var(--brand-navy), #075fc8 60%, #00a9d4); box-shadow: 0 22px 50px #063e8726; }
.age-overview-title > span { color: #8ff4dc; font-size: .7rem; font-weight: 950; letter-spacing: .14em; }
.age-overview-title h2 { margin: 7px 0 12px; color: #fff; font-size: clamp(28px,3.5vw,44px); }
.age-overview-title p { margin: 0; color: #dceeff; }
.age-overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.age-overview-grid button { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; gap: 1px 10px; min-height: 76px; padding: 12px; border: 1px solid #ffffff4c; border-radius: 16px; color: #fff; background: #ffffff14; text-align: left; backdrop-filter: blur(8px); }
.age-overview-grid button:hover { background: #ffffff24; }
.age-overview-grid span { grid-row: 1 / 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--brand-navy); background: #fff; font-size: 1.15rem; font-weight: 950; }
.age-overview-grid strong { align-self: end; font-size: .82rem; }
.age-overview-grid small { overflow: hidden; color: #cfe9fb; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.age-overview-grid button:last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .brand-product small { display: none; }
  .challenge-panel { grid-template-columns: 1fr; }
  .challenge-age-fit { grid-column: auto; }
  .age-overview { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .portal-header { padding-inline: 18px; }
  .brand-logo { width: 118px; height: 40px; }
  .brand-product { padding-left: 9px; }
  .brand-product strong { font-size: 14px; }
  .challenge-panel { padding: 12px 14px; }
  .challenge-levels { grid-template-columns: repeat(2,1fr); }
  .age-overview-grid { grid-template-columns: 1fr; }
  .age-overview-grid button:last-child:nth-child(odd) { grid-column: auto; }
}

/* Version 2.26: Portalansicht statt Kastenfenster, echtes Spielvollbild und 89 Einzelmotive. */
.game-dialog[open] {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: auto;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fcff, #eef7fc 58%, #f8fcff);
  box-shadow: none;
}
.game-dialog[open]::backdrop { background: #f8fcff; backdrop-filter: none; }
.game-dialog[open] > .dialog-header {
  position: relative;
  z-index: 40;
  min-height: 94px;
  padding: 17px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid #d6e7f2;
  color: var(--brand-navy);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(6,34,68,.06);
}
.game-dialog[open] > .dialog-header h2 { color: var(--brand-navy); font-size: clamp(30px, 4vw, 55px); letter-spacing: -.045em; }
.game-dialog[open] > .dialog-header .eyebrow { color: var(--brand-blue); }
.game-dialog[open] .dialog-window-controls { align-self: center; }
.game-dialog[open] .dialog-tool-button,
.game-dialog[open] .close-button {
  border: 1px solid #c8dfed;
  color: var(--brand-navy);
  background: #fff;
  box-shadow: 0 7px 18px rgba(6,34,68,.08);
}
.game-dialog[open] > .challenge-panel {
  margin: 20px clamp(18px, 4vw, 64px) 0;
  border: 1px solid #cfe4f2;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 18px 44px rgba(6,34,68,.08);
}
.game-dialog[open] > .quality-dialog-hud {
  margin: 0 clamp(18px, 4vw, 64px);
  border-radius: 0 0 22px 22px;
}
.game-dialog[open] > :not(.dialog-header):not(.game-style-panel):not(.challenge-panel):not(.quality-dialog-hud):not(.fullscreen-exit-button):not(.fullscreen-tools-button):not(.universal-pause-button):not(.universal-pause-overlay) {
  position: relative;
  width: auto;
  min-height: min(780px, calc(100dvh - 210px));
  margin: 22px clamp(18px, 4vw, 64px) 48px;
  overflow: hidden;
  border: 1px solid #cfe2ee;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(6,34,68,.11);
}
.game-dialog[data-quality-world] { background-image: linear-gradient(180deg, #f8fcff, #eef7fc 58%, #f8fcff); }
.game-dialog[data-quality-world] > .game-layout,
.game-dialog[data-quality-world] > .collection-layout { background: #fff; backdrop-filter: none; }
.game-dialog[data-quality-world] .game-stage,
.game-dialog[data-quality-world] .collection-stage {
  background-image: linear-gradient(180deg, rgba(3,19,56,.04), rgba(3,19,56,.12)), var(--quality-world-image);
  background-position: center;
  background-size: cover;
}
.game-dialog[open] > .game-style-panel {
  z-index: 45;
  margin: 0 clamp(18px, 4vw, 64px);
  border: 1px solid #cfe4f2;
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(6,34,68,.1);
}

.fullscreen-exit-button {
  position: fixed;
  z-index: 1000;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 14px 7px 9px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 999px;
  color: #fff;
  background: rgba(3,19,56,.82);
  box-shadow: 0 12px 28px rgba(0,0,0,.26);
  backdrop-filter: blur(12px);
}
.fullscreen-exit-button span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.16); font-size: 26px; line-height: 1; }
.fullscreen-exit-button small { color: #fff; font-size: 11px; font-weight: 900; }

.game-dialog:fullscreen,
.game-dialog.portal-fullscreen {
  grid-template-rows: minmax(0, 1fr) !important;
  color: #fff;
  background: #031338 !important;
}
.game-dialog:fullscreen > .dialog-header,
.game-dialog.portal-fullscreen > .dialog-header,
.game-dialog:fullscreen > .game-style-panel,
.game-dialog.portal-fullscreen > .game-style-panel,
.game-dialog:fullscreen > .challenge-panel,
.game-dialog.portal-fullscreen > .challenge-panel,
.game-dialog:fullscreen > .quality-dialog-hud,
.game-dialog.portal-fullscreen > .quality-dialog-hud { display: none !important; }
.game-dialog:fullscreen > .fullscreen-exit-button,
.game-dialog.portal-fullscreen > .fullscreen-exit-button { display: inline-flex !important; }
.game-dialog:fullscreen > :not(.dialog-header):not(.game-style-panel):not(.challenge-panel):not(.quality-dialog-hud):not(.fullscreen-exit-button):not(.fullscreen-tools-button):not(.universal-pause-button):not(.universal-pause-overlay):not(.game-help-panel),
.game-dialog.portal-fullscreen > :not(.dialog-header):not(.game-style-panel):not(.challenge-panel):not(.quality-dialog-hud):not(.fullscreen-exit-button):not(.fullscreen-tools-button):not(.universal-pause-button):not(.universal-pause-overlay):not(.game-help-panel) {
  position: relative;
  width: 100vw !important;
  min-width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}
.game-dialog:fullscreen .game-stage,
.game-dialog.portal-fullscreen .game-stage,
.game-dialog:fullscreen .collection-stage,
.game-dialog.portal-fullscreen .collection-stage,
.game-dialog:fullscreen .island-run-stage,
.game-dialog.portal-fullscreen .island-run-stage,
.game-dialog:fullscreen .worlds-main,
.game-dialog.portal-fullscreen .worlds-main {
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
.game-dialog:fullscreen .game-sidebar,
.game-dialog.portal-fullscreen .game-sidebar,
.game-dialog:fullscreen .collection-sidebar,
.game-dialog.portal-fullscreen .collection-sidebar,
.game-dialog:fullscreen .worlds-sidebar,
.game-dialog.portal-fullscreen .worlds-sidebar {
  position: absolute !important;
  z-index: 60;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(370px, 42vw) !important;
  max-height: min(52dvh, 520px);
  padding: 16px !important;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.32) !important;
  border-radius: 22px !important;
  color: #fff;
  background: rgba(3,19,56,.82) !important;
  box-shadow: 0 22px 48px rgba(0,0,0,.32) !important;
  backdrop-filter: blur(14px);
}
.game-dialog:fullscreen .island-run-options,
.game-dialog.portal-fullscreen .island-run-options,
.game-dialog:fullscreen .island-run-status,
.game-dialog.portal-fullscreen .island-run-status { display: none !important; }
.game-dialog:fullscreen .island-run-controls,
.game-dialog.portal-fullscreen .island-run-controls {
  position: fixed;
  z-index: 70;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(76px, 150px) minmax(130px, 260px) minmax(76px, 150px);
  justify-content: space-between;
  pointer-events: none;
}
.game-dialog:fullscreen .island-run-controls button,
.game-dialog.portal-fullscreen .island-run-controls button { pointer-events: auto; }
.game-dialog:fullscreen .island-run-message,
.game-dialog.portal-fullscreen .island-run-message { max-width: min(600px, 72vw); }

@media (max-width: 760px) {
  .game-dialog[open] > .dialog-header { min-height: 76px; padding: 12px 16px; }
  .game-dialog[open] > .dialog-header h2 { font-size: clamp(24px, 8vw, 38px); }
  .game-dialog[open] > .challenge-panel,
  .game-dialog[open] > .quality-dialog-hud,
  .game-dialog[open] > .game-style-panel { margin-inline: 10px; }
  .game-dialog[open] > :not(.dialog-header):not(.game-style-panel):not(.challenge-panel):not(.quality-dialog-hud):not(.fullscreen-exit-button):not(.fullscreen-tools-button):not(.universal-pause-button):not(.universal-pause-overlay) { margin: 14px 10px 30px; border-radius: 20px; }
  .game-dialog:fullscreen .game-sidebar,
  .game-dialog.portal-fullscreen .game-sidebar,
  .game-dialog:fullscreen .collection-sidebar,
  .game-dialog.portal-fullscreen .collection-sidebar,
  .game-dialog:fullscreen .worlds-sidebar,
  .game-dialog.portal-fullscreen .worlds-sidebar { right: 8px; bottom: 8px; width: min(330px, calc(100vw - 16px)) !important; max-height: 38dvh; padding: 10px !important; }
  .fullscreen-exit-button small { display: none; }
  .fullscreen-exit-button { padding: 7px; }
}

/* Version 2.30: klare Spielmodi und sichtbare Bewegung ohne globale Szenenueberlagerung. */
.game-dialog[open]:not(.portal-fullscreen) {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  padding: 0 !important;
  overflow: auto !important;
}
.game-dialog[open]:not(.portal-fullscreen) > .dialog-header {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: auto !important;
  margin: 0 !important;
}
.game-dialog[open]:not(.portal-fullscreen) > .challenge-panel {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(145px,.55fr) minmax(380px,1.6fr) minmax(250px,1fr) !important;
  align-self: auto !important;
  margin: 14px clamp(18px,4vw,64px) 0 !important;
  padding: 12px 18px !important;
  border-radius: 20px 20px 0 0 !important;
}
.game-dialog[open]:not(.portal-fullscreen) > .challenge-panel .challenge-levels {
  grid-template-columns: repeat(5,minmax(80px,1fr)) !important;
}
.game-dialog[open]:not(.portal-fullscreen) > .challenge-panel .challenge-age-fit { grid-column: 1 / -1 !important; }
.game-dialog[open]:not(.portal-fullscreen) > .quality-dialog-hud {
  grid-column: 1 !important;
  grid-row: 3 !important;
  display: grid !important;
  grid-template-columns: minmax(200px,.75fr) minmax(330px,1.5fr) minmax(180px,.65fr) !important;
  align-content: center !important;
  align-self: auto !important;
  margin: 0 clamp(18px,4vw,64px) !important;
  padding: 11px 18px !important;
  border-radius: 0 0 20px 20px !important;
}
.game-dialog[open]:not(.portal-fullscreen) > .quality-dialog-hud .quality-hud-mission { grid-column: auto !important; grid-row: auto !important; }
.game-dialog[open]:not(.portal-fullscreen) > .quality-dialog-hud .quality-hud-score { justify-items: end !important; text-align: right !important; }
.game-dialog[open]:not(.portal-fullscreen) > :not(.dialog-header):not(.game-style-panel):not(.challenge-panel):not(.quality-dialog-hud):not(.fullscreen-exit-button):not(.fullscreen-tools-button):not(.universal-pause-button):not(.universal-pause-overlay) {
  grid-column: 1 !important;
  grid-row: 4 !important;
  width: auto !important;
  min-height: min(780px,calc(100dvh - 210px)) !important;
  margin: 18px clamp(18px,4vw,64px) 42px !important;
}
.game-dialog.round-active:not(.portal-fullscreen) > .challenge-panel,
.game-dialog.round-active:not(.portal-fullscreen) > .quality-dialog-hud { display: none !important; }
.game-dialog.round-active:not(.portal-fullscreen) { grid-template-rows: auto minmax(0,1fr) !important; }
.game-dialog.round-active:not(.portal-fullscreen) > :not(.dialog-header):not(.game-style-panel):not(.challenge-panel):not(.quality-dialog-hud):not(.fullscreen-exit-button):not(.fullscreen-tools-button):not(.universal-pause-button):not(.universal-pause-overlay) {
  grid-row: 2 !important;
  min-height: calc(100dvh - 132px) !important;
  margin-top: 14px !important;
}

/* In der Partie kommt nur die eigene Spielszene zum Einsatz. */
.game-dialog.round-active .quality-stage-signature,
.game-dialog:fullscreen .quality-stage-signature,
.game-dialog.portal-fullscreen .quality-stage-signature { display: none !important; }
.motion-stage { position: relative; contain: layout paint style; }
.motion-grid > * { will-change: transform, opacity, filter; }
.motion-grid button:active,
.motion-grid [role="button"]:active { transform: scale(.94); }
.bubble-cell:not(.empty) { animation: motion-bubble-float 2.4s ease-in-out infinite alternate; }
.bubble-cell:nth-child(3n) { animation-delay: -.8s; }
.bubble-cell:nth-child(4n) { animation-delay: -1.4s; }
.sport-scene > span,
.sport-court > i,
.sport-track > i,
.sport-pool > i { will-change: transform; animation: motion-character-idle 1.7s ease-in-out infinite alternate; }
.sport-scene > b { animation: motion-target-breathe 2.2s ease-in-out infinite alternate; }
.motion-projectile {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 10%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 50%;
  color: #f0a52f;
  font-size: 30px;
  font-style: normal;
  pointer-events: none;
  filter: drop-shadow(0 8px 6px rgba(3,19,56,.28));
}
.motion-projectile-bowling { color: #173a68; }
.motion-projectile-darts { color: #ffd45b; }
@keyframes motion-bubble-float { from { transform: translateY(1px) scale(.97); } to { transform: translateY(-4px) scale(1.025); } }
@keyframes motion-character-idle { from { transform: translateY(1px) rotate(-1deg); } to { transform: translateY(-6px) rotate(1deg); } }
@keyframes motion-target-breathe { from { transform: scale(.98); filter: brightness(.96); } to { transform: scale(1.025); filter: brightness(1.08); } }

/* Vollbild ist die Partie, nicht ein Einstellungsfenster. */
.game-dialog:fullscreen .collection-sidebar,
.game-dialog.portal-fullscreen .collection-sidebar {
  left: 50% !important;
  right: auto !important;
  bottom: max(12px,env(safe-area-inset-bottom)) !important;
  width: min(920px,calc(100vw - 28px)) !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: translateX(-50%);
  pointer-events: none;
}
.game-dialog:fullscreen .collection-sidebar details,
.game-dialog.portal-fullscreen .collection-sidebar details { display: none !important; }
.game-dialog:fullscreen .collection-sidebar #collection-status,
.game-dialog.portal-fullscreen .collection-sidebar #collection-status {
  display: table;
  max-width: min(760px,88vw);
  margin: 0 auto 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(3,19,56,.78);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.game-dialog:fullscreen .collection-sidebar #collection-actions,
.game-dialog.portal-fullscreen .collection-sidebar #collection-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.game-dialog:fullscreen .collection-sidebar #collection-actions button,
.game-dialog.portal-fullscreen .collection-sidebar #collection-actions button { min-height: 48px; height: 48px; box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.game-dialog:fullscreen .collection-sidebar #collection-actions .touch-row,
.game-dialog.portal-fullscreen .collection-sidebar #collection-actions .touch-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  margin: 0 !important;
}
.game-dialog:fullscreen .collection-sidebar #collection-actions .touch-row button,
.game-dialog.portal-fullscreen .collection-sidebar #collection-actions .touch-row button { width: clamp(58px, 8vw, 92px) !important; }
.game-dialog:fullscreen > .collection-layout,
.game-dialog.portal-fullscreen > .collection-layout,
.game-dialog:fullscreen > .game-layout,
.game-dialog.portal-fullscreen > .game-layout {
  display: block !important;
  position: relative !important;
  grid-template-columns: 1fr !important;
}
.game-dialog:fullscreen .collection-stage,
.game-dialog.portal-fullscreen .collection-stage,
.game-dialog:fullscreen .game-stage,
.game-dialog.portal-fullscreen .game-stage {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: none !important;
}
.game-dialog:fullscreen .game-sidebar,
.game-dialog.portal-fullscreen .game-sidebar {
  top: max(12px,env(safe-area-inset-top));
  right: auto !important;
  bottom: auto !important;
  left: max(12px,env(safe-area-inset-left));
  width: min(390px,54vw) !important;
  max-height: 30dvh !important;
  padding: 10px !important;
  border-radius: 18px !important;
}
.game-dialog:fullscreen .game-sidebar > label,
.game-dialog.portal-fullscreen .game-sidebar > label,
.game-dialog:fullscreen .game-sidebar > select,
.game-dialog.portal-fullscreen .game-sidebar > select,
.game-dialog:fullscreen .game-sidebar > details,
.game-dialog.portal-fullscreen .game-sidebar > details { display: none !important; }

@media (max-width: 900px) {
  .game-dialog[open]:not(.portal-fullscreen) > .challenge-panel,
  .game-dialog[open]:not(.portal-fullscreen) > .quality-dialog-hud { grid-template-columns: 1fr !important; }
  .game-dialog[open]:not(.portal-fullscreen) > .challenge-panel .challenge-levels { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .game-dialog[open]:not(.portal-fullscreen) > .quality-dialog-hud .quality-hud-score { justify-items: start !important; text-align: left !important; }
  .game-dialog[open]:not(.portal-fullscreen) > :not(.dialog-header):not(.game-style-panel):not(.challenge-panel):not(.quality-dialog-hud):not(.fullscreen-exit-button):not(.fullscreen-tools-button):not(.universal-pause-button):not(.universal-pause-overlay) { margin-inline: 10px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-stage *, .motion-grid > * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* Arcade-Felder wirken als zusammenhaengende Spielwelten statt als Kaestchen. */
.cave-board {
  gap: 0 !important;
  padding: 12px;
  overflow: hidden;
  border: 5px solid #153c68;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0,#8ee6dc33,transparent 38%), #172646;
  box-shadow: inset 0 0 55px #020c20aa, 0 18px 38px #03133832;
}
.cave-cell {
  border-radius: 0 !important;
  background: linear-gradient(145deg,#b2845b,#815d43) !important;
  box-shadow: inset 0 0 0 1px #f4d3a218;
}
.cave-cell.wall {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg,#263552,#111a33) !important;
  clip-path: polygon(7% 16%,31% 4%,56% 12%,78% 2%,96% 30%,90% 72%,68% 94%,38% 87%,9% 96%,0 59%);
  filter: drop-shadow(0 7px 5px #02081566);
}
.cave-cell.player {
  z-index: 3;
  border-radius: 50% !important;
  background: radial-gradient(circle,#ffd45b 0 32%,#ff8a3d55 34%,transparent 68%) !important;
  animation: motion-cave-lantern 1.1s ease-in-out infinite alternate;
}
.flight-grid,
.space-grid,
.warehouse-grid,
.road-board,
.dribbel-grid { position: relative; isolation: isolate; }
.flight-grid::after,
.space-grid::after,
.warehouse-grid::after,
.road-board::after,
.dribbel-grid::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,transparent 15%,rgba(255,255,255,.16) 46%,transparent 75%);
  transform: translateX(-100%);
  animation: motion-world-light 5.5s linear infinite;
}
.flight-cell.balloon::before,
.space-cell:not(.rock),
.warehouse-cell:not(.wall) { transition: transform .38s cubic-bezier(.2,.8,.2,1), filter .3s ease; }
.road-cell.car::before { animation: motion-car-drive .65s ease-in-out infinite alternate; }
.road-cell.player::before,
.flight-cell.balloon::before { filter: drop-shadow(0 8px 5px rgba(3,19,56,.28)); }
@keyframes motion-cave-lantern { from { filter: brightness(.96) drop-shadow(0 0 4px #ffd45b66); } to { filter: brightness(1.18) drop-shadow(0 0 13px #ffd45bcc); } }
@keyframes motion-world-light { to { transform: translateX(100%); } }
@keyframes motion-car-drive { from { transform: translateX(-5px) rotate(-1deg); } to { transform: translateX(5px) rotate(1deg); } }

@media (min-width: 1100px) {
  .game-dialog[open]:not(.portal-fullscreen) {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    grid-template-rows: auto auto minmax(0, 1fr);
    column-gap: 20px;
    padding: 0 clamp(22px, 4vw, 64px) 34px;
    overflow: auto;
  }
  .game-dialog[open]:not(.portal-fullscreen) > .dialog-header {
    grid-column: 1 / -1;
    grid-row: 1;
    width: calc(100% + 2 * clamp(22px, 4vw, 64px));
    margin-inline: calc(-1 * clamp(22px, 4vw, 64px));
  }
  .game-dialog[open]:not(.portal-fullscreen) > .challenge-panel {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
    margin: 20px 0 0;
    padding: 19px;
    border-radius: 24px 24px 0 0;
  }
  .game-dialog[open]:not(.portal-fullscreen) > .challenge-panel .challenge-age-fit { grid-column: 1; }
  .game-dialog[open]:not(.portal-fullscreen) > .challenge-panel .challenge-levels { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .game-dialog[open]:not(.portal-fullscreen) > .quality-dialog-hud {
    grid-column: 2;
    grid-row: 3;
    align-self: stretch;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    margin: 0;
    padding: 19px;
    border-radius: 0 0 24px 24px;
  }
  .game-dialog[open]:not(.portal-fullscreen) > .quality-dialog-hud .quality-hud-mission { grid-column: 1; grid-row: auto; }
  .game-dialog[open]:not(.portal-fullscreen) > .quality-dialog-hud .quality-hud-score { justify-items: start; text-align: left; }
  .game-dialog[open]:not(.portal-fullscreen) > :not(.dialog-header):not(.game-style-panel):not(.challenge-panel):not(.quality-dialog-hud):not(.fullscreen-exit-button):not(.fullscreen-tools-button):not(.universal-pause-button):not(.universal-pause-overlay) {
    grid-column: 1;
    grid-row: 2 / 4;
    align-self: start;
    width: 100%;
    min-height: calc(100dvh - 145px);
    margin: 20px 0 0;
  }
  .game-dialog[open]:not(.portal-fullscreen) > .game-style-panel {
    position: fixed;
    z-index: 90;
    top: 84px;
    right: clamp(22px, 4vw, 64px);
    width: min(560px, calc(100vw - 44px));
    margin: 0;
    border-radius: 20px;
  }
}

/* Version 2.27: sichtbare Spielflächen, kartenspezifische Gestaltung und iPad-Steuerung */
.style-tool-button[hidden],
.game-world-avatar[hidden],
.game-style-panel[hidden] { display: none !important; }

.game-dialog:not(.card-style-enabled) > .game-style-panel,
.game-dialog:not(.card-style-enabled) .style-tool-button,
.game-dialog:not(.card-style-enabled) .game-world-avatar { display: none !important; }

.game-dialog.card-style-enabled > .game-style-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
  padding: 16px;
  overflow: hidden;
}
.game-dialog.card-style-enabled > .game-style-panel .theme-panel-intro {
  grid-column: 1 / -1;
  min-width: 0;
}
.game-dialog.card-style-enabled > .game-style-panel label,
.game-dialog.card-style-enabled > .game-style-panel select { min-width: 0; width: 100%; }

.game-dialog button,
.game-dialog [role="button"],
.game-dialog input,
.game-dialog select,
.sport-directions,
.sport-directions button {
  touch-action: manipulation !important;
  -webkit-touch-callout: none;
}
.sport-directions button,
.touch-row button,
.arcade-touch button,
.island-run-controls button {
  -webkit-user-select: none;
  user-select: none;
}

.collection-stage {
  isolation: isolate;
  background-attachment: local;
}
.collection-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(3,19,56,.1), rgba(3,19,56,.26)), var(--quality-world-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.08) contrast(1.02);
}
.collection-panel {
  border-color: rgba(255,255,255,.7);
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(240,249,255,.82));
  box-shadow: 0 24px 70px rgba(3,19,56,.22), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(12px) saturate(1.08);
}
.sport-panel {
  position: relative;
  width: min(100%, 860px);
  overflow: hidden;
}
.sport-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 170px;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(8,58,106,.12), transparent 55%, rgba(0,180,192,.12));
}
.sport-world-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: -6px 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(19,77,117,.14);
  border-radius: 18px;
  color: #031338;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 28px rgba(3,19,56,.08);
}
.sport-world-header > span:nth-child(2) { display: grid; line-height: 1.05; }
.sport-world-header small { color: #047e9b; font-size: .66rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.sport-world-header strong { font-size: clamp(1.05rem, 2.4vw, 1.45rem); }
.sport-world-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #006ec8, #00aeba);
  box-shadow: 0 8px 18px rgba(0,110,200,.24);
  font-weight: 950;
}
.sport-world-header i {
  width: 46px;
  height: 34px;
  border-radius: 10px 10px 16px 16px;
  background: linear-gradient(115deg, #dcff7c 0 48%, #fff 49% 54%, #00aeba 55%);
  transform: skewX(-10deg);
  box-shadow: 0 7px 16px rgba(3,19,56,.12);
}

.sport-panel[data-sport-game="dribbel"] {
  background: linear-gradient(145deg, rgba(248,253,255,.92), rgba(220,248,237,.88));
}
.sport-panel[data-sport-game="dribbel"] .score-banner {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.58);
  color: #fff;
  background: linear-gradient(100deg, #043b70, #007f91);
  box-shadow: 0 12px 28px rgba(3,57,102,.18);
}
.dribbel-grid {
  position: relative;
  gap: 6px;
  padding: 16px;
  border: 7px solid rgba(255,255,255,.76);
  border-radius: 28px;
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(255,255,255,.72) 49.5% 50.5%, transparent 50.6%),
    radial-gradient(circle at 50% 50%, transparent 0 14%, rgba(255,255,255,.7) 14.5% 15.5%, transparent 16%),
    repeating-linear-gradient(90deg, #43a76e 0 20%, #3a9a63 20% 40%);
  box-shadow: 0 20px 48px rgba(15,82,59,.2), inset 0 0 0 2px rgba(14,104,67,.2);
}
.sport-cell {
  position: relative;
  overflow: visible;
  border-radius: 15px;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.sport-cell::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 6%;
  left: 8%;
  height: 8%;
  border-radius: 50%;
  background: rgba(5,45,29,.16);
  filter: blur(3px);
}
.sport-cell.wall { background: transparent; }
.sport-cell.goal { outline: 0; }
.sport-cell.checkpoint { background: rgba(255,222,80,.08); }
.sport-cell.player-cell { z-index: 3; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 2px rgba(255,255,255,.34), 0 8px 18px rgba(3,19,56,.16); }
.dribbel-player,
.dribbel-barrier,
.dribbel-gate,
.dribbel-goal { position: relative; z-index: 2; display: block; width: 74%; height: 74%; }
.dribbel-player i {
  position: absolute;
  top: 8%; left: 35%;
  width: 30%; height: 30%;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #9a5b3e;
  box-shadow: 0 3px 8px rgba(3,19,56,.25);
}
.dribbel-player b {
  position: absolute;
  top: 34%; left: 26%;
  width: 48%; height: 44%;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(90deg, #f7d54f 0 24%, #006ec8 25% 75%, #f7d54f 76%);
  box-shadow: 0 7px 12px rgba(3,19,56,.2);
}
.dribbel-player em {
  position: absolute;
  right: -2%; bottom: 0;
  width: 34%; height: 34%;
  border: 3px solid #fff;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff 0 17%, transparent 18%), conic-gradient(#031338 0 12%, #fff 12% 25%, #031338 25% 38%, #fff 38% 50%, #031338 50% 62%, #fff 62% 75%, #031338 75% 88%, #fff 88%);
  box-shadow: 0 5px 10px rgba(3,19,56,.28);
}
.dribbel-barrier i,
.dribbel-barrier b {
  position: absolute;
  left: 8%; right: 8%;
  height: 19%;
  border: 3px solid #fff;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, #ee5d45 0 12px, #fff 12px 24px);
  box-shadow: 0 6px 10px rgba(3,19,56,.2);
}
.dribbel-barrier i { top: 25%; transform: rotate(-4deg); }
.dribbel-barrier b { top: 52%; transform: rotate(4deg); }
.dribbel-gate i,
.dribbel-gate b {
  position: absolute;
  top: 15%; bottom: 5%;
  width: 10%;
  border-radius: 999px;
  background: #ffd55a;
  box-shadow: 0 5px 8px rgba(3,19,56,.18);
}
.dribbel-gate i { left: 18%; }
.dribbel-gate b { right: 18%; }
.dribbel-gate em {
  position: absolute;
  top: 15%; left: 21%; right: 21%;
  height: 30%;
  border-radius: 7px;
  background: linear-gradient(90deg, #006ec8, #00aeba);
  box-shadow: 0 5px 10px rgba(3,19,56,.2);
}
.dribbel-goal {
  border: 6px solid #fff;
  border-bottom-width: 9px;
  border-radius: 13px 13px 4px 4px;
  background:
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(255,255,255,.58) 10px 12px),
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,.58) 10px 12px),
    rgba(0,110,200,.18);
  box-shadow: 0 9px 16px rgba(3,19,56,.24);
}
.dribbel-goal i { position: absolute; inset: 7px; border: 2px solid rgba(3,19,56,.15); }
.sport-directions { gap: 10px; }
.sport-directions button {
  min-height: 66px;
  border: 1px solid rgba(255,255,255,.36) !important;
  color: #fff !important;
  background: linear-gradient(145deg, #06467d, #007f91) !important;
  box-shadow: 0 10px 22px rgba(3,19,56,.22) !important;
  font-size: 1.7rem;
}
.sport-directions button:active { transform: translateY(2px) scale(.98); }

@media (max-width: 760px) {
  .game-dialog.card-style-enabled > .game-style-panel {
    grid-template-columns: 1fr;
    width: auto;
    max-width: none;
    max-height: min(56dvh, 540px);
    overflow: auto;
  }
  .game-dialog.card-style-enabled > .game-style-panel .theme-panel-intro { grid-column: auto; }
  .sport-world-header i { display: none; }
  .dribbel-grid { gap: 4px; padding: 9px; border-width: 4px; border-radius: 20px; }
  .sport-directions button { min-height: 58px; }
}

/* Version 2.28: individuelle Spielbilder werden Teil jeder echten Spielflaeche */
.quality-stage-enhanced {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #dff4ff;
  background-image:
    linear-gradient(180deg, rgba(3,19,56,.04), rgba(3,19,56,.18)),
    var(--quality-world-image) !important;
  background-position: center !important;
  background-size: cover !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), inset 0 -80px 120px rgba(3,19,56,.12);
}
.quality-stage-enhanced::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 14%, color-mix(in srgb, var(--quality-accent-two) 28%, transparent), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--quality-accent) 12%, transparent), transparent 52%);
  mix-blend-mode: screen;
}
.quality-stage-enhanced > :not(.quality-stage-signature) { z-index: 1; }
.quality-stage-signature {
  position: absolute;
  z-index: 35;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: 82px 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: min(300px, calc(100% - 28px));
  min-height: 64px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(120deg, rgba(3,19,56,.9), rgba(4,69,112,.78));
  box-shadow: 0 16px 36px rgba(3,19,56,.28);
  backdrop-filter: blur(12px) saturate(1.12);
  pointer-events: none;
}
.quality-stage-signature img { display: block; object-fit: cover; }
.quality-stage-scene { width: 82px; height: 50px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.quality-stage-avatar { width: 42px; height: 42px; border: 2px solid rgba(255,255,255,.72); border-radius: 13px; }
.quality-stage-signature span { min-width: 0; }
.quality-stage-signature small,
.quality-stage-signature strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quality-stage-signature small { color: #9eece4; font-size: .54rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.quality-stage-signature strong { margin-top: 2px; font-size: .72rem; }

.game-dialog[data-quality-world="cards"] .quality-stage-signature,
.game-dialog.skat-room-active .quality-stage-signature { bottom: auto; top: 14px; }
.island-run-stage.quality-stage-enhanced {
  background-color: #075e9f;
  background-image:
    linear-gradient(180deg, rgba(3,19,56,.04), rgba(3,19,56,.12)),
    url("assets/games/inselsturm.svg") !important;
  background-position: center !important;
  background-size: cover !important;
}
.island-run-stage.three-ready {
  background-color: #69bfd4 !important;
  background-image:
    linear-gradient(180deg, rgba(38,149,204,.04) 0%, rgba(13,99,161,.08) 62%, rgba(2,49,100,.18) 100%),
    url('./assets/inselsturm/archipelago-panorama-v2.png?v=2.34.5') !important;
  background-position: center center !important;
  background-size: cover !important;
}
.island-run-stage.quality-stage-enhanced::after {
  background: linear-gradient(180deg, rgba(3,19,56,.03), rgba(3,19,56,.18));
  mix-blend-mode: multiply;
}
.island-run-stage .quality-stage-signature { display: none; }
.island-run-host,
.island-run-host canvas { background: transparent; }
.island-run-stage {
  isolation: isolate;
  background-image:
    linear-gradient(180deg, rgba(4, 42, 86, .04), rgba(1, 24, 54, .24)),
    url('./assets/inselsturm/archipelago-panorama-v2.png?v=2.34.5') !important;
  background-position: center center !important;
  background-size: cover !important;
}
.island-run-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.2), transparent 34%),
    linear-gradient(90deg, rgba(4,28,64,.12), transparent 25%, transparent 75%, rgba(4,28,64,.12));
  mix-blend-mode: screen;
}
.island-run-host { position: relative; z-index: 1; }
.island-run-stage.quality-stage-enhanced > .island-run-toolbar { z-index: 48; }
.island-run-stage.quality-stage-enhanced > .island-run-pause { z-index: 90; }
.island-run-stage.quality-stage-enhanced > .island-run-hud,
.island-run-stage.quality-stage-enhanced > .island-run-questbar,
.island-run-stage.quality-stage-enhanced > .island-run-route,
.island-run-stage.quality-stage-enhanced > .island-run-legend { z-index: 4; }
.island-run-stage.quality-stage-enhanced > .island-run-message { z-index: 5; }
.island-run-stage.quality-stage-enhanced > .island-run-cue { z-index: 52; }
.island-run-stage.quality-stage-enhanced > .island-run-flash { z-index: 6; }
.island-run-toolbar {
  position: absolute;
  z-index: 48;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  display: flex;
  gap: 8px;
}
.island-run-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 13px 8px 8px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 999px;
  color: #fff;
  background: rgba(3,30,66,.78);
  box-shadow: 0 12px 34px rgba(0,18,45,.3);
  backdrop-filter: blur(14px);
}
.island-run-toolbar button span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #062653; background: #fff; font-size: 17px; }
.island-run-toolbar button b { font-size: 13px; }
.island-run-toolbar button[aria-pressed='true'] { background: linear-gradient(135deg, rgba(0,121,230,.94), rgba(0,193,184,.88)); }
.island-run-pause[hidden] { display: none !important; }
.island-run-pause {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1,20,48,.45);
  backdrop-filter: blur(10px) saturate(.8);
}
.island-run-pause > div {
  width: min(440px, 92%);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 28px;
  color: #fff;
  text-align: center;
  background: linear-gradient(145deg, rgba(4,39,84,.96), rgba(5,112,132,.92));
  box-shadow: 0 28px 70px rgba(0,14,38,.46);
}
.island-run-pause h3 { margin: 8px 0; color: #fff; font-size: clamp(30px, 5vw, 54px); }
.island-run-pause p { margin: 0 auto 22px; color: rgba(255,255,255,.82); }
.island-run-pause small { display: block; margin-top: 14px; color: rgba(255,255,255,.7); }
.island-run-stage.is-paused canvas { filter: saturate(.68) brightness(.76); }
.island-run-stage.camera-chase .island-run-crosshair { opacity: .35; transform: scale(.72); }
.island-run-stage.camera-first .island-run-crosshair { opacity: 1; }
.island-run-host {
  position: absolute !important;
  z-index: 1;
  inset: 0;
}

/* Version 2.29.3: ruhige, echte Spielflaeche fuer inselsturm */
.island-run-stage.three-ready::after { display: none; }
.island-run-stage.three-ready .island-run-hud,
.island-run-stage.three-ready .island-run-questbar,
.island-run-stage.three-ready .island-run-route,
.island-run-stage.three-ready .island-run-message,
.island-run-stage.three-ready .island-run-crosshair,
.island-run-stage.three-ready .island-run-cue,
.island-run-stage.three-ready .island-run-flash,
.island-run-stage.three-ready .island-run-legend { position: absolute; }

.game-dialog:fullscreen .island-run-stage.three-ready .island-run-hud,
.game-dialog.portal-fullscreen .island-run-stage.three-ready .island-run-hud {
  top: max(16px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  right: max(154px, calc(env(safe-area-inset-right) + 136px));
  grid-template-columns: repeat(5, minmax(88px, 150px));
  justify-content: start;
  gap: 7px;
}
.game-dialog:fullscreen .island-run-stage.three-ready .island-run-hud span,
.game-dialog.portal-fullscreen .island-run-stage.three-ready .island-run-hud span {
  padding: 7px 10px;
  border-color: rgba(255,255,255,.32);
  background: rgba(3,25,48,.72);
  box-shadow: 0 8px 22px rgba(1,12,27,.18);
}
.game-dialog:fullscreen .island-run-stage.three-ready .island-run-hud b,
.game-dialog.portal-fullscreen .island-run-stage.three-ready .island-run-hud b { font-size: 16px; }
.game-dialog:fullscreen .island-run-stage.three-ready .island-run-questbar,
.game-dialog.portal-fullscreen .island-run-stage.three-ready .island-run-questbar {
  top: max(76px, calc(env(safe-area-inset-top) + 66px));
  left: max(18px, env(safe-area-inset-left));
  width: min(660px, calc(100% - 190px));
  transform: none;
}
.game-dialog:fullscreen .island-run-stage.three-ready .island-run-route,
.game-dialog.portal-fullscreen .island-run-stage.three-ready .island-run-route {
  top: max(124px, calc(env(safe-area-inset-top) + 116px));
  left: max(22px, env(safe-area-inset-left));
  width: min(570px, calc(100% - 230px));
  transform: none;
}
.game-dialog:fullscreen .island-run-stage.three-ready .island-run-legend,
.game-dialog.portal-fullscreen .island-run-stage.three-ready .island-run-legend {
  right: auto;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(94px, calc(env(safe-area-inset-bottom) + 82px));
  grid-template-columns: repeat(2, auto);
  padding: 7px 9px;
  background: rgba(3,25,48,.7);
}
.game-dialog:fullscreen .island-run-stage.three-ready .island-run-crosshair,
.game-dialog.portal-fullscreen .island-run-stage.three-ready .island-run-crosshair { top: 52%; }
.game-dialog:fullscreen .island-run-stage.three-ready .island-run-message,
.game-dialog.portal-fullscreen .island-run-stage.three-ready .island-run-message {
  top: 50%;
  width: min(520px, calc(100% - 52px));
  padding: clamp(20px, 3vw, 32px);
}
.game-dialog:fullscreen .island-run-controls,
.game-dialog.portal-fullscreen .island-run-controls {
  left: 50%;
  right: auto;
  width: min(650px, calc(100vw - 40px));
  transform: translateX(-50%);
}
.island-run-controls,
.island-run-controls button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

@media (max-width: 820px) {
  .game-dialog:fullscreen .island-run-stage.three-ready .island-run-hud,
  .game-dialog.portal-fullscreen .island-run-stage.three-ready .island-run-hud {
    right: max(74px, calc(env(safe-area-inset-right) + 66px));
    grid-template-columns: repeat(3, minmax(72px, 1fr));
  }
  .game-dialog:fullscreen .island-run-stage.three-ready .island-run-hud span:nth-child(4),
  .game-dialog.portal-fullscreen .island-run-stage.three-ready .island-run-hud span:nth-child(4) { display: none; }
  .game-dialog:fullscreen .island-run-stage.three-ready .island-run-questbar,
  .game-dialog.portal-fullscreen .island-run-stage.three-ready .island-run-questbar {
    top: max(116px, calc(env(safe-area-inset-top) + 106px));
    width: calc(100% - 92px);
  }
  .game-dialog:fullscreen .island-run-stage.three-ready .island-run-route,
  .game-dialog.portal-fullscreen .island-run-stage.three-ready .island-run-route {
    top: max(202px, calc(env(safe-area-inset-top) + 192px));
    width: calc(100% - 110px);
  }
}

@media (max-width: 760px) {
  .quality-stage-signature {
    grid-template-columns: 54px 36px minmax(0, 1fr);
    right: 8px;
    bottom: 8px;
    width: min(240px, calc(100% - 16px));
    min-height: 50px;
    padding: 5px;
    border-radius: 14px;
  }
  .quality-stage-scene { width: 54px; height: 38px; border-radius: 9px; }
  .quality-stage-avatar { width: 36px; height: 36px; border-radius: 10px; }
  .quality-stage-signature strong { font-size: .62rem; }
  .quality-stage-signature small { font-size: .47rem; }
}

/* Version 2.30.1: Im Vollbild bleibt die Spielflaeche frei. Einstellungen liegen in einem kleinen, einblendbaren Spielmenue. */
.fullscreen-tools-button {
  position: fixed;
  z-index: 1001;
  top: max(12px, env(safe-area-inset-top));
  right: max(186px, calc(env(safe-area-inset-right) + 186px));
  display: none;
  align-items: center;
  gap: 8px;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
  padding: 7px 14px 7px 9px !important;
  border: 1px solid rgba(255,255,255,.46) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgba(3,19,56,.82) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.26) !important;
  backdrop-filter: blur(12px);
}
.fullscreen-tools-button span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.16); font-size: 20px; }
.fullscreen-tools-button small { color: #fff; font-size: 11px; font-weight: 900; }
.game-dialog:fullscreen > .fullscreen-tools-button:not([hidden]),
.game-dialog.portal-fullscreen > .fullscreen-tools-button:not([hidden]) {
  display: inline-flex !important;
  position: fixed !important;
  top: max(12px, env(safe-area-inset-top)) !important;
  right: max(186px, calc(env(safe-area-inset-right) + 186px)) !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
}

.game-dialog:fullscreen .game-sidebar,
.game-dialog.portal-fullscreen .game-sidebar,
.game-dialog:fullscreen .worlds-sidebar,
.game-dialog.portal-fullscreen .worlds-sidebar {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-26px) scale(.96) !important;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease !important;
}
.game-dialog:fullscreen.fullscreen-tools-open .game-sidebar,
.game-dialog.portal-fullscreen.fullscreen-tools-open .game-sidebar,
.game-dialog:fullscreen.fullscreen-tools-open .worlds-sidebar,
.game-dialog.portal-fullscreen.fullscreen-tools-open .worlds-sidebar {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

/* Die bisherigen Raster erhalten sichtbare Bewegung, bleiben bei Brett- und Denkspielen aber weiterhin klar bedienbar. */
.cave-cell.player,
.warehouse-cell:not(.wall):not(.goal):not(:empty),
.road-cell.player,
.flight-cell.balloon,
.dribbel-player { animation: motion-player-alive 1.05s ease-in-out infinite alternate; }
.flight-cell.cloud { animation: motion-cloud-drift 2.8s ease-in-out infinite alternate; }
.flight-cell.cloud:nth-child(3n) { animation-delay: -1.2s; }
.road-cell.car { animation: motion-traffic 1.35s ease-in-out infinite alternate; }
.road-cell.car:nth-child(even) { animation-direction: alternate-reverse; }
.space-cell.rock { animation: motion-rock-spin 4.5s linear infinite; }
.space-cell:not(.rock):not(:empty) { animation: motion-star-glow 1.7s ease-in-out infinite alternate; }
.warehouse-cell.goal,
.goal-hole.target,
.dribbel-gate,
.city-cell.filled,
.zoo-cell:not(:empty) { animation: motion-goal-glow 1.35s ease-in-out infinite alternate; }
.sorting-belt::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg,transparent 0 34px,rgba(255,255,255,.12) 34px 43px);
  animation: motion-belt 1.4s linear infinite;
}
.sorting-belt { position: relative; overflow: hidden; }

@keyframes motion-player-alive { from { transform: translateY(1px) scale(.98); filter: drop-shadow(0 4px 3px rgba(3,19,56,.2)); } to { transform: translateY(-5px) scale(1.04); filter: drop-shadow(0 10px 8px rgba(3,19,56,.34)); } }
@keyframes motion-cloud-drift { from { transform: translateX(-7px) translateY(2px); opacity: .72; } to { transform: translateX(8px) translateY(-3px); opacity: 1; } }
@keyframes motion-traffic { from { transform: translateX(-5px) rotate(-1deg); } to { transform: translateX(6px) rotate(1deg); } }
@keyframes motion-rock-spin { to { transform: rotate(360deg); } }
@keyframes motion-star-glow { from { opacity: .58; filter: brightness(.9); } to { opacity: 1; filter: brightness(1.45) drop-shadow(0 0 7px #ffd45b); } }
@keyframes motion-goal-glow { from { filter: brightness(.96); transform: scale(.98); } to { filter: brightness(1.14) drop-shadow(0 0 8px rgba(255,212,91,.62)); transform: scale(1.025); } }
@keyframes motion-belt { to { transform: translateX(43px); } }

@media (max-width: 760px) {
  .fullscreen-tools-button { right: max(72px, calc(env(safe-area-inset-right) + 64px)); padding: 7px !important; }
  .game-dialog:fullscreen > .fullscreen-tools-button:not([hidden]),
  .game-dialog.portal-fullscreen > .fullscreen-tools-button:not([hidden]) { right: max(72px, calc(env(safe-area-inset-right) + 64px)) !important; }
  .fullscreen-tools-button small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cave-cell.player, .warehouse-cell, .road-cell, .flight-cell, .space-cell, .dribbel-player,
  .dribbel-gate, .city-cell, .zoo-cell, .goal-hole, .sorting-belt::before { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* Version 2.31.0: Eigene Spielkulissen. Bewegte Spiele stehen in einer Szene,
   klassische Brett-, Karten- und Denkspiele behalten bewusst ihre ruhige Fläche. */
.game-dialog[data-scene-mode="motion"] .collection-stage,
.game-dialog[data-scene-mode="motion"] .game-stage,
.game-dialog[data-scene-mode="world"] .collection-stage,
.game-dialog[data-scene-mode="world"] .game-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #0b4678 !important;
  background-image:
    linear-gradient(180deg, rgba(1,22,52,.08), rgba(1,22,52,.38)),
    var(--active-game-image) !important;
  background-position: center center !important;
  background-size: cover !important;
  box-shadow: inset 0 -100px 120px rgba(1,20,49,.24);
}
.game-dialog[data-scene-mode="motion"] .collection-stage::before,
.game-dialog[data-scene-mode="motion"] .game-stage::before,
.game-dialog[data-scene-mode="world"] .collection-stage::before,
.game-dialog[data-scene-mode="world"] .game-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -5%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.3), transparent 18%),
    linear-gradient(118deg, transparent 20%, rgba(105,226,255,.2) 42%, transparent 62%);
  background-size: 100% 100%, 220% 100%;
  animation: game-scene-atmosphere 9s ease-in-out infinite alternate;
}
.game-dialog[data-scene-mode="motion"] .collection-panel,
.game-dialog[data-scene-mode="world"] .collection-panel {
  border-color: rgba(255,255,255,.54);
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(224,247,250,.68));
  box-shadow: 0 28px 80px rgba(0,24,58,.3), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(11px) saturate(1.2);
}
.game-dialog[data-scene-mode="motion"] .motion-grid {
  transform: perspective(1100px) rotateX(3deg);
  transform-origin: 50% 70%;
  filter: drop-shadow(0 18px 20px rgba(1,24,52,.24));
}
.game-dialog[data-scene-mode="motion"].round-active .collection-stage,
.game-dialog[data-scene-mode="motion"].round-active .game-stage {
  animation: game-scene-breathe 7s ease-in-out infinite alternate;
}
.game-dialog[data-scene-mode="classic"] .collection-stage,
.game-dialog[data-scene-mode="classic"] .game-stage {
  background-image:
    linear-gradient(145deg, rgba(246,252,255,.92), rgba(226,244,244,.94)),
    var(--active-game-image) !important;
  background-position: center !important;
  background-size: cover !important;
}
@keyframes game-scene-atmosphere {
  from { transform: translate3d(-1.2%, -.4%, 0) scale(1.01); background-position: center, 0 0; opacity: .62; }
  to { transform: translate3d(1.4%, .5%, 0) scale(1.04); background-position: center, 100% 0; opacity: .92; }
}
@keyframes game-scene-breathe {
  from { background-position: 48% 50%; }
  to { background-position: 52% 50%; }
}

.game-dialog:fullscreen[data-scene-mode="motion"] .collection-stage,
.game-dialog.portal-fullscreen[data-scene-mode="motion"] .collection-stage,
.game-dialog:fullscreen[data-scene-mode="world"] .collection-stage,
.game-dialog.portal-fullscreen[data-scene-mode="world"] .collection-stage {
  min-height: 100dvh !important;
  border-radius: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .game-dialog[data-scene-mode] .collection-stage,
  .game-dialog[data-scene-mode] .game-stage,
  .game-dialog[data-scene-mode] .collection-stage::before,
  .game-dialog[data-scene-mode] .game-stage::before { animation: none !important; }
}

/* Sport ist im Vollbild eine Arena und keine Karte im Kartenrahmen. */
.game-dialog:fullscreen:has(.sport-panel) .sport-panel,
.game-dialog.portal-fullscreen:has(.sport-panel) .sport-panel {
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: clamp(16px, 2.2vw, 32px) clamp(18px, 5vw, 78px) max(66px, calc(env(safe-area-inset-bottom) + 54px)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(155deg, rgba(242,251,255,.97), rgba(207,242,244,.92)) !important;
  box-shadow: none !important;
  box-sizing: border-box;
  overflow: auto;
}
.game-dialog:fullscreen:has(.sport-panel) .collection-stage,
.game-dialog.portal-fullscreen:has(.sport-panel) .collection-stage {
  display: block !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.game-dialog:fullscreen:has(.sport-panel) .sport-world-header,
.game-dialog.portal-fullscreen:has(.sport-panel) .sport-world-header { background: rgba(255,255,255,.66); backdrop-filter: blur(10px); }
.game-dialog:fullscreen:has(.sport-panel) .sport-scene,
.game-dialog.portal-fullscreen:has(.sport-panel) .sport-scene,
.game-dialog:fullscreen:has(.sport-panel) .sport-court,
.game-dialog.portal-fullscreen:has(.sport-panel) .sport-court { min-height: clamp(230px, 36dvh, 390px); }
.game-dialog:fullscreen:has(.sport-panel) .collection-sidebar #collection-status,
.game-dialog.portal-fullscreen:has(.sport-panel) .collection-sidebar #collection-status,
.game-dialog:fullscreen .sport-side-note,
.game-dialog.portal-fullscreen .sport-side-note { display: none !important; }
.game-dialog:fullscreen:has(.sport-inline-actions) .collection-sidebar,
.game-dialog.portal-fullscreen:has(.sport-inline-actions) .collection-sidebar { display: none !important; }
.game-dialog:fullscreen:has(.sport-inline-actions) .sport-panel,
.game-dialog.portal-fullscreen:has(.sport-inline-actions) .sport-panel { padding-bottom: max(14px, env(safe-area-inset-bottom)) !important; }

/* Kamera und Pause bleiben auch neben der Fünfer-HUD sichtbar und anklickbar. */
.island-run-stage.three-ready > .island-run-hud { right: 270px; }
.island-run-stage.quality-stage-enhanced > .island-run-toolbar {
  position: absolute !important;
  top: max(14px, env(safe-area-inset-top)) !important;
  right: max(14px, env(safe-area-inset-right)) !important;
  z-index: 80 !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.game-dialog:fullscreen .island-run-stage.three-ready > .island-run-hud,
.game-dialog.portal-fullscreen .island-run-stage.three-ready > .island-run-hud {
  right: max(286px, calc(env(safe-area-inset-right) + 274px)) !important;
}
.game-dialog:fullscreen .island-run-stage.quality-stage-enhanced > .island-run-toolbar,
.game-dialog.portal-fullscreen .island-run-stage.quality-stage-enhanced > .island-run-toolbar {
  top: max(82px, calc(env(safe-area-inset-top) + 68px)) !important;
  right: max(18px, env(safe-area-inset-right)) !important;
}
@media (max-width: 900px) {
  .island-run-toolbar button { padding-right: 8px; }
  .island-run-toolbar button b { display: none; }
  .island-run-stage.three-ready > .island-run-hud { right: 112px; }
  .game-dialog:fullscreen .island-run-stage.three-ready > .island-run-hud,
  .game-dialog.portal-fullscreen .island-run-stage.three-ready > .island-run-hud {
    right: max(116px, calc(env(safe-area-inset-right) + 104px)) !important;
  }
}

/* Version 2.33: Sportspiele werden zu eigenen, bewegten Arenen. */
.sport-motion-scene {
  position: relative;
  isolation: isolate;
  min-height: clamp(300px, 41vw, 410px);
  overflow: hidden;
  border: 5px solid rgba(255,255,255,.82);
  border-radius: 30px;
  box-shadow: 0 24px 58px rgba(3,19,56,.24), inset 0 0 0 1px rgba(3,19,56,.08);
  perspective: 1000px;
  transform-style: preserve-3d;
}
.sport-motion-scene::after { content:""; position:absolute; z-index:20; inset:auto 0 0; height:10%; pointer-events:none; background:linear-gradient(transparent,rgba(3,19,56,.18)); }
.sport-figure { --skin:#a85f3d; --shirt:#007dc6; --shirt-2:#d9ff6b; --shorts:#08245b; position:absolute; z-index:12; width:66px; height:112px; transform-origin:50% 100%; filter:drop-shadow(0 10px 9px rgba(3,19,56,.25)); }
.sport-motion-scene .sport-figure>i { position:absolute; z-index:4; top:0; left:18px; width:31px; height:33px; margin:0; border:3px solid #fff; border-radius:46% 46% 50% 50%; background:radial-gradient(circle at 35% 42%,#fff 0 2px,transparent 3px),linear-gradient(145deg,var(--skin),color-mix(in srgb,var(--skin),#642f25 30%)); box-shadow:inset 0 9px 0 #2c2034; animation:none; }
.sport-motion-scene .sport-figure>b { position:absolute; z-index:3; top:29px; right:auto; bottom:auto; left:12px; width:43px; height:48px; border:3px solid #fff; border-radius:17px 17px 12px 12px; background:linear-gradient(90deg,var(--shirt-2) 0 20%,var(--shirt) 21% 79%,var(--shirt-2) 80%); font-size:0; animation:none; }
.sport-motion-scene .sport-figure>b::before,.sport-motion-scene .sport-figure>b::after { content:""; position:absolute; top:5px; width:13px; height:42px; border-radius:999px; background:linear-gradient(var(--shirt) 0 56%,var(--skin) 57%); transform-origin:top; }
.sport-motion-scene .sport-figure>b::before { left:-12px; transform:rotate(16deg); }
.sport-motion-scene .sport-figure>b::after { right:-12px; transform:rotate(-16deg); }
.sport-motion-scene .sport-figure>em { position:absolute; z-index:2; top:72px; right:auto; bottom:auto; left:17px; width:13px; height:37px; border-radius:7px 7px 4px 4px; background:linear-gradient(var(--shorts) 0 38%,var(--skin) 39% 79%,#fff 80%); box-shadow:19px 0 0 var(--shorts); transform-origin:top; }
.sport-ball { position:absolute; z-index:15; width:27px; height:27px; border:3px solid rgba(255,255,255,.95); border-radius:50%; background:#f3b73d; box-shadow:0 8px 14px rgba(3,19,56,.28),inset -5px -5px 0 rgba(3,19,56,.16); }

/* Basketball: Hochhaus-Court mit echtem Wurfbogen. */
.basket-scene { background:linear-gradient(transparent 56%,rgba(255,255,255,.85) 56% 57%,transparent 57%),repeating-linear-gradient(90deg,transparent 0 13%,rgba(255,255,255,.18) 13% 13.5%),linear-gradient(#70c7f4 0 54%,#c66f42 54% 100%); }
.basket-scene::before { content:""; position:absolute; z-index:1; inset:5% 0 auto; height:44%; background:linear-gradient(90deg,#174270 0 7%,transparent 7% 10%,#0d315a 10% 20%,transparent 20% 24%,#245785 24% 36%,transparent 36% 42%,#153f6c 42% 56%,transparent 56% 62%,#0b315a 62% 75%,transparent 75% 80%,#1d4a75 80% 94%,transparent 94%); clip-path:polygon(0 100%,0 38%,7% 38%,7% 7%,20% 7%,20% 48%,29% 48%,29% 25%,42% 25%,42% 53%,54% 53%,54% 15%,68% 15%,68% 45%,78% 45%,78% 0,93% 0,93% 56%,100% 56%,100% 100%); opacity:.56; }
.arena-crowd { position:absolute; z-index:2; inset:48% 0 auto; height:12%; background:radial-gradient(circle,#ffd95d 0 2px,transparent 3px) 0 0/18px 13px,linear-gradient(90deg,#09234f,#214e79); border-block:4px solid rgba(255,255,255,.75); }
.basket-player { --shirt:#006ed0; --shirt-2:#ffdc50; left:21%; bottom:9%; }
.basket-backboard { position:absolute; z-index:6; top:16%; right:13%; width:100px; height:74px; border:7px solid #eaf7ff; background:rgba(255,255,255,.24); box-shadow:0 8px 16px rgba(3,19,56,.24); }
.basket-backboard i { position:absolute; inset:18px 25px 13px; border:5px solid #ff6f38; }
.basket-backboard b { position:absolute; right:15px; bottom:-16px; width:70px; height:15px; border:5px solid #ff713d; border-top:0; border-radius:0 0 50% 50%; background:none; }
.basket-ball { left:calc(21% + 54px); bottom:35%; background:repeating-linear-gradient(25deg,#f17a22 0 10px,#743116 11px 13px); }
.arena-shadow { position:absolute; z-index:2; left:15%; bottom:7%; width:130px; height:24px; border-radius:50%; background:rgba(3,19,56,.22); filter:blur(5px); }
.basket-scene.shot-good .basket-ball { animation:basket-shot-good 1.05s cubic-bezier(.25,.8,.32,1) both; }
.basket-scene.shot-miss .basket-ball { animation:basket-shot-miss 1.05s cubic-bezier(.25,.8,.32,1) both; }
.basket-scene.shot-good .basket-player,.basket-scene.shot-miss .basket-player { animation:athlete-jump .65s ease-in-out; }
@keyframes basket-shot-good { 0%{transform:translate(0,0) rotate(0)} 55%{transform:translate(300px,-160px) rotate(420deg)} 82%{transform:translate(430px,-100px) rotate(650deg)} 100%{transform:translate(442px,-25px) rotate(760deg)} }
@keyframes basket-shot-miss { 0%{transform:translate(0,0)} 60%{transform:translate(330px,-150px) rotate(500deg)} 100%{transform:translate(490px,35px) rotate(760deg)} }
@keyframes athlete-jump { 0%,100%{transform:translateY(0)} 45%{transform:translateY(-36px) rotate(-3deg)} }

/* Tennis: perspektivischer Sandplatz mit zwei Figuren. */
.tennis-court { display:block; background:linear-gradient(#79cfee 0 24%,#c36d3f 24% 100%); }
.tennis-court::before { content:""; position:absolute; z-index:2; inset:31% 8% 5%; border:5px solid #fff; background:linear-gradient(90deg,transparent 49.6%,#fff 49.6% 50.4%,transparent 50.4%),linear-gradient(transparent 48.8%,#fff 48.8% 51.2%,transparent 51.2%),#c66f42; transform:rotateX(55deg); transform-origin:center bottom; box-shadow:0 20px 40px rgba(3,19,56,.22); }
.tennis-stands { position:absolute; z-index:1; inset:8% 0 auto; height:22%; background:radial-gradient(circle,#eaf8ff 0 2px,transparent 3px) 0 0/20px 14px,linear-gradient(#164b77,#0d315b); border-bottom:7px solid #fff; }
.tennis-net { position:absolute; z-index:8; left:49%; top:34%; bottom:8%; width:3%; background:repeating-linear-gradient(0deg,#fff 0 2px,transparent 2px 9px),repeating-linear-gradient(90deg,#fff 0 2px,transparent 2px 9px); border-inline:3px solid #fff; transform:skewY(-5deg); }
.tennis-player-you { --shirt:#00a77d; --shirt-2:#d8ff6e; left:18%; bottom:8%; }
.tennis-player-ai { --skin:#7b4c35; --shirt:#ff7651; --shirt-2:#fff; right:17%; top:25%; transform:scale(.72); }
.tennis-racket { position:absolute; z-index:13; width:35px; height:48px; border:5px solid #fff; border-radius:50%; box-shadow:0 4px 0 -1px #fff; }
.tennis-racket::after { content:""; position:absolute; left:13px; top:40px; width:7px; height:31px; border-radius:4px; background:#173f68; }
.tennis-racket-you { left:27%; bottom:27%; transform:rotate(28deg); }
.tennis-racket-ai { right:27%; top:35%; transform:scale(.74) rotate(-28deg); }
.tennis-ball { left:48%; top:48%; width:22px; height:22px; background:#dcff62; }
.tennis-scene.rally-win .tennis-ball { animation:tennis-rally-win 1s ease-in-out both; }
.tennis-scene.rally-lose .tennis-ball { animation:tennis-rally-lose 1s ease-in-out both; }
.tennis-scene.rally-win .tennis-player-you,.tennis-scene.rally-lose .tennis-player-ai { animation:athlete-swing .55s ease; }
@keyframes tennis-rally-win { 0%{transform:translate(-210px,85px)} 35%{transform:translate(-25px,-70px)} 70%{transform:translate(210px,-40px)} 100%{transform:translate(300px,65px)} }
@keyframes tennis-rally-lose { 0%{transform:translate(220px,-55px)} 45%{transform:translate(10px,-95px)} 100%{transform:translate(-280px,110px)} }
@keyframes athlete-swing { 0%,100%{rotate:0deg} 50%{rotate:-11deg;translate:0 -10px} }

/* Bowling: lange Neonbahn statt Symbolkarte. */
.bowling-scene { display:block; background:linear-gradient(#4a2866 0 28%,#1d1649 28% 100%); }
.bowling-scene::before { content:""; position:absolute; inset:8% 0 auto; height:20%; background:radial-gradient(circle,#fff 0 2px,transparent 3px) 0 0/24px 16px,linear-gradient(90deg,#006ed0,#7d3bc1,#ec496c); opacity:.8; }
.bowling-lane { position:absolute; z-index:3; left:24%; right:10%; top:26%; bottom:-8%; clip-path:polygon(33% 0,67% 0,100% 100%,0 100%); background:repeating-linear-gradient(90deg,#e6b47b 0 10%,#f8d6a4 10% 20%); box-shadow:inset 0 0 0 5px rgba(255,255,255,.7); }
.bowling-lane i,.bowling-lane b { position:absolute; top:0; bottom:0; width:4%; background:#5e335f; }
.bowling-lane i{left:5%}.bowling-lane b{right:5%}
.bowling-player { --shirt:#ffbf3e; --shirt-2:#ec4f6d; left:10%; bottom:6%; transform:scale(.92); }
.bowling-ball { position:absolute; z-index:13; left:31%; bottom:10%; width:34px; height:34px; border-radius:50%; background:radial-gradient(circle at 38% 30%,#fff 0 2px,transparent 3px),radial-gradient(circle at 55% 26%,#fff 0 2px,transparent 3px),linear-gradient(145deg,#25bbe1,#08235b); box-shadow:0 9px 16px rgba(3,19,56,.32); }
.bowling-pins { position:absolute; z-index:10; top:26%; right:31%; display:grid; grid-template-columns:repeat(4,13px); gap:2px; width:60px; transform:scale(.78); }
.bowling-pins i { display:block; width:12px; height:34px; border-radius:50% 50% 32% 32%; background:linear-gradient(#fff 0 35%,#e94f59 35% 45%,#fff 45%); box-shadow:0 4px 8px rgba(3,19,56,.24); transform-origin:bottom; }
.bowling-scene.roll-ball .bowling-ball,.bowling-scene.roll-strike .bowling-ball{animation:bowling-roll 1s ease-in both}
.bowling-scene.roll-strike .bowling-pins i{animation:pin-fall .6s .65s ease-out both}
.bowling-scene.roll-ball .bowling-pins i:nth-child(-n+6){animation:pin-fall .6s .7s ease-out both}
@keyframes bowling-roll{0%{transform:translate(0,0) scale(1) rotate(0)}100%{transform:translate(330px,-180px) scale(.42) rotate(900deg)}}
@keyframes pin-fall{to{transform:rotate(82deg) translate(8px,5px);opacity:.25}}

/* Minigolf: Klippenbahn mit Figur und sichtbar rollendem Ball. */
.golf-scene { display:block; background:linear-gradient(#7cd5f5 0 45%,#50a96a 45% 100%); }
.golf-hills { position:absolute; z-index:1; inset:27% -5% auto; height:42%; background:linear-gradient(135deg,transparent 0 10%,#27834f 10% 23%,transparent 23% 29%,#3b9258 29% 49%,transparent 49% 57%,#1e7446 57% 75%,transparent 75%); clip-path:polygon(0 100%,0 65%,16% 8%,29% 70%,47% 20%,65% 75%,84% 0,100% 62%,100% 100%); }
.golf-green { position:absolute; z-index:3; right:7%; bottom:4%; width:54%; height:55%; border-radius:50% 45% 12% 30%; background:radial-gradient(ellipse at 60% 65%,#c8f186 0 5%,transparent 5.5%),repeating-linear-gradient(90deg,#69c16b 0 12%,#61b664 12% 24%); transform:skewY(-4deg); box-shadow:0 -8px 0 #eed183; }
.golf-green i { position:absolute; left:57%; top:59%; width:22px; height:9px; border-radius:50%; background:#16394d; }
.golf-flag { position:absolute; z-index:8; right:20%; bottom:27%; width:80px; height:120px; }
.golf-flag i { position:absolute; left:8px; top:0; bottom:0; width:6px; background:#fff; box-shadow:0 3px 8px rgba(3,19,56,.2); }
.golf-flag b { position:absolute; left:13px; top:3px; width:52px; height:32px; background:linear-gradient(135deg,#ffca42,#ff6850); clip-path:polygon(0 0,100% 18%,72% 100%,0 75%); }
.golf-player { --shirt:#12a47d;--shirt-2:#fff;left:12%;bottom:7%; }
.golf-player::after { content:""; position:absolute; left:61px; top:52px; width:7px; height:75px; border-radius:8px; background:#e9eef2; transform:rotate(22deg); transform-origin:top; }
.golf-ball { left:23%; bottom:9%; width:20px;height:20px;background:#fff; }
.golf-scene.golf-hit .golf-ball{animation:golf-roll .9s ease-out both}
.golf-scene.golf-sink .golf-ball{animation:golf-sink .95s ease-in both}
@keyframes golf-roll{0%{transform:translate(0,0)}100%{transform:translate(var(--golf-x,180px),var(--golf-y,-35px)) rotate(720deg)}}
@keyframes golf-sink{0%{transform:translate(0,0)}82%{transform:translate(360px,-115px) scale(.7)}100%{transform:translate(374px,-105px) scale(.05)}}

/* Tischtennis: Figuren, Platte und durchlaufender Ballwechsel. */
.table-court { display:block; background:linear-gradient(#17345d 0 48%,#6c335f 48% 100%); }
.table-room { position:absolute; inset:0; background:radial-gradient(circle at 50% 12%,rgba(51,231,255,.5),transparent 30%),linear-gradient(90deg,transparent 0 20%,rgba(255,255,255,.08) 20% 21%,transparent 21% 79%,rgba(255,255,255,.08) 79% 80%,transparent 80%); }
.table-board { position:absolute; z-index:5; left:19%; right:19%; top:43%; height:32%; background:linear-gradient(90deg,#087ca1 0 49.3%,#fff 49.3% 50.7%,#087ca1 50.7%); border:6px solid #fff; transform:rotateX(58deg); box-shadow:0 45px 35px rgba(3,19,56,.32); }
.table-board::after { content:""; position:absolute; left:49.4%; top:-52%; width:1.2%; height:105%; background:repeating-linear-gradient(0deg,#fff 0 3px,transparent 3px 8px); border-inline:3px solid #fff; transform:rotateX(-58deg); transform-origin:bottom; }
.table-player-you{--shirt:#1cc3c9;--shirt-2:#d9ff6d;left:9%;bottom:4%}.table-player-ai{--shirt:#ff5d71;--shirt-2:#fff;right:8%;bottom:4%}
.table-paddle{position:absolute;z-index:14;width:32px;height:42px;border-radius:50%;background:#ff4f61;border:4px solid #fff;box-shadow:0 5px 8px rgba(3,19,56,.25)}
.table-paddle::after{content:"";position:absolute;left:11px;top:34px;width:9px;height:35px;border-radius:5px;background:#694127}
.table-paddle-you{left:19%;bottom:29%;transform:rotate(24deg)}.table-paddle-ai{right:19%;bottom:29%;transform:rotate(-24deg)}
.table-ball{left:49%;top:43%;width:19px;height:19px;background:#fff}
.table-scene.table-rallying .table-ball{animation:table-rally .72s ease-in-out infinite alternate}
.table-scene.table-hit .table-ball{animation:table-hit .7s ease-out both}.table-scene.table-miss .table-ball{animation:table-miss .7s ease-out both}
@keyframes table-rally{from{transform:translate(-230px,80px) scale(1.2)}to{transform:translate(230px,55px) scale(.75)}}
@keyframes table-hit{0%{transform:translate(-190px,75px)}45%{transform:translate(-10px,-45px)}100%{transform:translate(240px,45px)}}
@keyframes table-miss{0%{transform:translate(-190px,75px)}100%{transform:translate(-330px,160px);opacity:0}}

/* Volleyball: Strandduell mit drei sichtbaren Phasen. */
.volley-scene{display:block;background:linear-gradient(#70cff2 0 47%,#137f9e 47% 58%,#efd187 58% 100%)}
.volley-ocean{position:absolute;z-index:1;inset:41% 0 auto;height:19%;background:repeating-radial-gradient(ellipse at 50% 100%,rgba(255,255,255,.7) 0 4px,transparent 5px 20px);animation:water-shift 4s linear infinite}
.volley-net{position:absolute;z-index:9;left:48%;top:30%;bottom:8%;width:4%;background:repeating-linear-gradient(0deg,#fff 0 2px,transparent 2px 10px),repeating-linear-gradient(90deg,#fff 0 2px,transparent 2px 10px);border-inline:4px solid #fff}
.volley-net i{position:absolute;left:50%;bottom:0;width:18px;height:9px;border-radius:50%;background:rgba(3,19,56,.24);transform:translateX(-50%)}
.volley-player-you{--shirt:#ff7660;--shirt-2:#ffd95e;left:16%;bottom:5%}.volley-player-ai{--skin:#6f432e;--shirt:#008fc5;--shirt-2:#fff;right:15%;bottom:5%}
.volley-ball{left:25%;top:34%;background:conic-gradient(#fff 0 17%,#ffd352 17% 34%,#0bb0c1 34% 50%,#fff 50% 67%,#ff665b 67% 84%,#fff 84%)}
.volley-scene.volley-phase-0 .volley-ball{animation:volley-receive .7s ease-out both}.volley-scene.volley-phase-1 .volley-ball{animation:volley-set .7s ease-out both}.volley-scene.volley-phase-2 .volley-ball{animation:volley-smash .75s ease-in both}
.volley-scene.volley-point .volley-player-you{animation:athlete-jump .6s ease}.volley-scene.volley-fail .volley-ball{filter:grayscale(.8)}
@keyframes volley-receive{0%{transform:translate(420px,35px)}100%{transform:translate(80px,120px)}}
@keyframes volley-set{0%{transform:translate(80px,120px)}100%{transform:translate(180px,-70px)}}
@keyframes volley-smash{0%{transform:translate(180px,-70px)}100%{transform:translate(430px,130px)}}
@keyframes water-shift{to{background-position:80px 0}}

/* Handball: Hallentor, Torwart und sichtbare Wurfbahn. */
.handball-scene{display:block;background:linear-gradient(#edf5ff 0 58%,#d88c5b 58% 100%)}
.handball-hall{position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(16,90,154,.12) 0 2px,transparent 2px) 0 0/54px 100%,linear-gradient(rgba(255,255,255,.7) 0 2px,transparent 2px) 0 0/100% 44px}
.handball-goal{position:absolute;z-index:5;right:9%;top:22%;width:190px;height:175px;border:13px solid #fff;border-image:repeating-linear-gradient(45deg,#fff 0 12px,#ff5959 12px 24px) 13;background:repeating-linear-gradient(0deg,transparent 0 17px,rgba(20,72,119,.25) 17px 20px),repeating-linear-gradient(90deg,transparent 0 17px,rgba(20,72,119,.25) 17px 20px)}
.handball-player{--shirt:#ef4f70;--shirt-2:#fff;left:16%;bottom:7%}.handball-keeper{--shirt:#ffcc40;--shirt-2:#08245b;right:17%;bottom:19%;transform:scale(.9)}
.handball-ball{left:29%;bottom:37%;background:repeating-linear-gradient(45deg,#ff8b32 0 8px,#203760 8px 11px)}
.handball-result{position:absolute;z-index:16;right:12%;top:10%;padding:7px 14px;border-radius:999px;color:#fff;background:#08245bd9;font-weight:950;opacity:0}
.handball-scene.handball-goal-shot .handball-ball,.handball-scene.handball-save-shot .handball-ball{animation:handball-throw .72s cubic-bezier(.3,.7,.3,1) both}
.handball-scene.handball-goal-shot .handball-result,.handball-scene.handball-save-shot .handball-result{animation:score-call 1.2s .55s ease both}
.handball-scene.handball-save-shot .handball-keeper{animation:keeper-save .7s ease both}.handball-scene.handball-goal-shot .handball-player{animation:athlete-jump .6s ease}
.handball-scene[data-shot="links"]{--hb-x:370px;--hb-y:-120px}.handball-scene[data-shot="mitte"]{--hb-x:430px;--hb-y:-75px}.handball-scene[data-shot="rechts"]{--hb-x:490px;--hb-y:-110px}
@keyframes handball-throw{0%{transform:translate(0,0) rotate(0)}100%{transform:translate(var(--hb-x,430px),var(--hb-y,-80px)) rotate(640deg)}}
@keyframes keeper-save{50%{transform:translateX(-55px) rotate(-12deg) scale(.9)}}
@keyframes score-call{0%{opacity:0;transform:scale(.5)}25%,75%{opacity:1;transform:scale(1)}100%{opacity:0}}

/* Eishockey: Eisbahn mit Puckbewegung und Abwehr. */
.hockey-scene{display:block;background:linear-gradient(#8dccec 0 24%,#eafaff 24% 100%)}
.hockey-rink{position:absolute;z-index:2;inset:26% 5% 4%;border:8px solid #fff;border-radius:80px;background:linear-gradient(90deg,transparent 49.5%,#ee5b64 49.5% 50.5%,transparent 50.5%),radial-gradient(circle at 24% 50%,transparent 0 35px,#247ac1 36px 39px,transparent 40px),radial-gradient(circle at 76% 50%,transparent 0 35px,#247ac1 36px 39px,transparent 40px),repeating-linear-gradient(90deg,#eafaff 0 18%,#dcf4fa 18% 36%);box-shadow:0 18px 36px rgba(3,19,56,.2)}
.hockey-goal{position:absolute;z-index:7;right:7%;top:40%;width:100px;height:94px;border:9px solid #ed5860;border-bottom-width:13px;border-radius:18px 18px 4px 4px;background:repeating-linear-gradient(0deg,transparent 0 10px,rgba(14,61,105,.25) 10px 12px),repeating-linear-gradient(90deg,transparent 0 10px,rgba(14,61,105,.25) 10px 12px)}
.hockey-player{--shirt:#0b73c4;--shirt-2:#fff;left:17%;bottom:9%;transform:skewX(-7deg)}.hockey-defender{--shirt:#f05269;--shirt-2:#fff;right:28%;bottom:11%;transform:scale(.9) skewX(7deg)}
.hockey-stick{position:absolute;z-index:14;left:26%;bottom:12%;width:88px;height:10px;border-radius:8px;background:#d9b07c;transform:rotate(21deg);transform-origin:left}.hockey-stick::after{content:"";position:absolute;right:-7px;top:-7px;width:26px;height:20px;border-radius:3px;background:#4a2c27}
.hockey-puck{position:absolute;z-index:15;left:34%;bottom:12%;width:30px;height:12px;border-radius:50%;background:#162137;box-shadow:0 7px 7px rgba(3,19,56,.3)}
.hockey-scene.hockey-score .hockey-puck{animation:hockey-goal 1s ease-in both}.hockey-scene.hockey-block .hockey-puck{animation:hockey-block .8s ease-out both}.hockey-scene.hockey-score .hockey-player{animation:hockey-skate .7s ease}
@keyframes hockey-goal{0%{transform:translate(0,0)}60%{transform:translate(300px,-85px)}100%{transform:translate(430px,-65px) scale(.65)}}
@keyframes hockey-block{0%{transform:translate(0,0)}65%{transform:translate(280px,-55px)}100%{transform:translate(150px,20px)}}
@keyframes hockey-skate{50%{transform:translateX(42px) skewX(-11deg)}}

/* Sprint: Stadionperspektive und selbst gezeichnete Läuferin. */
.sprint-track{display:block;min-height:310px;background:linear-gradient(#7bcff4 0 30%,#4b8d68 30% 42%,#bb624c 42% 100%)}
.sprint-stadium{position:absolute;z-index:1;inset:19% 0 auto;height:25%;background:radial-gradient(circle,#fff 0 2px,transparent 3px) 0 0/18px 13px,linear-gradient(#0b3a68,#1a5a89);border-bottom:6px solid #fff}
.sprint-lanes{position:absolute;z-index:3;inset:42% -8% -10%;background:repeating-linear-gradient(0deg,transparent 0 48px,rgba(255,255,255,.82) 48px 52px);transform:perspective(600px) rotateX(45deg);transform-origin:center bottom}
.sprint-track .sprint-runner{--shirt:#00a5a8;--shirt-2:#d9ff69;left:4%;bottom:17%;transition:left .12s linear;animation:none}
.sprint-runner.sprint-step>em{animation:runner-legs .22s linear}.sprint-runner.sprint-step>b::before,.sprint-runner.sprint-step>b::after{animation:runner-arms .22s linear alternate}
.sprint-finish{position:absolute;z-index:8;right:4%;top:34%;bottom:4%;width:35px;background:repeating-conic-gradient(#fff 0 25%,#08245b 0 50%) 0 0/20px 20px;box-shadow:0 8px 16px rgba(3,19,56,.2)}
.sprint-finish i,.sprint-finish b{position:absolute;top:0;width:8px;height:100%;background:#fff}.sprint-finish i{left:-6px}.sprint-finish b{right:-6px}
.sprint-track.sprint-stumble .sprint-runner{transform:rotate(12deg) translateY(12px)}.sprint-track.sprint-finished .sprint-runner{filter:drop-shadow(0 0 16px #d9ff69)}
@keyframes runner-legs{50%{transform:rotate(24deg);box-shadow:19px 0 0 var(--shorts)}}
@keyframes runner-arms{to{transform:rotate(-28deg)}}

/* Schwimmen: Hallenbad mit Wasserbewegung und eigener Figur. */
.sport-pool{display:block;min-height:310px;background:linear-gradient(#e7f8ff 0 27%,#3fb8df 27% 100%)}
.pool-hall{position:absolute;z-index:1;inset:0 0 58%;background:linear-gradient(90deg,rgba(0,113,180,.12) 0 2px,transparent 2px) 0 0/60px 100%,linear-gradient(#fff,#d8f4ff)}
.pool-water{position:absolute;z-index:3;inset:27% 0 0;background:repeating-radial-gradient(ellipse at 50% 0,rgba(255,255,255,.65) 0 5px,transparent 6px 24px),repeating-linear-gradient(0deg,#36b8df 0 43px,#5dd0e9 43px 48px);animation:pool-water 3.2s linear infinite}
.pool-rope{position:absolute;z-index:7;left:0;right:0;height:10px;background:repeating-linear-gradient(90deg,#ffd94f 0 18px,#ec5367 18px 36px);border-radius:999px;box-shadow:0 5px 9px rgba(3,19,56,.18)}.pool-rope-a{top:44%}.pool-rope-b{bottom:17%}
.sport-pool .swim-person{--shirt:#006fc7;--shirt-2:#d9ff69;left:4%;top:48%;width:96px;height:70px;transform:rotate(-83deg) scale(.82);transition:left .2s ease;animation:none}
.swim-person>i{box-shadow:inset 0 9px 0 #173050,0 -7px 0 -2px #00b4cf!important}.swim-splash{position:absolute;z-index:13;left:6%;top:52%;width:82px;height:28px;border-radius:50%;border-top:7px dotted #fff;opacity:.7}
.sport-pool.swim-stroke .swim-person{animation:swimmer-stroke .42s ease}.sport-pool.swim-stroke .swim-splash{animation:splash .55s ease}.sport-pool.swim-finished .swim-person{filter:drop-shadow(0 0 16px #d9ff69)}
.sport-pool>b{z-index:16;padding:7px 12px;border-radius:999px;background:#fff9;box-shadow:0 7px 18px rgba(3,19,56,.12)}
@keyframes pool-water{to{background-position:90px 0,0 48px}}
@keyframes swimmer-stroke{50%{transform:rotate(-83deg) scale(.88) translateY(-10px)}}
@keyframes splash{0%{transform:scale(.6);opacity:.3}70%{transform:scale(1.3);opacity:.9}100%{transform:scale(1.5);opacity:0}}

@media (max-width:760px){
  .sport-motion-scene{min-height:280px;border-width:3px;border-radius:22px}
  .sport-figure{transform:scale(.78)}
  .tennis-player-ai{transform:scale(.62)}
  .handball-keeper{transform:scale(.72)}
  .hockey-player{transform:scale(.78) skewX(-7deg)}
  .hockey-defender{transform:scale(.7) skewX(7deg)}
  .sport-pool .swim-person{transform:rotate(-83deg) scale(.68)}
  .bowling-pins{right:24%}
  .handball-goal{right:4%;width:150px}
  .hockey-goal{right:3%;width:84px}
  .basket-backboard{right:7%}
}
.game-dialog:fullscreen:has(.sport-motion-scene) .sport-motion-scene,.game-dialog.portal-fullscreen:has(.sport-motion-scene) .sport-motion-scene{min-height:clamp(420px,62dvh,720px);margin-bottom:12px}

/* Schlussregel: im echten Spiel-Vollbild hat die Pause Vorrang vor allen Layoutregeln. */
.game-dialog:fullscreen > .fullscreen-pause-button,
.game-dialog.portal-fullscreen > .fullscreen-pause-button {
  position: fixed !important; z-index: 240 !important; display: inline-flex !important;
  width: auto !important; min-width: 106px !important; max-width: none !important;
  height: auto !important; min-height: 48px !important; max-height: none !important;
  top: max(14px, env(safe-area-inset-top)) !important;
  right: max(174px, calc(env(safe-area-inset-right) + 158px)) !important;
  left: auto !important; bottom: auto !important; margin: 0 !important;
  color: #fff !important; border-color: rgba(255,255,255,.34) !important;
  background: rgba(3,19,56,.8) !important; backdrop-filter: blur(12px);
}
@media (max-width: 900px) {
  .game-dialog:fullscreen > .fullscreen-pause-button,
  .game-dialog.portal-fullscreen > .fullscreen-pause-button {
    right: max(186px, calc(env(safe-area-inset-right) + 178px)) !important;
    min-width: 48px !important; padding-inline: 11px !important;
  }
}

/* Letzte iPad-Schutzregeln: spätere Altregeln dürfen inselsturm nicht wieder überlagern. */
#island-run-dialog.native-pause-dialog > .fullscreen-pause-button,
#island-run-dialog.native-pause-dialog > .universal-pause-overlay { display: none !important; }
#island-run-dialog .island-run-pause {
  background: rgba(1,20,48,.72) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
#island-run-dialog .island-run-stage.is-paused canvas { filter: brightness(.72) saturate(.8) !important; }
#island-run-dialog[open]:not(.portal-fullscreen) > .challenge-panel,
#island-run-dialog[open]:not(.portal-fullscreen) > .quality-dialog-hud { display: none !important; }
#island-run-dialog.portal-fullscreen > .island-run-shell,
#island-run-dialog:fullscreen > .island-run-shell {
  position: fixed !important; inset: 0 !important; width: 100vw !important; min-width: 100vw !important;
  max-width: 100vw !important; height: 100dvh !important; min-height: 100dvh !important; max-height: 100dvh !important;
  margin: 0 !important; overflow: hidden !important; border: 0 !important; border-radius: 0 !important;
}
#island-run-dialog.portal-fullscreen .island-run-stage,
#island-run-dialog:fullscreen .island-run-stage {
  position: absolute !important; inset: 0 !important; width: 100vw !important; height: 100dvh !important;
  min-height: 100dvh !important; max-height: 100dvh !important; touch-action: none !important; overscroll-behavior: none !important;
}
#island-run-dialog.portal-fullscreen .island-run-pause,
#island-run-dialog:fullscreen .island-run-pause { position: fixed !important; inset: 0 !important; z-index: 900 !important; }
.game-dialog[open] > .game-help-panel {
  position: fixed !important; z-index: 1300 !important;
  top: max(78px,calc(env(safe-area-inset-top) + 68px)) !important; right: max(16px,env(safe-area-inset-right)) !important;
  left: auto !important; bottom: auto !important; grid-row: auto !important; grid-column: auto !important;
  width: min(430px,calc(100vw - 32px)) !important; min-width: 0 !important; max-width: 430px !important;
  height: auto !important; min-height: 0 !important; max-height: calc(100dvh - 96px) !important;
  margin: 0 !important; padding: 24px !important; overflow: auto !important;
  border: 1px solid #c7e2f0 !important; border-radius: 23px !important; background: #fff !important;
}


/* 2.34.6: Kartentisch-Überschriften auf dunklem Tisch lesbar */
.collection-panel.card-table h3 { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); }

/* 2.34.7: Vollbild der Sammlungsspiele – gut lesbare Statuszeile über der Tastenleiste */
.game-dialog:fullscreen .collection-sidebar #collection-status,
.game-dialog.portal-fullscreen .collection-sidebar #collection-status {
  color: #fff !important; font-size: clamp(14px, 1.6vw, 17px) !important; font-weight: 750 !important; line-height: 1.35 !important;
  padding: 9px 18px !important; background: rgba(3,19,56,.9) !important; text-shadow: none !important;
}
.game-dialog:fullscreen .collection-stage > .collection-panel,
.game-dialog.portal-fullscreen .collection-stage > .collection-panel { will-change: transform; }

/* 2.34.7: Spiele mit Seitenleiste – Bedienfeld im Vollbild dauerhaft sichtbar, Spielfläche daneben eingepasst */
.game-dialog.fs-side-panel.portal-fullscreen .game-layout > .game-sidebar,
.game-dialog.fs-side-panel:fullscreen .game-layout > .game-sidebar {
  opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transform: none !important;
  position: fixed !important; z-index: 70 !important;
  top: max(74px, calc(env(safe-area-inset-top) + 68px)) !important; right: max(14px, env(safe-area-inset-right)) !important;
  bottom: auto !important; left: auto !important; width: min(330px, 30vw) !important; height: auto !important;
  max-height: calc(100dvh - 92px) !important; overflow: auto !important; margin: 0 !important;
}
.game-dialog.fs-side-panel.portal-fullscreen > .fullscreen-tools-button,
.game-dialog.fs-side-panel:fullscreen > .fullscreen-tools-button { display: none !important; }
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .game-dialog.fs-side-panel.portal-fullscreen .game-layout > .game-sidebar,
  .game-dialog.fs-side-panel:fullscreen .game-layout > .game-sidebar {
    top: auto !important; bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: max(10px, env(safe-area-inset-left)) !important; right: max(10px, env(safe-area-inset-right)) !important;
    width: auto !important; max-height: 38dvh !important;
  }
}
.game-dialog:fullscreen .game-sidebar .score-grid strong,
.game-dialog.portal-fullscreen .game-sidebar .score-grid strong,
.game-dialog:fullscreen .game-sidebar .turn-card strong,
.game-dialog.portal-fullscreen .game-sidebar .turn-card strong { color: #061f55 !important; }
.game-dialog:fullscreen .game-sidebar .game-help,
.game-dialog.portal-fullscreen .game-sidebar .game-help { color: #e7f3ff !important; }
.goal-scene { display: block; width: min(100%, 640px); aspect-ratio: 16 / 10; height: auto; margin: 12px auto; border-radius: 18px; box-shadow: 0 14px 28px #031a3a40; touch-action: none; cursor: crosshair; }
.scene-canvas { display: block; width: min(100%, 640px); aspect-ratio: 16 / 10; height: auto; margin: 12px auto; border-radius: 18px; box-shadow: 0 14px 28px #031a3a40; touch-action: none; cursor: pointer; }

/* 2.35.0 – patience: Pyramidenkarten wieder absolut positionieren (allgemeine Kartenregel hatte sie verschoben) */
.patience-pyramid button.playing-card.pyramid-card { position: absolute; width: 13.2%; min-width: 0; }
.patience-pyramid button.playing-card.pyramid-card:disabled { opacity: .78; filter: saturate(.75) brightness(.96); }
.patience-pyramid button.playing-card.pyramid-card.open-card { box-shadow: 0 8px 16px rgba(4, 30, 20, .35); }

/* 2.35.0 – Kategorie Crazy Games */
.category-hub-grid button.crazy-entry { grid-column: 1 / -1; background: linear-gradient(110deg, #fff6d6, #ffe1f1 45%, #dff3ff); border-color: #ffb3d9; }
.category-hub-grid button.crazy-entry > span { background: conic-gradient(from 30deg, #ff4fa3, #ffb81c, #2ee6a6, #1d8cff, #a35bff, #ff4fa3); animation: crazy-spin 9s linear infinite; }
@keyframes crazy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .category-hub-grid button.crazy-entry > span { animation: none; } }

/* Kartenspiele: Prüfdurchgang – Kombinationen, Farbwahl, spielbare Karten, letzter Stich */
.meld-groups { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; min-height: 40px; }
.meld-groups .meld-group { margin-top: 4px; min-height: 0; padding: 4px; gap: 3px; flex-wrap: nowrap; }
.meld-groups .meld-group .playing-card + .playing-card { margin-left: -18px; }
.meld-groups .meld-group.canasta-done { outline: 3px solid #ffd45b; outline-offset: 1px; }
.meld-empty { opacity: .75; font-size: 13px; }
.mau-suit-choice { display: flex; gap: 8px; }
.mau-suit-choice:empty { display: none; }
.mau-suit-choice .mau-suit { min-width: 52px; min-height: 52px; font-size: 26px; color: #10201e; background: #fffdf6; border-radius: 12px; }
.mau-suit-choice .mau-suit.red { color: #c8213a; }
.card-table .playing-card.not-playable { filter: saturate(.55) brightness(.82); transform: translateY(6px); }
.card-table .trick-info, .collection-dialog .card-table p.trick-info { margin: 0 0 8px; font-weight: 800; text-align: center; color: #fff6d8; text-shadow: 0 1px 2px #0008; opacity: 1; }
.trick-table { position: relative; }
.trick-table.last-trick .trick-card { opacity: .78; }
.trick-table .trick-caption { grid-column: 1 / -1; justify-self: start; margin: -4px 0 -6px; font-size: 13px; font-style: normal; font-weight: 700; color: #ffffffc8; }
.trick-table .trick-card.trick-winner { opacity: 1; }
.trick-table .trick-card.trick-winner .playing-card { box-shadow: 0 0 0 3px #ffd45b, 0 8px 16px #0006; }
.score-banner .active-seat { color: #ffd45b; }
/* Bildkarten: Wert und Farbe immer über dem Bild lesbar (auch bei kleinen Karten im Hochformat) */
.playing-card[data-face] { isolation: isolate; }
.playing-card[data-face]::after { z-index: -1; }
/* Patience-Reihen: Karten genau so breit wie ihre Spalte (keine Überlappung mit Nachbarreihen),
   verdeckte Karten als schmaler Streifen, offene Karten mit sichtbarer Ecke (Wert + Farbe). */
.card-table .tableau .tableau-pile { min-width: 0; }
.card-table .tableau .tableau-pile .playing-card { width: 100%; max-width: 78px; min-width: 0; min-height: 0; height: auto; aspect-ratio: 5 / 7; flex: 0 0 auto; }
.card-table .tableau .tableau-pile .playing-card + .playing-card { margin-top: calc(-140% + 14px); }
.card-table .tableau .tableau-pile .playing-card:not(.back) + .playing-card { margin-top: calc(-140% + 30px); }
.card-table .tableau .tableau-pile .pile-target { font-size: 11px; line-height: 1.15; min-height: 36px; overflow-wrap: anywhere; }
/* Skat im iPad-Hochformat: eigenes Namensschild über den Handkarten (nicht von Karten verdeckt), größere Handkarten. */
@media (orientation: portrait) and (min-width: 621px) {
  .skat-visual-table .skat-table-seat.bottom { left: 50%; bottom: auto; top: 60%; width: min(40%, 300px); transform: translateX(-50%); }
  .skat-hand-dock .skat-hand { min-height: 175px; }
  .skat-hand .skat-playing-card { flex-basis: clamp(80px, 11vw, 112px); width: clamp(80px, 11vw, 112px); height: clamp(114px, 15.4vw, 156px); margin-right: -40px; }
  .skat-card-corner { font-size: clamp(.9rem, 1.9vw, 1.2rem); }
}
/* Skat-Raum im Vollbild: Status und Knöpfe (Partie starten, Nächstes Spiel …) unten statt über der Überschrift;
   Einstellungs- und Ergebnisfenster lassen dafür unten Platz. */
#collection-dialog.skat-room-active.portal-fullscreen .collection-sidebar,
#collection-dialog.skat-room-active:fullscreen .collection-sidebar { top: auto !important; max-height: none !important; }
#collection-dialog.skat-room-active.portal-fullscreen .skat-settings,
#collection-dialog.skat-room-active.portal-fullscreen .skat-result,
#collection-dialog.skat-room-active:fullscreen .skat-settings,
#collection-dialog.skat-room-active:fullscreen .skat-result { margin-top: 64px; max-height: calc(100dvh - 64px - 150px); align-self: start; }
/* patience (Pyramide): Bühne nie kleiner als Stapelreihe + Pyramide (Hochformat schnitt sonst Stapel und unterste Reihe ab);
   untere Reihen liegen sichtbar über den verdeckten Karten (siehe z-index oben). */
#patience-dialog .patience-stage { min-height: min-content; }

/* iPad-Hochformat: Spielbereich der Sammlungsspiele nicht abschneiden, Dialog scrollt */
@media (max-width: 1000px) {
  #collection-dialog[open]:not(.portal-fullscreen):not(:fullscreen):not(.skat-room-active) > .collection-layout { align-self: start !important; height: auto !important; min-height: 0 !important; grid-template-rows: auto auto !important; }
  #collection-dialog:not(.portal-fullscreen):not(:fullscreen):not(.skat-room-active) .collection-stage { min-height: min-content; }
}
/* iPad-Hochformat: Spiele mit Seitenleiste (4 gewinnt, Mühle, Backgammon, Dame) – Knöpfe unter dem Brett erreichbar */
@media (max-width: 1000px) {
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .game-layout { align-self: start !important; height: auto !important; }
}
/* inselsturm: Anzeige-Zahlen immer hell auf dunklem Grund */
#island-run-dialog .island-run-hud span { background: #071d2bd9 !important; }
#island-run-dialog .island-run-hud b { color: #ffffff !important; text-shadow: 0 1px 2px #0008; }
#island-run-dialog .island-run-hud small { color: #bfe9e0 !important; }
/* Hochformat: Kopfzeile der Spiele bricht um statt überzustehen */
@media (max-width: 1000px) {
  .game-dialog:not(:fullscreen):not(.portal-fullscreen) > .dialog-header { flex-wrap: wrap; gap: 10px 14px; max-width: 100%; box-sizing: border-box; }
  .game-dialog:not(:fullscreen):not(.portal-fullscreen) > .dialog-header > * { min-width: 0; }
  .game-dialog:not(:fullscreen):not(.portal-fullscreen) > .dialog-header h2 { overflow-wrap: anywhere; }
}

/* ==========================================================================
   2.37 kompakte Spielköpfe
   Ziel: Beim Öffnen ist die ganze Spielfläche ohne Scrollen sichtbar.
   - Kopfzeile flach (Titel + Kicker in einer Zeile, Abzeichen klein)
   - Spielstufe und Bonusmission in EINER schmalen Leiste (.challenge-panel enthält
     Stufenknöpfe, Missionsanzeige .quality-dialog-hud und den Details-Knopf)
   - Details (Stufenbeschreibung, „Geeignet für“, Zähler) aufklappbar
   Gilt nur außerhalb des Vollbilds; im Vollbild bleiben Kopf/Leiste wie bisher ausgeblendet.
   ========================================================================== */
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) {
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  --kopf-gutter: clamp(10px, 2.2vw, 36px);
}
/* Kopfzeile */
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header {
  grid-row: 1 !important;
  min-height: 0 !important;
  padding: 7px var(--kopf-gutter) !important;
  align-items: center !important;
  gap: 6px 14px !important;
  box-shadow: 0 4px 16px rgba(6,34,68,.05) !important;
}
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header > div:first-child:not(.dialog-window-controls) {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; min-width: 0;
}
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header h2 {
  order: -1; margin: 0; font-size: clamp(22px, 2.1vw, 30px) !important; line-height: 1.1; letter-spacing: -.03em;
}
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header .eyebrow {
  display: block !important; margin: 0; font-size: 11px; line-height: 1.3; letter-spacing: .1em;
}
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header .game-identity-banner {
  gap: 8px; padding: 3px 10px 3px 3px; border-radius: 13px; box-shadow: 0 4px 12px #22162b1f;
}
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header .game-identity-banner > span { width: 32px; height: 32px; flex-basis: 32px; font-size: 1rem; }
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header .dialog-tool-button,
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header .close-button,
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header .universal-pause-button { min-height: 40px !important; height: 40px; }
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header .dialog-tool-button,
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header .close-button { width: 40px !important; }
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .game-style-panel { grid-row: 2 !important; }

/* Eine Leiste: Stufen | Mission + Sterne | Details */
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel,
html body .game-dialog.round-active[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel {
  grid-column: 1 !important;
  grid-row: 3 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  grid-template-areas: "levels hud toggle" "details details details";
  align-items: center !important;
  gap: 0 12px !important;
  margin: 8px var(--kopf-gutter) 0 !important;
  padding: 5px 6px 5px 8px !important;
  border: 1px solid #cfe4f2 !important;
  border-radius: 16px !important;
  overflow: hidden;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(6,34,68,.07) !important;
}
.challenge-panel > .challenge-core { display: contents; }
.challenge-panel .challenge-levels-label { display: none; }
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel .challenge-levels {
  grid-area: levels;
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: #eef6fb;
}
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel .challenge-levels-label {
  display: block; padding: 0 6px 0 5px; color: var(--brand-blue, #086bff); font-size: 10px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase;
}
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel .challenge-levels button {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
  min-width: 38px; min-height: 38px !important; padding: 3px 10px 3px 4px !important;
  border: 1px solid transparent !important; border-radius: 10px !important;
  background: transparent !important; box-shadow: none !important; color: var(--brand-navy, #062244);
}
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel .challenge-levels button:hover { background: #fff !important; }
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel .challenge-levels button b { width: 26px; height: 26px; flex: 0 0 26px; font-size: 12px; }
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel .challenge-levels button span { font-size: 12px; }
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel .challenge-levels button.active {
  color: #fff; border-color: var(--brand-blue, #086bff) !important;
  background: linear-gradient(135deg, var(--brand-navy, #062244), var(--brand-blue, #086bff)) !important;
  box-shadow: 0 4px 12px #086bff30 !important;
}
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel .challenge-levels [data-challenge-level="legend"]:not(.active) b { background: #ffe9a3; color: #6b4a00; }
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel .challenge-levels [data-challenge-level="legend"].active {
  color: #062244; border-color: #edbf45 !important; background: linear-gradient(135deg, #ffd45b, #67ead5) !important;
}
/* Missionsanzeige innerhalb der Leiste */
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel > .quality-dialog-hud {
  grid-area: hud;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0;
  min-height: 44px;
  margin: 0 !important;
  padding: 3px 12px 3px 4px !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
.challenge-panel > .quality-dialog-hud .quality-hud-profile { display: block !important; }
.challenge-panel > .quality-dialog-hud .quality-hud-profile img { display: block; width: 38px !important; height: 38px; border-radius: 11px !important; box-shadow: none !important; }
.challenge-panel > .quality-dialog-hud .quality-hud-profile > div { display: none !important; }
.challenge-panel > .quality-dialog-hud .quality-hud-mission { display: grid; gap: 3px !important; min-width: 0; grid-column: auto !important; grid-row: auto !important; }
.challenge-panel > .quality-dialog-hud .quality-hud-mission small { font-size: 9px !important; line-height: 1.1; }
.challenge-panel > .quality-dialog-hud .quality-hud-mission strong { overflow: hidden; font-size: 13px !important; line-height: 1.25 !important; text-overflow: ellipsis; white-space: nowrap; }
.challenge-panel > .quality-dialog-hud .quality-progress { height: 4px !important; margin: 0 !important; }
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel > .quality-dialog-hud .quality-hud-score {
  display: flex !important; flex-direction: column; align-items: flex-end; justify-content: center; gap: 0; text-align: right !important; white-space: nowrap;
}
.challenge-panel > .quality-dialog-hud .quality-hud-score > span { font-size: 19px !important; line-height: 1.05; }
.challenge-panel > .quality-dialog-hud .quality-hud-score small { display: none; }
.challenge-panel > .quality-dialog-hud .quality-hud-score b { font-size: 11px !important; }
/* Details-Knopf */
.challenge-panel > .challenge-details-toggle {
  grid-area: toggle;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 44px; min-height: 40px; padding: 0 12px;
  border: 1px solid #c8dfed; border-radius: 11px;
  color: var(--brand-navy, #062244); background: #fff; font-size: 12px; font-weight: 850; cursor: pointer;
}
.challenge-panel > .challenge-details-toggle:hover, .challenge-panel > .challenge-details-toggle:focus-visible { border-color: var(--brand-blue, #086bff); outline: none; background: #f2f9ff; }
.challenge-panel > .challenge-details-toggle b { font-size: 11px; transition: transform .2s ease; }
.challenge-panel[data-details="open"] > .challenge-details-toggle b { transform: rotate(180deg); }
/* Aufklappbare Details */
.challenge-panel .challenge-details { display: none; }
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel[data-details="open"] .challenge-details {
  grid-area: details;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 18px;
  margin-top: 6px; padding: 8px 6px 4px; border-top: 1px solid #e0edf5;
}
.challenge-panel .challenge-details .challenge-heading { display: grid !important; gap: 0; }
.challenge-panel .challenge-details .challenge-heading div { display: flex !important; align-items: baseline; gap: 8px; }
.challenge-panel .challenge-details .challenge-age-fit { grid-column: auto !important; }
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel[data-details="open"] > .quality-dialog-hud .quality-hud-score small { display: block; font-size: 10px !important; color: #dcebf7 !important; }
/* Falls die Missionsanzeige (noch) ohne Leiste steht: ebenfalls schmal */
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .quality-dialog-hud { grid-row: 3 !important; margin: 8px var(--kopf-gutter) 0 !important; padding: 5px 12px !important; border-radius: 16px !important; }

/* Spielbereich: kleinere Abstände, keine erzwungene Mindesthöhe, Spielfläche oben statt mittig */
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > :not(.dialog-header):not(.game-style-panel):not(.challenge-panel):not(.quality-dialog-hud):not(.fullscreen-exit-button):not(.fullscreen-tools-button):not(.universal-pause-button):not(.universal-pause-overlay) {
  grid-row: 4 !important;
  min-height: 0 !important;
  margin: 8px var(--kopf-gutter) 14px !important;
  border-radius: 20px !important;
}
/* Sammlungsspiele: Spielfläche oben ausrichten (nicht mittig in einer hohen Bühne) */
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .collection-stage { align-content: start !important; padding-top: clamp(10px, 1.6vw, 22px) !important; padding-bottom: clamp(10px, 1.6vw, 22px) !important; }
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .collection-stage > .collection-panel { margin-top: 0 !important; margin-bottom: 0; }
html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .collection-layout { min-height: 0 !important; }

/* Schmalere Fenster (iPad hoch, kleine Laptops): Stufen nur als Nummern, aktive Stufe mit Namen */
@media (max-width: 1280px) {
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel .challenge-levels button:not(.active) span { display: none; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel .challenge-levels button:not(.active) { padding: 3px 5px !important; }
}
@media (max-width: 1000px) {
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header .game-identity-banner { display: none !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header { flex-wrap: nowrap !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header > div:first-child:not(.dialog-window-controls) { flex: 1 1 auto; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header .eyebrow { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel .challenge-levels-label { display: none; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel > .quality-dialog-hud { padding-right: 8px !important; gap: 8px !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel > .challenge-details-toggle span { display: none; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel[data-details="open"] .challenge-details { grid-template-columns: 1fr; }
}
/* Telefonbreite: Mission unter die Stufen */
@media (max-width: 640px) {
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel { grid-template-columns: minmax(0, 1fr) auto !important; grid-template-areas: "levels toggle" "hud hud" "details details"; gap: 5px 8px !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel .challenge-levels { justify-content: space-between; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel > .quality-dialog-hud .quality-hud-mission small { display: none; }
}

/* 2.37.1 Sport im Vollbild: Spielfläche wird nicht mehr auf volle Bildschirmhöhe gestreckt (leerer Rest),
   sondern hat ihre natürliche Höhe – fullscreen-fit.js vergrößert sie dann passend ins Fenster.
   Texte im Panel dunkel (vorher weiß geerbt auf hellem Grund: Schieberegler, Spielprotokoll). */
.game-dialog:fullscreen:has(.sport-panel):not(:has(.motion-arena)) .sport-panel,
.game-dialog.portal-fullscreen:has(.sport-panel):not(:has(.motion-arena)) .sport-panel {
  width: min(100vw, 1100px) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 18px 20px 16px !important;
  overflow: visible !important;
  border-radius: 26px !important;
  color: #0b2246 !important;
  background: linear-gradient(155deg, rgba(246,252,255,.97), rgba(220,244,246,.95)) !important;
  box-shadow: 0 24px 60px rgba(3,19,56,.32) !important;
}
.game-dialog:fullscreen:has(.sport-panel):not(:has(.motion-arena)) .sport-panel .sport-world-header,
.game-dialog.portal-fullscreen:has(.sport-panel):not(:has(.motion-arena)) .sport-panel .sport-world-header { margin: 0 0 12px; }
.game-dialog:fullscreen:has(.sport-panel):not(:has(.motion-arena)) .sport-panel .sport-motion-scene,
.game-dialog.portal-fullscreen:has(.sport-panel):not(:has(.motion-arena)) .sport-panel .sport-motion-scene {
  min-height: clamp(300px, calc(100dvh - 420px), 620px) !important;
  margin-bottom: 12px;
}
.game-dialog:fullscreen:has(.sport-panel) .sport-panel :is(.sport-slider, .match-log),
.game-dialog.portal-fullscreen:has(.sport-panel) .sport-panel :is(.sport-slider, .match-log) {
  color: #0b2246;
  background: #fff;
  border: 1px solid rgba(11,34,70,.14);
}
.game-dialog:fullscreen:has(.sport-panel) .sport-panel .sport-slider output,
.game-dialog.portal-fullscreen:has(.sport-panel) .sport-panel .sport-slider output { color: #0b2246; }

/* dribbelpfad im Vollbild: Kopf und Punkteleiste in einer eigenen oberen Leiste,
   Spielfeld darunter und über der Pfeilleiste – nichts überdeckt sich. */
.game-dialog:fullscreen:has(.dribbel-arena) .sport-panel .sport-world-header,
.game-dialog.portal-fullscreen:has(.dribbel-arena) .sport-panel .sport-world-header {
  position: absolute; z-index: 41; top: max(14px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left));
  width: 210px; height: 48px; margin: 0; padding: 4px 10px; gap: 8px; box-sizing: border-box;
  background: rgba(255,255,255,.94); backdrop-filter: none;
}
.game-dialog:fullscreen:has(.dribbel-arena) .sport-panel .sport-world-header i,
.game-dialog.portal-fullscreen:has(.dribbel-arena) .sport-panel .sport-world-header i { display: none; }
.game-dialog:fullscreen:has(.dribbel-arena) .sport-panel .sport-world-number,
.game-dialog.portal-fullscreen:has(.dribbel-arena) .sport-panel .sport-world-number { width: 36px; height: 36px; border-radius: 11px; }
.game-dialog:fullscreen:has(.dribbel-arena) .sport-panel .motion-score,
.game-dialog.portal-fullscreen:has(.dribbel-arena) .sport-panel .motion-score {
  top: max(14px, env(safe-area-inset-top)); left: max(238px, calc(env(safe-area-inset-left) + 238px)); right: max(296px, calc(env(safe-area-inset-right) + 288px)); height: 48px; box-sizing: border-box; align-items: center; padding-block: 0;
}
.game-dialog:fullscreen:has(.dribbel-arena) .sport-panel .dribbel-arena,
.game-dialog.portal-fullscreen:has(.dribbel-arena) .sport-panel .dribbel-arena {
  inset: 74px 0 auto; height: calc(100dvh - 74px - 100px); min-height: 0;
}
@media (max-width: 760px) {
  .game-dialog:fullscreen:has(.dribbel-arena) .sport-panel .sport-world-header small,
  .game-dialog.portal-fullscreen:has(.dribbel-arena) .sport-panel .sport-world-header small { display: none; }
}

/* dribbelpfad im iPad-Hochformat: Feld niedriger, damit die Pfeiltasten ohne Scrollen sichtbar sind. */
@media (max-width: 900px) and (orientation: portrait) {
  .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .dribbel-arena { min-height: clamp(360px, calc(100dvh - 660px), 690px); }
}
@media (max-width: 900px) {
  .game-dialog:fullscreen:has(.dribbel-arena) .sport-panel .motion-score,
  .game-dialog.portal-fullscreen:has(.dribbel-arena) .sport-panel .motion-score { right: max(246px, calc(env(safe-area-inset-right) + 238px)); }
}
/* dribbelpfad quer (nicht Vollbild): Feld so hoch, dass es ohne Verkleinerung ins Fenster passt
   (eine Verkleinerung blieb sonst im Vollbild erhalten). */
@media (orientation: landscape) {
  .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .dribbel-arena { min-height: clamp(360px, calc(100dvh - 378px), 690px); }
}
/* Sport im Vollbild: Phasen-Beschriftung (z. B. „Annahme“) in der Tastenleiste lesbar. */
.game-dialog:fullscreen:has(.sport-panel) #collection-actions .sport-action-label,
.game-dialog.portal-fullscreen:has(.sport-panel) #collection-actions .sport-action-label {
  align-self: center; padding: 8px 12px; border-radius: 999px; color: #fff; background: rgba(3,19,56,.82);
}

/* 2.46.1 Handy: Spielfenster nie breiter als der Bildschirm */
@media (max-width: 600px) {
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) { max-width: 100vw !important; overflow-x: hidden !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header { flex-wrap: wrap !important; gap: 8px !important; padding: 12px 12px 10px !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header > div:first-child { flex: 1 1 100% !important; min-width: 0 !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .dialog-header h2 { font-size: clamp(20px, 6.2vw, 28px) !important; overflow-wrap: anywhere !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .dialog-window-controls { flex: 1 1 100% !important; flex-wrap: wrap !important; justify-content: flex-end !important; gap: 6px !important; max-width: 100% !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > *:not(.dialog-header) { max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel,
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel > * { min-width: 0 !important; max-width: 100% !important; }
}
@media (max-width: 640px) {
  html body .game-dialog.round-active[open]:not(.portal-fullscreen):not(:fullscreen) > .challenge-panel { grid-template-columns: minmax(0, 1fr) auto !important; grid-template-areas: "levels toggle" "hud hud" "details details" !important; gap: 5px 8px !important; }
}

/* 2.46.3 Handy: Fensteransicht (nicht Vollbild) auf Handys – nichts ragt über den Rand.
   Gilt nur bis 640 px Breite bzw. für Handys quer (max. 500 px hoch); iPad/Laptop bleiben unverändert. */
@media (max-width: 640px) {
  /* Brettspiele: Seitenleiste unter dem Brett, Brett höchstens bildschirmbreit, Knöpfe umbrechen */
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .game-layout { grid-template-columns: minmax(0, 1fr) !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .game-layout > .game-stage,
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .game-layout > .game-sidebar { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .game-stage > :is(.mills-board, .four-board, .column-controls, .sudoku-board, .draughts-board, .backgammon-board, .patience-pyramid, .patience-deck-row) { max-width: 100% !important; box-sizing: border-box !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .game-sidebar :is(button, select, input) { max-width: 100% !important; min-width: 0 !important; white-space: normal !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .game-sidebar :is(.game-actions, .four-options, .score-grid, .sudoku-pad) > * { min-width: 0 !important; }
  /* Patience (Klondike, Spider, Freecell): alle Reihen passen in die Bildschirmbreite */
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .collection-panel.card-table { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; padding-inline: 8px !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .card-table .tableau { grid-template-columns: none !important; grid-auto-flow: column !important; grid-auto-columns: minmax(0, 1fr) !important; gap: 4px !important; overflow-x: visible !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .card-table .tableau.spider-tableau { gap: 3px !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .card-table .tableau .tableau-pile .pile-target { font-size: 9px !important; overflow-wrap: normal !important; word-break: normal !important; hyphens: auto !important; padding-inline: 1px !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .card-table :is(.solitaire-top, .freecell-top) { gap: 6px !important; justify-content: center !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .card-table .foundation-row { gap: 4px !important; flex-wrap: wrap !important; justify-content: center !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .card-table .card-slot { min-width: 42px !important; min-height: 60px !important; padding: 3px !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .card-table .score-banner { flex-wrap: wrap !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .card-table .score-banner span { min-width: 0 !important; }
  /* Hold'em: Namensfelder nie breiter als ihre Spalte */
  html body .game-dialog[open] .hd-name-grid input { width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
  /* superladen: Stufenwahl umbrechen statt seitlich schieben */
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .sl-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .sl-tiers button { min-width: 0 !important; }
  /* treckerhof / umzugskiste: Werkzeugleisten umbrechen statt seitlich schieben */
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .th-tray { flex-wrap: wrap !important; justify-content: center !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .th-tb { flex: 1 0 22% !important; min-width: 0 !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .uk-rooms { flex-wrap: wrap !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .th-top { flex-wrap: wrap !important; }
}
/* Handy quer (z. B. 844 × 390): Brett passt in die Bildschirmhöhe, Seitenleiste darunter */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 950px) {
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .game-layout { grid-template-columns: minmax(0, 1fr) !important; }
  html body :is(#mills-dialog, #draughts-dialog, #backgammon-dialog, #four-dialog, #sudoku-dialog)[open]:not(.portal-fullscreen):not(:fullscreen) .game-layout > .game-stage { min-height: min(calc(100dvh - 16px), 680px) !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .game-stage > :is(.mills-board, .sudoku-board, .draughts-board) { width: min(100%, calc(100dvh - 48px)) !important; }
  html body .game-dialog[open]:not(.portal-fullscreen):not(:fullscreen) .game-stage > :is(.four-board, .column-controls) { width: min(100%, calc((100dvh - 110px) * 7 / 6)) !important; }
}
/* superladen: geschlossenes Seitenfenster samt „Schließen“-Knopf unsichtbar (liegt sonst außerhalb des Bildschirms).
   2.47: auf allen Bildschirmgrößen (auch iPad/Laptop) – so ist der Knopf weder sichtbar noch per Tab erreichbar. */
html body .game-dialog[open] .sl-sheet:not(.open) { visibility: hidden !important; transition: transform .22s ease, visibility 0s linear .22s !important; }
html body .game-dialog[open] .sl-sheet.open { visibility: visible !important; transition: transform .22s ease, visibility 0s linear 0s !important; }

/* 2.47 Abnahme: Suche immer erreichbar (Startseite + Spieleliste), über alle Spielwelten */
.portal-category-hub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); column-gap: 28px; }
.portal-category-hub > * { grid-column: 1 / -1; }
.portal-category-hub > .category-hub-heading { grid-column: 1; grid-row: 1; }
.portal-category-hub > .hub-search { grid-column: 2; grid-row: 1; align-self: end; margin: 0 0 28px; }
.hub-search .search-field { margin: 0; }
.hub-search output { display: block; min-height: 0; margin-top: 6px; color: #36506f; font-size: 13px; font-weight: 800; }
.hub-search output:empty { display: none; }
body.portal-searching .portal-category-hub { margin-bottom: 18px; }
body.portal-searching .portal-category-hub > .category-hub-grid, body.portal-searching .portal-category-hub > .pf-heute { display: none; }
body.portal-catalog-landing.portal-searching main > .compact-catalog { display: grid !important; }
body.portal-catalog-landing.portal-searching main > .empty-results:not([hidden]) { display: block !important; }
.search-other-worlds { margin: 10px 0 0; padding: 9px 13px; border-radius: 12px; color: #0b4a8f; background: #eaf5ff; font-size: 14px; font-weight: 750; }
.search-other-worlds[hidden] { display: none; }
.compact-game-item.other-world { border-style: dashed; }
@media (max-width: 900px) {
  .portal-category-hub { grid-template-columns: minmax(0, 1fr); }
  .portal-category-hub > .category-hub-heading, .portal-category-hub > .hub-search { grid-column: 1; grid-row: auto; }
  .portal-category-hub > .hub-search { order: 1; margin: -10px 0 18px; }
  .portal-category-hub > :not(.category-hub-heading):not(.hub-search) { order: 2; }
}
@media (max-width: 620px) {
  body.portal-catalog-open .discovery-start { grid-template-columns: minmax(0, 1fr); }
  body.portal-catalog-open .discovery-start .surprise-primary { width: 100%; }
}

/* 2.47 Abnahme: Favoriten-Stern in der Kompaktliste und in den Spiel-Details */
.compact-actions { display: flex; gap: 8px; align-items: stretch; }
.compact-actions .play-button { flex: 1 1 auto; }
.compact-fav {
  flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid #cfe2ee; border-radius: 14px;
  color: #6a7f96; background: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.compact-fav:hover, .compact-fav:focus-visible { border-color: #e1b452; color: #9a6a00; outline: none; }
.compact-fav[aria-pressed="true"] { color: #9a6a00; border-color: #e1b452; background: #fff4cf; }
.challenge-fav {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: auto; padding: 0 14px;
  border: 1px solid #cfe2ee; border-radius: 999px; color: #17345e; background: #fff; font-size: 13px; font-weight: 850; cursor: pointer;
}
.challenge-fav b { font-size: 19px; line-height: 1; color: #9a6a00; }
.challenge-fav[aria-pressed="true"] { border-color: #e1b452; background: #fff4cf; color: #5c3f00; }
