



:root, :root[data-theme="light"] {
  color-scheme: light;
  --ink: #152334;
  --muted: #637184;
  --navy: #163a5f;
  --navy-2: #0f2c49;


  --navy-ink: #163a5f;











  --blue: #1568c6;
  --blue-hover: #1a5fae;
  --blue-fill: #1d6fc8;
  --blue-soft: #dcecff;
  --orange: #ed8a22;





  --orange-dark: #a85400;





  --logo-blue: #2b8fee;
  --logo-green: #83c21f;
  --logo-orange: #f7981d;
  --logo-purple: #a24fd0;
  --brand-navy: #0e2f5e;
  --brand-samen: #2b8fee;
  --brand-samen-on-dark: #7cbcff;



  --on-accent: #ffffff;



  --ping: #d32f9b;







  --game-accent-ink: var(--orange-dark);
  --game-fill: var(--blue-fill);
  --game-fill-hover: var(--blue-hover);
  --game-code-bg: var(--code-chip);
  --game-code-ink: var(--navy-ink);






  --game-soft: var(--blue-soft);
  --game-soft-ink: var(--blue);











  --sudoku-accent: #7a3fb8;
  --sudoku-accent-fill: #7d3fb5;
  --sudoku-accent-fill-hover: #6d3aa0;
  --sudoku-given-bg: #ebe1fb;
  --sudoku-soft: #f0e9fc;
  --sudoku-soft-hover: #e2d5f7;
  --sudoku-same-bg: #c3a3ee;
  --sudoku-block-line: #111111;


















  --woordstrijd-accent: #14724a;
  --woordstrijd-accent-fill: #157a4e;
  --woordstrijd-accent-fill-hover: #116540;
  --woordstrijd-soft: #e8f4ed;
  --woordstrijd-soft-hover: #d7ebe0;
  --woordstrijd-dl: #8fd3ab;
  --woordstrijd-tl: #2b6cb0;
  --woordstrijd-dw: #ee9a3f;
  --woordstrijd-tw: #b93535;
  --woordstrijd-dl-ink: var(--ink);
  --woordstrijd-tl-ink: var(--on-accent);
  --woordstrijd-dw-ink: var(--ink);
  --woordstrijd-tw-ink: var(--on-accent);
  --woordstrijd-steen: #fbf3e3;
  --woordstrijd-steen-rand: #e6d9bd;
  --woordstrijd-steen-ink: var(--ink);
  --paper: #ffffff;
  --card: rgba(255, 255, 255, .96);
  --card-line: rgba(215, 224, 234, .9);







  --page: #f2f1ec;
  --page-glow: #e7ecfa;
  --line: #d7e0ea;
  --good: #177245;
  --bad: #b32727;





  --bad-fill: #b32727;
  --bad-fill-hover: #9c2222;





  --shadow: 0 8px 22px rgba(19, 45, 72, 0.10);
  --overlay-bg: rgba(9, 25, 42, .68);






  --lobby-kolom: 900px;









  --lobby-onderregel: 73px;















  --fs-h1: clamp(23px, 3.1vw, 30px);
  --fs-h2: clamp(18.5px, 2.2vw, 21px);
  --fs-h3: clamp(16.5px, 1.9vw, 18px);
  --fs-body: clamp(14.5px, 1.6vw, 16px);
  --fs-small: clamp(12.5px, 1.4vw, 13.5px);



  --surface: #f9f8f4;
  --surface-hover: #f2efe8;
  --info-bg: #eef5fc;
  --dash: #9db1c5;
  --bar-bg: #e7eef6;


  --chip: #e6eef7;
  --chip-hover: #d3e3f5;
  --tab-active: #eaf2fb;
  --toolbar-btn: #e9f0f7;
  --code-chip: #dce9f7;


  --input-bg: #ffffff;
  --input-line: #b9c6d4;
  --field-label: #3d4b5d;


  --warm-bg: #fff3d9;
  --warm-ink: #7a4a00;
  --badge-bg: #eef3f8;
  --badge-ink: #435369;

  --medal-bg: #fff8e8;
  --medal-line: #edcf95;



  --podium-gold: #e8b526;
  --podium-silver: #b9c4cf;
  --podium-bronze: #cd8b52;
  --podium-ink: #4a3510;
  --good-bg: #dff5e9;
  --good-ink: #14623c;
  --medium-bg: #fff0cc;
  --bad-bg: #ffe1e1;
  --bad-bg-hover: #f8dcdc;
  --bad-line: #eec5c5;
  --bad-ink: #8b2020;



  --connection-line: #f0c27a;
  --connection-ink: #ffe2b3;


  --cell-bg: #ffffff;



  --solution-mark-bg: #7a3fb8;
  --solution-mark-ink: #ffffff;
  --cell-ink: #111111;
  --grid-line: #222222;
  --block-bg: #17202a;
  --word-bg: #d8eaff;
  --cross-bg: #edf5ff;
  --active-bg: #ffd58d;
  --active-line: #d36f08;
  --incorrect-bg: #ffdede;
  --draft-ink: #a8b2bd;
  --circle-line: #555555;
  --viewport-bg: #c7d0d9;
  --viewport-line: #9fadb9;
  --clue-block-bg: #b8c2cc;
  --clue-tile-bg: #f4f1ea;
  --clue-tile-ink: #1d2735;


  --clue-tile-active-bg: #ffd58d;
  --clue-tile-active-ink: #1d2735;
  --clue-bar: #eef4fa;
  --clue-item-ink: #344256;
  --clue-item-active-ink: #112b49;

  --cell-size: 44px;
  --keyboard-height: 0px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}




:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6edf5;
  --muted: #9aa9bb;
  --navy: #14293f;
  --navy-2: #0c1c2c;
  --navy-ink: #a8ccf2;







  --blue: #63a8f2;



  --blue-hover: #2861ad;
  --blue-fill: #2d71c4;
  --blue-soft: #1e3a55;






  --sudoku-accent: #b98cf0;
  --sudoku-accent-fill: #6a3aa0;
  --sudoku-accent-fill-hover: #5a318c;
  --sudoku-given-bg: #2b2340;
  --sudoku-soft: #2d2542;
  --sudoku-soft-hover: #392e54;
  --sudoku-same-bg: #5b3d91;
  --sudoku-block-line: #a9bfd8;






  --woordstrijd-accent: #64ce9a;
  --woordstrijd-accent-fill: #116540;
  --woordstrijd-accent-fill-hover: #0e5334;
  --woordstrijd-soft: #172b22;
  --woordstrijd-soft-hover: #1f3a2e;
  --woordstrijd-dl: #2f6b4a;
  --woordstrijd-tl: #2b5a9a;
  --woordstrijd-dw: #8a5a1c;
  --woordstrijd-tw: #8a2a2a;
  --woordstrijd-dl-ink: var(--on-accent);
  --woordstrijd-tl-ink: var(--on-accent);
  --woordstrijd-dw-ink: var(--on-accent);
  --woordstrijd-tw-ink: var(--on-accent);
  --woordstrijd-steen: #3a4656;
  --woordstrijd-steen-rand: #4d5b6d;
  --woordstrijd-steen-ink: var(--ink);
  --orange: #f0a03a;
  --orange-dark: #ffb45c;
  --paper: #131c27;
  --card: rgba(20, 29, 40, .96);
  --card-line: rgba(70, 87, 106, .6);
  --page: #0d141c;
  --page-glow: #16304a;
  --line: #2d3a49;
  --good: #4cc38a;
  --bad: #f47272;
  --bad-fill: #c33c2e;
  --bad-fill-hover: #ad3427;

  --shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
  --overlay-bg: rgba(4, 9, 15, .74);

  --surface: #182230;
  --surface-hover: #1f2c3c;
  --info-bg: #172634;
  --dash: #46586c;
  --bar-bg: #22303f;

  --chip: #22303f;
  --chip-hover: #2c3d50;
  --tab-active: #1d2b3a;
  --toolbar-btn: #22303f;
  --code-chip: #24384d;

  --input-bg: #101922;
  --input-line: #3a4b5e;
  --field-label: #b3c1d1;

  --warm-bg: #3a2c12;
  --warm-ink: #f5cd88;
  --badge-bg: #22303f;
  --badge-ink: #b3c1d1;
  --medal-bg: #32270f;
  --medal-line: #6b5424;



  --podium-gold: #d8a825;
  --podium-silver: #98a5b3;
  --podium-bronze: #b57943;
  --podium-ink: #2a1e08;
  --good-bg: #123527;
  --good-ink: #79dba8;
  --medium-bg: #3a2f12;
  --bad-bg: #3a1a1a;
  --bad-bg-hover: #4a2020;
  --bad-line: #5e2a2a;
  --bad-ink: #ff9d9d;

  --cell-bg: #1c2836;
  --solution-mark-bg: #b98cf0;
  --solution-mark-ink: #1a1330;
  --cell-ink: #f2f6fb;
  --grid-line: #4b5d72;
  --block-bg: #070b10;
  --word-bg: #204669;
  --cross-bg: #172f45;
  --active-bg: #a9701a;
  --active-line: #ffc061;
  --incorrect-bg: #4a1f1f;
  --draft-ink: #7b8a9a;
  --circle-line: #93a3b4;
  --viewport-bg: #0a1017;
  --viewport-line: #2d3a49;





  --clue-block-bg: #202b38;
  --clue-tile-bg: #33455c;
  --clue-tile-ink: #e8eef7;
  --clue-tile-active-bg: #d9922a;
  --clue-tile-active-ink: #1a1206;
  --clue-bar: #18242f;
  --clue-item-ink: #c3cfdd;
  --clue-item-active-ink: #eaf3ff;
}

* { box-sizing: border-box; }










.ui-h2, .ui-h3, .ui-h4 { font-weight: bold; }
.ui-h2, .ui-h3 { text-wrap: balance; }
.ui-h2 { font-size: 1.5em; margin: 0.83em 0; }
.ui-h3 { font-size: 1.17em; margin: 1em 0; }
.ui-h4 { font-size: 1em; margin: 1.33em 0; }





html { min-height: 100%; color: var(--ink); background: radial-gradient(circle at top right, var(--page-glow) 0, transparent 34rem), var(--page); }




































body {
  margin: 0; min-height: 100vh; min-height: 100svh; color: var(--ink);
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}










#achtergrondspel { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#lobby-logo, #home-logo { position: relative; z-index: -2; }
button, input, select { font: inherit; }
button { touch-action: manipulation; }
.hidden { display: none !important; }



.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.muted { color: var(--muted); }


.strong { font-weight: 700; }

.puzzle-page-card { margin-bottom: 18px; }
.puzzle-page-card h2 { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 64px;
  padding: 10px max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  box-shadow: 0 5px 24px rgba(9, 34, 57, 0.22);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 18px; }




.brand-mark { width: 34px; height: 34px; display: block; flex: none; }



.brand-word { font-weight: 800; letter-spacing: -.01em; }
.brand-word strong { font-weight: 800; }
.brand-samen { color: var(--brand-samen-on-dark); }









#site-breadcrumb {
  flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; gap: 6px;
  margin: 0 auto 0 0; overflow-x: auto; scrollbar-width: none;
  color: rgba(255,255,255,.6); font-size: 13px;
}
#site-breadcrumb::-webkit-scrollbar { display: none; }
#site-breadcrumb a, #site-breadcrumb [aria-hidden="true"] { white-space: nowrap; }
#site-breadcrumb a {
  color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid transparent;
}
#site-breadcrumb a:hover, #site-breadcrumb a:focus-visible { color: var(--on-accent); border-bottom-color: currentColor; }



#site-breadcrumb [aria-current="page"] { color: var(--on-accent); font-weight: 700; white-space: nowrap; }








.account-menu { position: relative; flex: none; }
.account-menu-button {
  display: inline-flex; align-items: center; gap: 7px; max-width: 220px;
  padding: 5px 11px 5px 5px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  background: rgba(255,255,255,.1); color: var(--on-accent); font-size: 13.5px; font-weight: 650; cursor: pointer;
}
.account-menu-button:hover, .account-menu.open .account-menu-button { background: rgba(255,255,255,.2); }
.account-menu-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-chevron { display: inline-flex; opacity: .85; transition: transform .15s ease; }
.account-menu-chevron .ps-icon { width: 15px; height: 15px; }
.account-menu.open .account-menu-chevron { transform: rotate(180deg); }



.account-menu-badge { min-height: 19px; padding: 1px 6px; background: var(--orange); color: var(--navy-2); font-size: 10.5px; }
.account-menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  width: min(340px, calc(100vw - 20px)); padding: 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 18px 44px rgba(9, 34, 57, .3);




  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  overflow-y: auto; overscroll-behavior: contain;
}


.account-menu-panel .account-row { flex-direction: column; align-items: stretch; gap: 12px; }
.account-menu-panel .settings-actions { flex-direction: column; }


.account-menu-panel .settings-actions .button { justify-content: flex-start; text-align: left; }


.account-menu-panel .account-note { max-width: none; overflow-wrap: anywhere; }








.site-menu { position: relative; flex: none; }
.site-menu-button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  background: rgba(255,255,255,.1); color: var(--on-accent); font-size: 13.5px; font-weight: 650; cursor: pointer;
}
.site-menu-button .ps-icon { width: 20px; height: 20px; }
.site-menu-button:hover, .site-menu.open .site-menu-button { background: rgba(255,255,255,.2); }
.site-menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  display: flex; flex-direction: column; gap: 2px;
  width: min(300px, calc(100vw - 20px)); padding: 12px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 18px 44px rgba(9, 34, 57, .3);
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  overflow-y: auto; overscroll-behavior: contain;
}








.site-menu-tools {
  display: flex; gap: 8px;
  margin-bottom: 8px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.site-menu-tool {
  flex: 1 1 0; min-width: 0; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--chip); color: var(--ink);
  font-family: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer;
  white-space: nowrap; overflow: hidden;
}


.site-menu-tool[hidden] { display: none; }
.site-menu-tool:hover, .site-menu-tool:focus-visible { background: var(--surface-hover); }
.site-menu-tool .ps-icon { width: 19px; height: 19px; flex: none; }







.site-menu-panel a,
.site-menu-group-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin: 0; padding: 9px 10px; border: 0; border-radius: 8px;
  background: none; cursor: pointer; text-align: left; text-decoration: none;
  color: var(--ink); font-family: inherit; font-size: 14px;
}



.site-menu-panel a { font-weight: 400; }
.site-menu-group-title { font-weight: 600; }


.site-menu-panel > .site-menu-group-title { font-weight: 650; }
.site-menu-panel a:hover, .site-menu-panel a:focus-visible,
.site-menu-group-title:hover, .site-menu-group-title:focus-visible { background: var(--surface-hover); }
.site-menu-group { display: flex; flex-direction: column; gap: 2px; }
.site-menu-group[hidden] { display: none; }


.site-menu-group > a,
.site-menu-group > .site-menu-group-title { padding-left: 22px; }
.site-menu-group .site-menu-group > a { padding-left: 34px; }
.site-menu-group-chevron { flex: none; opacity: .7; transition: transform .15s ease; }
.site-menu-group-title[aria-expanded="true"] .site-menu-group-chevron { transform: rotate(180deg); }

.site-menu-panel a[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }





body[data-screen="game"] .site-menu-label { display: none; }



.connection { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid var(--connection-line); border-radius: 999px; font-size: 12px; color: var(--connection-ink); white-space: nowrap; }




.connection.offline { border-color: rgba(255, 255, 255, 0.5); color: var(--on-accent); background: rgba(0, 0, 0, 0.18); }








main { width: min(1280px, 100%); margin: 0 auto; padding: 16px max(14px, env(safe-area-inset-left)) 16px; padding-right: max(14px, env(safe-area-inset-right)); flex: 1 0 auto; display: flex; flex-direction: column; }










.screen > :nth-last-child(1 of :not([hidden]):not(.hidden)) { margin-bottom: 0; }


.screen { flex: 1 0 auto; }






















.lobby-screen, .home-screen { display: flex; flex-direction: column; }






.lobby-screen > *, .home-screen > * { width: 100%; }
.lobby-screen > .lobby-bottom { margin-top: auto; }


















.lobby-screen > .lobby-bottom:nth-last-child(1 of :not([hidden]):not(.hidden)),
.lobby-screen > .lobby-bottom { margin-bottom: auto; }






.hero { --hero-kop: var(--fs-h1); max-width: var(--lobby-kolom); margin-inline: auto; padding: 4px 4px 6px; }
.eyebrow { margin: 0 0 6px; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; font-weight: 800; }
.eyebrow .ps-icon { margin-right: 4px; }



.dev-badge-row { margin: 0; }
.dev-badge-row .dev-badge { margin-bottom: 6px; }






.hero h1, .hero h2 { margin: 0; font-size: var(--hero-kop); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }




.home-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }






.lobby-screen .hero h1, .lobby-screen .hero h2, .lobby-screen .hero .dev-badge-row { text-align: center; }
.hero > p:not(.eyebrow), .hero .lobby-fold-body > p:not(.eyebrow) { max-width: 760px; margin: 8px 0 0; color: var(--muted); font-size: var(--fs-body); line-height: 1.5; }





.hero .lobby-fold-body > .eyebrow { margin: 0 0 6px; }
html[data-folds] .hero-fold:not(.fold-open) .lobby-fold-body > .eyebrow { display: none; }














.hero-intro { display: flex; align-items: baseline; gap: 8px; }
html[data-folds] .hero-fold:not(.fold-open) .lobby-fold-body { flex: 1 1 auto; min-width: 0; }
html[data-folds] .hero-fold:not(.fold-open) .lobby-fold-body > p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }




html[data-folds] .hero-fold:not(.fold-open) .hero-usps { display: none; }



html[data-folds] :is(.hero-fold, .inline-fold) .hero-fold-toggle {
  display: inline-block; flex: 0 0 auto; padding: 0;
  border: 0; background: none; color: var(--blue); font-size: 13.5px; font-weight: 700;
}
.hero-fold.fold-open .hero-intro { display: block; }
.hero-fold.fold-open .hero-fold-toggle { margin-top: 8px; }

.hero-usps { display: flex; flex-wrap: wrap; gap: 8px; margin: 11px 0 0; padding: 0; list-style: none; }
.hero-usps li {
  padding: 7px 13px; border: 1px solid var(--card-line); border-radius: 999px;
  background: var(--card); color: var(--navy-ink); font-size: var(--fs-small); font-weight: 680;
  box-shadow: 0 2px 10px rgba(19, 45, 72, .06);
}








.card { background: var(--card); border: 1px solid transparent; border-radius: 18px; box-shadow: var(--shadow); }

.overlay .card { border-color: var(--card-line); }



















.lobby-board {
  display: grid; gap: 12px; max-width: var(--lobby-kolom); margin: 0 auto 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr;
  align-items: stretch;
}



.board-tile { display: flex; flex-direction: column; padding: 14px 16px; margin: 0; }


.board-daily { grid-row: span 2; }
.lobby-board[data-tiles="1"], .lobby-board[data-tiles="2"] { grid-template-rows: auto; }
.lobby-board[data-tiles="1"] { grid-template-columns: minmax(0, 1fr); }
.lobby-board[data-tiles="1"] .board-daily, .lobby-board[data-tiles="2"] .board-daily { grid-row: auto; }
@media (min-width: 701px) {




  .lobby-board { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
}



.board-daily { border-color: var(--medal-line); }
.board-daily h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: var(--fs-h3); }



.board-day {
  min-height: 1.25em; margin: 0; font-size: clamp(19px, 2.4vw, 24px); font-weight: 800;
  line-height: 1.2; letter-spacing: -.01em; color: var(--navy-ink);
}


.board-day-level { margin: 2px 0 0; font-size: 13px; font-weight: 600; line-height: 1.25; }
.board-tile.daily-done { border-color: var(--good); }
#daily-status.daily-done { color: var(--good-ink); }


.board-countdown { display: flex; align-items: center; gap: 6px; margin: 6px 0 10px; color: var(--muted); font-size: 13px; }
.board-countdown-time { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }







.board-play-row { display: flex; align-items: stretch; gap: 8px; margin-block: 0 8px; }
.board-play { flex: 1 1 auto; min-width: 0; }



.board-daily-cal { align-self: stretch; height: auto; min-height: 44px; border: 1px solid var(--card-line); border-radius: 12px; }



.board-level { margin-top: auto; }










.board-streak {
  align-items: center; justify-content: center; text-align: center;
  background: var(--surface);
}





.board-streak-sun { width: 34px; height: 34px; display: block; flex: none; color: var(--logo-orange); }
.board-streak-count { margin: 3px 0 0; font-size: 30px; font-weight: 800; line-height: 1; color: var(--orange-dark); }







.board-streak-overdue { border-color: var(--orange-dark); box-shadow: inset 0 0 0 1px var(--orange-dark); }
.board-streak-overdue .board-tile-label { color: var(--orange-dark); }


.board-streak-overdue .board-streak-count { color: var(--orange-dark); }




.board-streak-note { margin: 4px 0 0; font-size: 11.5px; line-height: 1.25; font-weight: 600; color: var(--warm-ink); }






.board-streak-leeg .board-streak-count { display: none; }
.board-streak-leeg .board-tile-label { font-size: var(--fs-body); font-weight: 800; color: var(--orange-dark); }




.board-streak-start { margin: 4px 0 0; font-size: 11.5px; line-height: 1.3; font-weight: 600; color: var(--muted); }
.board-tile-label { margin: 3px 0 0; font-size: 12.5px; font-weight: 700; }








.board-top {
  position: relative; align-items: center; justify-content: center; text-align: center;
  background: var(--surface);
}
.board-top h2 { margin: 0 0 6px; font-size: 14.5px; color: var(--navy-ink); }
.board-top-open {
  position: absolute; inset: 0; width: 100%; padding: 0;
  border: 0; border-radius: 18px; background: none; color: transparent; font-size: 0;
  cursor: pointer;
}
.board-top-open:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.board-top:hover { border-color: var(--blue); }

.board-podium { width: 100%; max-width: 116px; height: auto; display: block; }
.podium-gold { fill: var(--podium-gold); }
.podium-silver { fill: var(--podium-silver); }
.podium-bronze { fill: var(--podium-bronze); }
.podium-number { fill: var(--podium-ink); font-size: 15px; font-weight: 800; text-anchor: middle; }





.board-top-leeg .podium-block { fill: var(--dash); }
.board-top-leeg .podium-number { fill: var(--surface); }


.board-top-mine {
  min-height: 1.4em; margin: 8px 0 0; font-size: 14.5px; font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--navy-ink);
}
.board-top-mine.muted { font-size: 13px; font-weight: 600; }





.board-top-leeg .board-top-mine { color: var(--blue); }



.board-top-list { min-height: 76px; margin: 0; padding: 0; list-style: none; counter-reset: tijd; }
.board-top-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 2px 0; font-size: 13.5px; color: var(--navy-ink);
}
.board-top-item::before { counter-increment: tijd; content: counter(tijd) "."; margin-right: 6px; font-weight: 700; opacity: .7; }
.board-top-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-top-time { font-weight: 800; font-variant-numeric: tabular-nums; }

.board-top-item.mine { font-weight: 800; }
.board-top-item.mine .board-top-name::after { content: ' (jij)'; font-weight: 700; }
.board-top-empty { font-size: 13px; line-height: 1.45; }
















.play-panel { display: grid; gap: 18px; max-width: var(--lobby-kolom); margin: 0 auto 18px; }
.play-panel > * { margin-bottom: 0; }
.play-window { display: grid; gap: 12px; }


.play-window-head { display: none; align-items: center; justify-content: space-between; gap: 10px; }
.play-window-title { margin: 0; }
.play-choice { display: grid; gap: 6px; }
.play-choice-button { min-height: 48px; font-size: 16px; }



.niveau-keuze { display: flex; flex-wrap: wrap; gap: 6px; }
.niveau-knop { flex: 1 1 auto; min-height: 40px; padding: 8px 12px; font-size: 14px; color: var(--navy-ink); background: var(--chip); }




.niveau-modal .niveau-keuze { display: grid; gap: 8px; }
.niveau-modal .niveau-knop { min-height: 48px; font-size: 16px; }




.techniek-keuze { display: grid; gap: 8px; }
.techniek-regel { padding: 10px 12px; border: 1px solid var(--card-line); border-radius: 14px; background: var(--surface); }
.techniek-kop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.techniek-label { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }


.techniek-label input { width: 20px; height: 20px; }
.techniek-kaart { margin: 4px 0 0; font-size: 13px; }


.techniek-vraag { flex: 0 0 auto; width: 32px; height: 32px; font-size: 16px; font-weight: 700; line-height: 1; }


.techniek-demo { margin-top: 14px; }







.techniek-demo:empty::before {
  content: ''; display: block; margin: 0 auto;
  width: min(100%, calc(var(--demo-kolommen, 9) * 40px));
  aspect-ratio: var(--demo-kolommen, 9) / var(--demo-rijen, 3);
}
.techniek-demo:empty::after { content: ''; display: block; height: calc(3em + 64px); }
.play-join { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--card-line); border-radius: 16px; background: var(--surface); }
.play-join-title { margin: 0; font-size: 15px; }
.play-browse-link { justify-self: start; font-size: 13px; }










html:not([data-folds]) .play-join-toggle { display: none; }
html[data-folds] .play-join-toggle {
  display: inline-flex; justify-self: start; min-height: 36px; padding: 7px 12px; gap: 6px; font-size: 14px;
}
.play-join-toggle .ps-icon { width: 16px; height: 16px; }


html[data-folds] .play-join-toggle::after { content: '▾'; font-size: 11px; line-height: 1; }
html[data-folds] .play-join-toggle[aria-expanded="true"]::after { content: '▴'; }
html[data-folds] .play-join:not(.join-open) { display: none; }


html[data-folds] .play-join-title { display: none; }
html[data-folds] .play-panel:not(.panel-open) { display: none; }
html[data-folds] .play-panel {
  position: fixed; inset: 0; z-index: 100; max-width: none; margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  place-items: center; background: var(--overlay-bg); backdrop-filter: blur(4px); overflow: auto;
}
html[data-folds] .play-panel .play-window {
  width: min(420px, 100%); max-height: 100%; overflow: auto;
  padding: 16px; border: 1px solid var(--card-line); border-radius: 18px;
  background: var(--card); box-shadow: var(--shadow);
}
html[data-folds] .play-panel .play-window-head { display: flex; }



.lobby-seo { display: grid; gap: 18px; max-width: var(--lobby-kolom); margin: 26px auto 0; }


.landing-screen .lobby-seo { margin-top: 6px; }





.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--ink); border-bottom-color: currentColor; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
.landing-text { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.landing-text:last-child { margin-bottom: 0; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }



.landing-figuur { display: block; max-width: 100%; height: auto; margin: 16px auto 0; border-radius: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }


.board-start { gap: 8px; }
.board-start-tekst { margin: 0; line-height: 1.45; }
.board-start-borden { margin: 0; padding: 0 0 0 18px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.board-start-borden strong { color: var(--ink); }
.board-start .board-play-row { margin-top: auto; }




.landing-screen > .landing-actions { max-width: var(--lobby-kolom); margin-inline: auto; }









html[data-proef="zweedsknop-aan"] .landing-screen { display: flex; flex-direction: column; }
html[data-proef="zweedsknop-aan"] .landing-screen > * { width: 100%; }
html[data-proef="zweedsknop-aan"] .landing-screen > .landing-actions { order: 1; margin-top: 16px; }
html[data-proef="zweedsknop-aan"] .landing-screen > .lobby-seo { order: 2; margin-top: 26px; }
a.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.lobby-seo .card { padding: 22px 24px; }
.lobby-seo h2 { margin: 0 0 12px; }






.demospeler { margin: 14px 0 0; }
.demospeler:focus-visible { outline: 3px solid var(--sudoku-accent); outline-offset: 4px; border-radius: 8px; }
.demospeler-bord { display: flex; justify-content: center; }
.demospeler-raster {
  display: grid; grid-template-columns: repeat(var(--demo-kolommen, 9), 1fr);



  width: min(100%, calc(var(--demo-kolommen, 9) * 40px));
  border: 2px solid var(--grid-line); border-radius: 4px; background: var(--grid-line); gap: 0;
}
.demo-cel {
  position: relative; aspect-ratio: 1; border: 1px solid var(--grid-line);
  background: var(--cell-bg); color: var(--cell-ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}



.demo-cel.blok-rechts { border-right-width: 3px; }
.demo-cel.blok-onder { border-bottom-width: 3px; }



.demo-cel.vast { background: var(--sudoku-given-bg); }
.demo-cel.gezet { background: var(--sudoku-soft); }
.demo-waarde { font-weight: 800; font-size: clamp(13px, 3.4vw, 20px); }
.demo-nieuw { color: var(--sudoku-accent); }


.demo-cel.patroon { background: var(--sudoku-soft); box-shadow: inset 0 0 0 3px var(--sudoku-accent); }


.demo-notities {
  position: absolute; inset: 1px; display: grid;
  grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
}
.demo-notities span {
  display: flex; align-items: center; justify-content: center; line-height: 1;
  font-size: clamp(7px, 1.5vw, 11px); font-weight: 600; color: var(--draft-ink);
}


.demo-notities span.demo-weg { color: var(--bad); text-decoration: line-through; font-weight: 800; }
.demospeler-tekst {
  margin: 10px 0 0; min-height: 3em; color: var(--ink); line-height: 1.5;
  text-align: center;
}



.demospeler-knoppen { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.demospeler-knop { padding: 6px 14px; font-size: 14px; }
.demospeler-knop:disabled { opacity: .45; cursor: default; }
.demospeler-stap { color: var(--muted); font-size: 13px; }


.techniek-voorbeeld { border-left: 3px solid var(--sudoku-accent); padding-left: 12px; font-style: italic; }


.techniek-hub { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .techniek-hub { grid-template-columns: 1fr 1fr; } }
.techniek-hubkaart { padding: 14px 16px; }
.techniek-hubkaart h3 { margin: 0 0 6px; font-size: 16px; }
.techniek-hubkaart h3 a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.techniek-hubkaart h3 a:hover { border-bottom-color: currentColor; }
.techniek-hubnamen { margin: 0; color: var(--sudoku-accent); font-size: 13px; font-weight: 650; }
.techniek-hubstap { margin: 4px 0 0; color: var(--muted); font-size: 12px; }





.puzzel-index { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 12px 0 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .puzzel-index { grid-template-columns: 1fr 1fr; } }
.puzzel-index li { margin: 0; }
.puzzel-index a { color: var(--ink); font-weight: 650; text-decoration: none; border-bottom: 1px solid transparent; }
.puzzel-index a:hover { border-bottom-color: currentColor; }
.puzzel-index p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }



html[data-simple="1"] .demo-cel { transition: none; }





.puzzle-figure { margin: 0 0 16px; }
.puzzle-figure svg { display: block; width: 100%; max-width: 340px; height: auto; }
.puzzle-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pz-cell { fill: var(--cell-bg); stroke: var(--grid-line); }
.pz-block { fill: var(--block-bg); stroke: var(--grid-line); }
.pz-sol { fill: var(--solution-mark-bg); stroke: var(--grid-line); }
.pz-letter { fill: var(--cell-ink); font-size: 15px; font-weight: 600; text-anchor: middle; }
.pz-sol-letter { fill: var(--solution-mark-ink); font-size: 15px; font-weight: 700; text-anchor: middle; }
.pz-num { fill: var(--muted); font-size: 8px; font-weight: 500; }
.pz-panel-title { fill: var(--ink); font-size: 11px; font-weight: 700; }
.pz-cluenum { fill: var(--blue); font-size: 11px; font-weight: 700; }
.pz-cluetext { fill: var(--clue-item-ink); font-size: 11px; font-weight: 500; }
.pz-bankword { fill: var(--cell-ink); font-size: 12px; font-weight: 600; }







.demo { margin: 0 0 20px; }
.demo-stage {
  display: flex; align-items: flex-end; justify-content: center; gap: 16px;
  padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.demo-device {
  display: grid; gap: 8px; padding: 10px;
  border: 1px solid var(--card-line); border-radius: 12px; background: var(--paper);
  box-shadow: 0 6px 18px rgba(19, 45, 72, .10);
}
.demo-desktop { flex: 0 1 300px; }


.demo-phone { flex: 0 0 132px; padding: 8px; border-width: 3px; border-radius: 18px; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demo-code {
  padding: 3px 8px; border-radius: 8px; background: var(--code-chip); color: var(--navy-ink);
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
}
.demo-share {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; background: var(--blue-fill); color: var(--on-accent);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.demo-share .ps-icon { width: 12px; height: 12px; }
.demo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.demo-cell {
  display: grid; place-items: center; aspect-ratio: 1;
  border: 1px solid var(--grid-line); border-radius: 2px; background: var(--cell-bg);
  color: var(--cell-ink); font-size: 15px; font-weight: 800;
}
.demo-phone .demo-cell { font-size: 11px; }
.demo-cell.block { background: var(--block-bg); border-color: var(--block-bg); }



.demo-cell.one { --demo-ink: var(--blue); }
.demo-cell.two { --demo-ink: var(--orange-dark); }


.demo-cell.one, .demo-cell.two {
  color: var(--demo-ink);
  animation: demo-letter 9s linear infinite;
  animation-delay: calc(var(--i, 1) * .4s);
}
@keyframes demo-letter {
  0%, 5% { color: transparent; }
  8%, 100% { color: var(--demo-ink); }
}
.demo-players { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-player {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px 2px 5px; border-radius: 999px; background: var(--chip);
  color: var(--ink); font-size: 11px; font-weight: 650;
}
.demo-player::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.demo-player.one::before { background: var(--blue); }
.demo-player.two::before { background: var(--orange); }
.demo-player.three::before { background: var(--good); }
.demo-caption { margin: 12px 2px 0; color: var(--muted); font-size: 14px; line-height: 1.6; }


@media (prefers-reduced-motion: reduce) {
  .demo-cell.one, .demo-cell.two { animation: none; }
}

.how-steps { margin: 0; padding: 0; list-style: none; counter-reset: stap; color: var(--muted); line-height: 1.6; }
.how-steps li { counter-increment: stap; position: relative; margin-bottom: 14px; padding-left: 42px; }
.how-steps li::before {
  content: counter(stap); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--blue-soft); color: var(--navy-ink); font-size: 14px; font-weight: 800;
}
.how-steps li:last-child { margin-bottom: 0; }
.how-steps strong { color: var(--ink); }





@media (min-width: 901px) {




  .fold-open > #how-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 28px; }
  #how-body > .demo { margin-bottom: 0; }
  #how-body > .muted { grid-column: 1 / -1; margin-top: 18px; }


  #how-body > .how-faq { grid-column: 1 / -1; }
}


.how-faq { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.how-faq h3 { margin: 0 0 10px; font-size: 17px; }
.faq-item { border-top: 1px solid var(--line); padding: 10px 0; }
.faq-item:first-of-type { border-top: 0; padding-top: 0; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { margin: 8px 0 2px; color: var(--muted); line-height: 1.6; }




.how-card { margin-bottom: 14px; padding: 14px 20px; }
.how-card { max-width: var(--lobby-kolom); margin-inline: auto; }




.how-card h2 { margin: 0 0 12px; font-size: var(--fs-h2); font-weight: 700; }








.game-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: var(--lobby-kolom); margin: 4px auto 18px; }


.game-tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px 22px; text-decoration: none; color: var(--ink); }
.game-tile-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--game-soft); color: var(--game-soft-ink); flex: none; }
.game-tile-badge .ps-icon { color: inherit; }
.game-tile-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.game-tile-title { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }


.game-tile-dev { font-size: 10.5px; padding: 1px 7px; }
.game-tile strong { font-size: var(--fs-h3); color: var(--navy-ink); }
.game-tile-sub { font-size: var(--fs-small); line-height: 1.45; }
.game-tile-go { color: var(--muted); flex: none; transition: transform 0.15s ease, color 0.15s ease; }




a.game-tile { transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
a.game-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
a.game-tile:hover .game-tile-go { transform: translateX(3px); color: var(--blue); }
a.game-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }



.dev-badge { display: inline-flex; align-items: center; vertical-align: middle; padding: 2px 8px; border-radius: 999px; background: var(--warm-bg); color: var(--warm-ink); font-size: 11px; font-weight: 760; letter-spacing: 0.02em; white-space: nowrap; }





.early-access { margin: 0; color: var(--orange-dark); font-size: calc(var(--hero-kop, 30px) * 0.62); font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; }



@media (max-width: 640px) { .game-choice { grid-template-columns: minmax(0, 1fr); } }









.hub-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; max-width: 900px; margin: 0 0 18px; }
.hub-type { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.hub-type .ps-icon { color: var(--blue); }
.hub-type strong { font-size: 17px; color: var(--navy-ink); }
.hub-type-sub { font-size: 13px; line-height: 1.4; }
.hub-type:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.hub-type:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }










.lobby-logo { display: flex; flex-direction: column; align-items: center; margin: 0 auto; }








.lobby-screen > .lobby-logo, .home-screen > .lobby-logo { flex: 1 1 auto; min-height: 0; max-height: 248px; }
.lobby-logo-mark { flex: 1 1 76px; min-height: 76px; max-height: 208px; width: auto; aspect-ratio: 1 / 1; display: block; }
.lobby-logo-word { margin: 6px 0 0; font-size: clamp(23px, 2.4vh, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.lobby-logo-word strong { color: var(--brand-navy); font-weight: 800; }
.lobby-logo-word span { color: var(--brand-samen); }
.lobby-actions { display: grid; gap: 8px; max-width: var(--lobby-kolom); margin: 0 auto 14px; }
.lobby-actions .button { white-space: normal; }






















.lobby-bottom { display: grid; gap: 12px; align-items: start; max-width: var(--lobby-kolom); margin: 8px auto 14px; }
.lobby-bottom > .lobby-actions, .lobby-bottom > .how-card { margin: 0; max-width: none; }
@media (min-width: 701px) {









  .lobby-bottom > .lobby-actions:not(:has(> .button ~ .button:not(.hidden))) #lobby-open-play,
  html[data-folds] .lobby-bottom > .how-card.lobby-fold { min-height: var(--lobby-onderregel); }












  html[data-folds] .lobby-bottom > .how-card.lobby-fold:not(.fold-open) > h2 { font-size: 17px; }
}
@media (min-width: 701px) {
  .lobby-bottom { grid-template-columns: minmax(140px, 1fr) minmax(0, 4fr); }




















  html[data-folds] .lobby-bottom:has(> .how-card.lobby-fold:not(.fold-open):not(.hidden):not([hidden])) { align-items: stretch; }
}




#lobby-open-play { min-height: 46px; font-size: 15.5px; }







.lobby-bottom .how-tutorial { min-height: 38px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }



#lobby-open-play[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--navy-ink); }
#lobby-open-play[aria-expanded="true"]::after { content: '▴'; font-size: 11px; line-height: 1; }




.account-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.account-note { margin: 0; max-width: 560px; font-size: 13px; line-height: 1.45; }
.mine-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mine-list { display: grid; gap: 10px; margin-top: 12px; font-size: 14px; }
.mine-item {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}










.mine-rooms { flex: 1 1 auto; width: 100%; margin-top: 2px; border-top: 1px solid var(--line); }
.mine-rooms > summary {
  list-style: none; cursor: pointer; padding: 8px 2px 0;
  font-size: 13px; font-weight: 750; color: var(--blue);



  min-height: 40px; display: flex; align-items: center; gap: 6px;
}
.mine-rooms > summary::-webkit-details-marker { display: none; }
.mine-rooms > summary::after { content: '▾'; font-size: 11px; }
.mine-rooms[open] > summary::after { content: '▴'; }


.mine-rooms-list { margin-top: 8px; padding-left: 10px; gap: 8px; font-size: 13px; }
.mine-rooms-list .mine-item { padding: 10px 12px; background: var(--paper); }

















.lobby-fold-toggle { display: none; }
html[data-folds] .lobby-fold > .lobby-fold-toggle { display: flex; }
html[data-folds] .lobby-fold:not(.fold-open) > .lobby-fold-body { display: none; }


html[data-folds] .how-card.lobby-fold:not(.fold-open) > h2,
html[data-folds] .lobby-seo .lobby-fold:not(.fold-open) > h2 { margin-bottom: 8px; }
.lobby-fold-toggle:not(.hero-fold-toggle) {
  width: 100%; min-height: 42px; margin-top: 10px; padding: 9px 14px;
  align-items: center; justify-content: center; gap: 8px;
  border: 1px dashed var(--line); border-radius: 12px;
  background: transparent; color: var(--blue); font-size: 13.5px; font-weight: 650;
}
.lobby-fold-toggle:not(.hero-fold-toggle):hover { background: var(--chip); }
.lobby-fold-toggle:not(.hero-fold-toggle)::after { content: '▾'; font-size: 11px; }
.lobby-fold-toggle:not(.hero-fold-toggle)[aria-expanded="true"]::after { content: '▴'; }














html[data-folds] .landing-fold,
html[data-folds] .how-card.lobby-fold {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline; column-gap: 16px;
}
html[data-folds] .landing-fold > h2,
html[data-folds] .how-card.lobby-fold > h2 { margin-bottom: 0; }
html[data-folds] .landing-fold > .lobby-fold-toggle,
html[data-folds] .how-card.lobby-fold > .lobby-fold-toggle {
  display: flex; width: auto; min-height: 0; margin-top: 0; padding: 6px 12px;
}
html[data-folds] .landing-fold > .lobby-fold-body,
html[data-folds] .how-card.lobby-fold > .lobby-fold-body { grid-column: 1 / -1; margin-top: 14px; }



html[data-folds] .how-card.lobby-fold { grid-template-columns: minmax(0, 1fr) auto auto; }
.how-tutorial { align-self: baseline; min-height: 0; padding: 6px 12px; font-size: 13.5px; }
html[data-folds] .landing-fold:not(.fold-open) > .lobby-fold-body { display: none; }



.mine-info { display: grid; gap: 3px; min-width: 0; flex: 1 1 320px; }
.mine-info span { font-size: 12.5px; }
.mine-retention { margin-top: 10px; font-size: 12.5px; }




.mine-expiry { font-weight: 700; }


.mine-keep-tip { color: var(--muted); line-height: 1.45; }
#all-keep-tip:empty { display: none; }







.mine-block { padding-top: 0; }
.mine-block-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 48px; padding: 12px 2px; border: 0; background: transparent;
  color: var(--ink); text-align: left; cursor: pointer;
}
.mine-block-head:hover .ui-h3 { color: var(--blue); }
.mine-block-head .ui-h3 { margin: 0; }


.mine-block-head .badge { flex: none; }
.mine-block-chevron { margin-left: auto; flex: none; color: var(--muted); transition: transform .15s ease; }
.mine-block-head[aria-expanded="true"] .mine-block-chevron { transform: rotate(180deg); }
.mine-block-body { padding-bottom: 4px; }



.mine-explain > summary {
  list-style: none; cursor: pointer; min-height: 36px; display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--blue);
}
.mine-explain > summary::-webkit-details-marker { display: none; }
.mine-explain > summary::after { content: '▾'; font-size: 11px; }
.mine-explain[open] > summary::after { content: '▴'; }
.mine-explain .settings-section-note { margin-top: 4px; }



.mine-tools {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; margin: 0 0 8px;
}
.mine-tools-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mine-sort-label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
select.mine-sort, .mine-tools input[type="search"] {
  min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); font-size: 13px;
}
select.mine-sort:focus, .mine-tools input[type="search"]:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,114,199,.14); outline: none;
}
.mine-tools input[type="search"] { min-width: 180px; }


.mine-more { width: 100%; min-height: 40px; font-size: 13px; }



.mine-remove { width: 40px; height: 40px; color: var(--bad-ink); }
.mine-remove:hover { color: var(--on-accent); background: var(--bad-fill); }
.mine-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.mine-actions { display: flex; gap: 8px; }
.mine-actions .button { min-height: 40px; padding: 7px 13px; font-size: 13px; }
.account-modal, .guest-modal { width: min(460px, 100%); }


.join-modal { width: min(520px, 100%); }



.join-body { gap: 10px; flex: 1; align-content: start; }
.join-details { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--chip); }
.join-puzzle-title { margin: 0; font-size: 19px; }
#join-puzzle-meta { margin: 0; font-size: 13px; line-height: 1.4; }
.join-players { margin: 4px 0 0; font-size: 13.5px; }
.join-footer { flex-wrap: wrap; gap: 10px; }
.join-footer .button { flex: 1 1 160px; justify-content: center; }

.profile-modal { width: min(560px, 100%); }
.profile-modal .settings-section:first-child { border-top: 0; padding-top: 0; }
.profile-photo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-photo-row .avatar-actions { margin-top: 0; }
.profile-status:empty { display: none; }
.profile-status { margin-top: 8px; font-size: 13px; }
.camera-box { display: grid; gap: 10px; margin-top: 12px; }
.camera-video {
  width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover;
  border: 1px solid var(--line); border-radius: 14px; background: var(--block-bg);
}

.feedback-modal { width: min(560px, 100%); }
.feedback-count:empty { display: none; }
.feedback-count { margin: -6px 0 10px; font-size: 12.5px; }
.feedback-history { display: grid; gap: 14px; }
.feedback-item { padding: 9px 11px; border-radius: 10px; background: var(--chip); }
.feedback-item-head { display: block; font-size: 12px; font-weight: 750; color: var(--field-label); }
.feedback-item-text { margin: 4px 0 0; font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }



.feedback-thread { display: grid; gap: 8px; }
.feedback-thread-messages { display: grid; gap: 8px; margin: 6px 0 0; }
.feedback-msg { max-width: 88%; padding: 7px 10px; border-radius: 12px; }
.feedback-msg-player { justify-self: start; background: var(--chip); border-bottom-left-radius: 4px; }
.feedback-msg-admin { justify-self: end; background: var(--accent-soft, var(--chip)); border-bottom-right-radius: 4px; }
.feedback-msg-who { display: block; font-size: 11px; font-weight: 750; color: var(--field-label); }
.feedback-msg .feedback-msg-text { margin: 2px 0 0; }
.feedback-msg-when { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.feedback-thread-reply { display: grid; gap: 6px; }
.feedback-thread-reply textarea { width: 100%; }
.feedback-thread-reply .button { justify-self: start; }




.camera-video.mirrored { transform: scaleX(-1); }

.guest-modal .field { margin-bottom: 4px; }
.guest-modal #guest-continue { margin-top: 2px; }








.resume-popup {
  position: fixed; z-index: 70;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(236px, calc(100vw - 24px));
  padding: 10px 12px 12px;
  border: 1px solid var(--card-line); border-radius: 14px;
  background: var(--paper); box-shadow: var(--shadow);
  animation: resume-in .28s ease-out;
}
.resume-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.resume-title { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }



.resume-close {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; margin: -7px -8px -6px 0; padding: 0;
  border: 0; border-radius: 9px; background: none; color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.resume-close .ps-icon { width: 17px; height: 17px; }
.resume-close:hover { background: var(--chip); color: var(--ink); }
.resume-room { margin: 2px 0 0; font-size: 14.5px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.resume-meta { margin: 3px 0 0; font-size: 11.5px; line-height: 1.4; }
.resume-go { width: 100%; min-height: 36px; margin-top: 10px; padding: 7px 10px; font-size: 13.5px; }



.resume-never { display: flex; align-items: center; gap: 6px; margin-top: 9px; color: var(--muted); font-size: 11.5px; cursor: pointer; }
.resume-never input { width: 15px; height: 15px; margin: 0; flex: none; accent-color: var(--blue); }
@keyframes resume-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .resume-popup { animation: none; } }





.donation-popup { width: min(280px, calc(100vw - 24px)); }
.donation-popup .resume-title { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13.5px; }
.donation-popup .resume-title .ps-icon { color: var(--orange); }
.donation-popup-text { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; }


.donation-popup-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.donation-popup-buttons .button { width: 100%; min-height: 36px; padding: 7px 10px; font-size: 13.5px; }
.donation-popup-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; }



.daily-notify-popup-text { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; }



.feedback-popup { width: min(288px, calc(100vw - 24px)); }
.feedback-popup .resume-title { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13.5px; }
.feedback-popup .resume-title .ps-icon { color: var(--blue); }
.feedback-popup-intro { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; }
.feedback-popup-form { margin: 0; }
.feedback-popup-message {
  width: 100%; margin-top: 9px; padding: 8px 10px;
  border: 1px solid var(--card-line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 13px; line-height: 1.4; resize: vertical;
}
.feedback-popup-message:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }


.feedback-popup-email {
  width: 100%; margin-top: 7px; padding: 8px 10px;
  border: 1px solid var(--card-line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 13px; line-height: 1.4;
}
.feedback-popup-email:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.feedback-popup-note { margin: 5px 0 0; font-size: 11.5px; line-height: 1.4; }
.feedback-popup-status { margin: 6px 0 0; min-height: 1em; font-size: 11.5px; line-height: 1.4; }
.feedback-popup .resume-go { margin-top: 8px; }




.resume-popup.centered {
  top: 50%; bottom: auto; left: 50%; right: auto;
  transform: translate(-50%, -50%);
  animation-name: resume-in-center;
}
@keyframes resume-in-center {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}










.offline-popup {
  position: fixed; z-index: 78;
  top: max(10px, env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%);
  width: min(360px, calc(100vw - 20px));
  padding: 11px 13px 13px;
  border: 1px solid var(--orange); border-radius: 14px;
  background: var(--paper); box-shadow: var(--shadow);
  animation: offline-popup-in .28s ease-out;
}
.offline-popup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.offline-popup-title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 800; }
.offline-popup-text { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }


.offline-popup-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.offline-popup-list li { font-size: 12.5px; line-height: 1.4; }
.offline-popup-list li .ps-icon { margin-right: 5px; }



.offline-popup-actions { display: flex; gap: 8px; margin-top: 10px; }
.offline-popup-actions .button { flex: 1 1 0; min-height: 36px; padding: 7px 10px; font-size: 13px; }
@keyframes offline-popup-in {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) { .offline-popup { animation: none; } }







.tutorial-modal { width: min(560px, 100%); max-height: 100%; }
.tutorial-header { align-items: flex-start; padding-bottom: 12px; }
.tutorial-eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.tutorial-title { font-size: 20px; line-height: 1.2; }


.tutorial-progress { flex: none; padding: 12px 20px 8px; }
.tutorial-dots { display: flex; gap: 7px; margin-bottom: 9px; }
.tutorial-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.tutorial-dot.done { background: var(--blue-soft, var(--blue)); }
.tutorial-dot.active { background: var(--blue); transform: scale(1.25); }
.tutorial-bar { height: 5px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.tutorial-bar-fill { display: block; height: 100%; width: 16%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--orange)); transition: width .35s ease; }

.tutorial-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px 20px; animation: tutorial-fade .28s ease; }
@keyframes tutorial-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tutorial-body { animation: none; } }
.tutorial-lead { margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; }
.tutorial-body p { line-height: 1.55; }

.tutorial-points { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.tutorial-points li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.tutorial-points li .ps-icon { flex: none; margin-top: 1px; color: var(--good); }

.tutorial-footer { justify-content: space-between; }
.tutorial-footer .button { min-width: 116px; }
.tutorial-step-label { font-size: 12.5px; white-space: nowrap; }


.tutorial-illus { display: grid; place-items: center; padding: 14px; margin: 0 0 14px; border-radius: 16px; background: var(--chip); }


.tut-show-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tut-show-cell {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 8px; background: var(--cell-bg); color: var(--cell-ink);
  font-weight: 800; font-size: 18px; box-shadow: inset 0 0 0 1px var(--grid-line);
  animation: tut-show-pop .4s ease both; animation-delay: calc(var(--i) * .12s);
}
@keyframes tut-show-pop { from { opacity: 0; transform: scale(.4); } 60% { transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tut-show-cell { animation: none; } }


.tut-illus-grid { display: flex; gap: 5px; }
.tut-illus-cell {
  width: 46px; height: 46px; display: grid; place-items: center; position: relative;
  border-radius: 8px; font-weight: 800; font-size: 17px;
}
.tut-illus-cell.clue {
  width: 84px; padding: 4px; background: var(--clue-tile-bg); color: var(--clue-tile-ink);
  font-size: 10.5px; font-weight: 600; line-height: 1.15; text-align: center;
}
.tut-illus-cell.letter { background: var(--cell-bg); color: var(--cell-ink); box-shadow: inset 0 0 0 1px var(--grid-line); }
.tut-illus-arrow {
  position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
  color: var(--blue); font-size: 15px; font-weight: 900;
  animation: tut-arrow-nudge 1.4s ease-in-out infinite;
}
@keyframes tut-arrow-nudge { 0%, 100% { transform: translate(0, -50%); } 50% { transform: translate(3px, -50%); } }
@media (prefers-reduced-motion: reduce) { .tut-illus-arrow { animation: none; } }


.tut-share { display: flex; align-items: center; gap: 14px; }
.tut-share-code { padding: 8px 14px; border-radius: 10px; background: var(--code-chip, var(--chip)); font-weight: 800; letter-spacing: .05em; }
.tut-share-players { display: flex; gap: 6px; }
.tut-share-dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.12); animation: tut-dot-pop 1.8s ease-in-out infinite; }
.tut-share-dot.one { background: var(--logo-blue); animation-delay: 0s; }
.tut-share-dot.two { background: var(--logo-green); animation-delay: .3s; }
.tut-share-dot.three { background: var(--logo-orange); animation-delay: .6s; }
@keyframes tut-dot-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .tut-share-dot { animation: none; } }


.tutorial-done-illus { background: transparent; }
.tutorial-done-mark { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--good-bg); color: var(--good); animation: tut-show-pop .5s ease both; }
.tutorial-done-mark .ps-icon { width: 40px; height: 40px; }
.tutorial-launch { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }




.tutorial-actions { display: flex; flex-direction: column; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--card-line); }
.tutorial-actions:empty { display: none; }
.tutorial-skip { width: 100%; min-height: 44px; }

@media (max-width: 600px) {
  .tutorial-footer .button { min-width: 0; }
}











.coach-overlay { position: fixed; inset: 0; z-index: 92; pointer-events: none; }
.coach-overlay.hidden { display: none; }
.coach-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); display: none; }
.coach-overlay.floating .coach-backdrop { display: block; }
.coach-spot {
  position: absolute; border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.5), 0 0 0 3px var(--blue), 0 0 0 6px rgba(255,255,255,.3);
  transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}
.coach-overlay.floating .coach-spot { display: none; }
@media (prefers-reduced-motion: reduce) { .coach-spot { transition: none; } }
.coach-card {
  position: absolute; pointer-events: auto;
  width: min(320px, calc(100vw - 24px));
  padding: 16px 18px;
  border: 1px solid var(--card-line); border-radius: 16px;
  background: var(--paper); box-shadow: 0 18px 60px rgba(0,0,0,.35);
  animation: coach-in .22s ease-out;
}


.coach-close { position: absolute; top: 6px; right: 6px; }
.coach-card .coach-progress { padding-right: 28px; }
@keyframes coach-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .coach-card { animation: none; } }
.coach-progress { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--blue); }
.coach-title { margin: 0 0 6px; font-size: 17px; line-height: 1.2; }
.coach-text { margin: 0; font-size: 14px; line-height: 1.5; }


.coach-help { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--chip); font-size: 13px; line-height: 1.45; }
.coach-help.hidden { display: none; }
.coach-illus { display: grid; place-items: center; padding: 12px; margin: 0 0 12px; border-radius: 12px; background: var(--chip); }
.coach-illus.hidden { display: none; }
.coach-actions { display: flex; gap: 8px; margin-top: 14px; }
.coach-actions .button { min-height: 40px; }
.coach-actions .button.primary { flex: 1 1 0; }



.coach-card.attention { animation: coach-attention .35s ease; }
@keyframes coach-attention {
  0%, 100% { transform: none; }
  25% { transform: translateX(-6px); }
  60% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) { .coach-card.attention { animation: none; } }


.coach-target { animation: coach-target-pulse 1.4s ease-in-out infinite; }
@keyframes coach-target-pulse { 0%, 100% { filter: none; } 50% { filter: brightness(1.18); } }
@media (prefers-reduced-motion: reduce) { .coach-target { animation: none; } }



.solo-explain { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }



.solo-explain li { font-size: 13.5px; line-height: 1.45; }
.solo-explain li .ps-icon { margin-right: 5px; }






.napuzzel-eindstand { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.napuzzel-stand-rij {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 1px 10px;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); font-size: 13.5px;
}
.napuzzel-stand-rij.winnaar { border-color: var(--blue); background: var(--chip); font-weight: 750; }
.napuzzel-stand-punten { font-variant-numeric: tabular-nums; font-weight: 750; }



.napuzzel-stand-toelichting { grid-column: 1 / -1; font-size: 12px; color: var(--muted); font-weight: 400; }















.solo-eyebrow { display: none; }




body.solo #room-eyebrow,
body.solo .players-details,
body.solo .chat-panel,
body.solo #ping,
body.solo #typing-chat,
body.solo #reset,
body.solo #leave-game,
body.solo #solo-start,
body.solo #settings-color-section,
body.solo #settings-export-section,
body.solo #host-settings { display: none; }
body.solo .solo-eyebrow { display: block; color: var(--orange-dark); font-weight: 700; }

body:not(.solo) #solo-stop { display: none; }



body.origin-room #solo-start { display: none; }



.account-pref { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.4; cursor: pointer; }
.account-pref input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }

.menu-donate { width: 100%; margin-top: 12px; }
.guest-modal .settings-actions .button { flex: 1; }
.account-modal .field { margin-bottom: 0; }
.account-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.account-links .link-button { padding: 4px 0; text-align: left; font-size: 13px; }

.account-warning { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--warm-bg); color: var(--warm-ink); }
.account-warning .link-button { padding: 0 2px; color: var(--orange-dark); font-size: inherit; }


.limit-account-actions { margin-top: 10px; }
.limit-account-actions .button { min-height: 38px; padding: 6px 12px; font-size: 13px; }




.public-rooms-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; font-size: 14px; }
.public-room {
  display: grid; gap: 2px; padding: 10px 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.public-room:hover { border-color: var(--blue); background: var(--surface-hover); }
.public-room span { font-size: 12.5px; }


.browse-screen { display: grid; gap: 16px; max-width: 1080px; }
.browse-head { padding: 20px 4px 0; }
.browse-head h1, .browse-head h2 { margin: 10px 0 8px; font-size: clamp(26px, 4.5vw, 40px); letter-spacing: -.02em; }
.browse-head p { max-width: 720px; margin: 0; font-size: 15px; line-height: 1.55; }





.browse-filters { padding: 12px 14px; }
.browse-grid {
  display: grid; gap: 8px; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.browse-grid .field { margin: 0; min-width: 0; }
.browse-text { grid-column: span 2; }
.browse-button { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.browse-filters .library-line { margin-bottom: 0; }
.browse-filters :is(.field > span, .browse-group-title) { font-size: 12px; }
.browse-filters .field select { min-height: 38px; padding: 7px 10px; font-size: 14px; }
.browse-filters .field input { min-height: 40px; padding: 8px 12px; }


.browse-search-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
.browse-search-row .browse-text { grid-column: auto; }
.browse-more { margin: 10px 0 0; }
.browse-more summary { padding: 9px 12px; font-size: 14px; }


.browse-groups {
  display: grid; gap: 10px 14px; padding: 10px 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: start;
}
.browse-group { display: grid; gap: 7px; align-content: start; }
.browse-group-title {
  margin: 0; color: var(--muted); font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.browse-group .field { margin: 0; min-width: 0; }

.room-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.room-card { display: grid; gap: 10px; padding: 16px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.room-card-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.room-card-head h2 { margin: 0; font-size: 18px; }
.room-card-code { padding: 3px 8px; border-radius: 8px; background: var(--blue-soft); color: var(--navy-ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.room-card p { margin: 0; font-size: 13px; line-height: 1.45; }
.room-progress { display: grid; gap: 5px; }
.room-progress-bar { height: 8px; border-radius: 999px; background: var(--bar-bg); overflow: hidden; }
.room-progress-bar span { display: block; height: 100%; border-radius: 999px; background: var(--orange); }
.room-progress-bar span.done { background: var(--good); }
.room-progress-text, .room-presence { font-size: 12.5px; }
.badge.full { color: var(--bad-ink); background: var(--bad-bg); }
h1, h2, h3 { text-wrap: balance; }
.card h2 { margin: 0 0 18px; font-size: 23px; }

.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field > span { color: var(--field-label); font-size: 13px; font-weight: 750; }
.field input, .field select, .field textarea, .room-code-input {
  width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--input-line); border-radius: 10px; background: var(--input-bg); color: var(--ink); font-size: 16px; outline: none;
}
.field textarea { min-height: 120px; font-family: inherit; line-height: 1.45; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .room-code-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,114,199,.14); }
.room-code-input { text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.compact-field { max-width: 260px; margin-top: 15px; }
















.ps-icon { flex: none; width: 20px; height: 20px; vertical-align: -.2em; pointer-events: none; }
.ps-icon-s { width: 16px; height: 16px; }




.button, .icon-button, .code-button, .link-button, .tab, .crossword-toolbar button, .game-head-actions button {
  border: 0; border-radius: 10px; cursor: pointer; font-weight: 760; transition: transform .12s ease, background .12s ease, opacity .12s ease;
}
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; }
.button:active, .icon-button:active, .crossword-toolbar button:active, .game-head-actions button:active { transform: translateY(1px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button.wide { width: 100%; }
.button.primary { color: var(--on-accent); background: var(--blue-fill); }
.button.primary:hover { background: var(--blue-hover); }




.button.accent { color: var(--navy-2); background: var(--orange); }
.button.accent:hover { background: var(--orange); filter: brightness(1.06); }
.button.secondary { color: var(--navy-ink); background: var(--chip); }
.button.ghost { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.button.danger { color: var(--on-accent); background: var(--bad-fill); }
.button.danger:hover { background: var(--bad-fill-hover); }
.selected-summary { margin: 13px 0; min-height: 24px; line-height: 1.45; }
.notice { min-height: 22px; margin: 12px 0 0; font-size: 14px; }



#lobby-error { max-width: var(--lobby-kolom); margin-inline: auto; }



#lobby-error:empty { display: none; }
.notice.error { color: var(--bad); }
.notice.success { color: var(--good); }



.melding-uitweg { color: inherit; text-decoration: underline; white-space: nowrap; }

.overlay {
  position: fixed; inset: 0; z-index: 100; padding: max(12px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  display: grid; place-items: center; background: var(--overlay-bg); backdrop-filter: blur(4px); overflow: auto;
}



#guest-overlay, #account-overlay { z-index: 110; }



#friend-rooms-overlay { z-index: 105; }









:where(.modal) { width: min(980px, 100%); }
.modal { max-height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--paper); box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.modal-header, .modal-footer { flex: none; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.modal-header :is(h2, .ui-h2) { margin: 0; }
.modal-footer { border-top: 1px solid var(--line); border-bottom: 0; }



.icon-button { width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: var(--ink); background: var(--chip); font-size: 28px; }
.icon-button .ps-icon { width: 22px; height: 22px; }






.tabs { flex: none; display: flex; gap: 4px; padding: 9px 14px 0; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px; white-space: nowrap; color: var(--muted); background: transparent; border-radius: 9px 9px 0 0; }
.tab.active { color: var(--navy-ink); background: var(--tab-active); }


.subtabs { flex: none; display: flex; gap: 4px; padding: 8px 14px; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--tab-active); }
.subtabs .tab { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.subtabs .tab.active { background: var(--surface); }
.tab-panel { flex: 1; min-height: 0; padding: 18px; overflow: auto; }





.mine-game-filter, .picker-games { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.mine-game-filter .tab, .picker-games .tab { min-height: 38px; border-radius: 999px; border: 1px solid var(--line); }
.mine-game-filter .tab.active, .picker-games .tab.active { color: var(--navy-ink); background: var(--tab-active); border-color: var(--tab-active); }


.library-filters { display: grid; gap: 12px; }
.library-search { position: relative; display: flex; align-items: center; }
.library-search-icon { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.library-search input {
  width: 100%; min-height: 48px; padding: 10px 14px 10px 44px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 15px;
}
.library-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,114,199,.14); }
.library-filter-row { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)) auto; gap: 10px; align-items: end; }
.library-filter-row .field { margin: 0; }
.search-button { min-width: 110px; }
.library-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 14px 0 10px; font-size: 13px; }
.link-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px; background: transparent; color: var(--blue); }
.link-button .ps-icon { width: 17px; height: 17px; }



a.link-button { text-decoration: none; }
.puzzle-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.puzzle-card { display: grid; gap: 10px; padding: 15px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.puzzle-card.selected { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237,138,34,.15); }
.puzzle-card h3 { margin: 0; font-size: 18px; }
.puzzle-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.puzzle-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 999px; background: var(--badge-bg); color: var(--badge-ink); font-size: 11px; font-weight: 760; }
.badge.medium { color: var(--warm-ink); background: var(--medium-bg); }
.badge.hard { color: var(--bad-ink); background: var(--bad-bg); }


.badge.variant { color: var(--blue); background: var(--blue-soft); }
.puzzle-card-actions { display: flex; gap: 8px; }
.puzzle-card-actions .button { flex: 1; min-height: 40px; padding: 7px 10px; font-size: 13px; }


.favorite-toggle {
  flex: none; display: grid; place-items: center;
  width: 42px; min-height: 40px; padding: 0; line-height: 1;
  color: var(--muted); background: var(--chip); border-radius: 12px;
}
.favorite-toggle:hover { background: var(--chip-hover); }
.favorite-toggle.saved { color: var(--orange-dark); background: var(--medal-bg); }


.favorites-filter { margin: 0; font-size: 13px; white-space: nowrap; }


.favorites-filter span { display: inline-flex; align-items: center; gap: 5px; }
.empty-results { padding: 28px; grid-column: 1 / -1; text-align: center; color: var(--muted); border: 1px dashed var(--dash); border-radius: 14px; }
.generate-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.generate-grid .field { margin: 0; }
.generate-button { min-height: 46px; }
.import-explanation { margin-bottom: 18px; padding: 14px; border-radius: 12px; background: var(--info-bg); }
.import-explanation :is(h3, .ui-h3) { margin: 0 0 6px; }
.import-explanation p { margin: 0; color: var(--muted); line-height: 1.5; }
.file-drop { min-height: 110px; display: grid; place-items: center; padding: 20px; border: 2px dashed var(--dash); border-radius: 14px; text-align: center; background: var(--surface); cursor: pointer; }
.file-drop:hover { border-color: var(--blue); }
.file-drop input { position: absolute; opacity: 0; pointer-events: none; }
.file-drop small { color: var(--muted); }





.picker-choice { display: grid; gap: 12px; align-content: start; }
.picker-choice-card, .picker-start-card {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 18px; text-align: left;
  border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.picker-choice-card:hover, .picker-start-card:hover { border-color: var(--blue); box-shadow: 0 6px 18px var(--shadow); transform: translateY(-1px); }
.picker-choice-icon {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 14px; background: var(--info-bg); color: var(--blue);
}
.picker-choice-text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.picker-choice-title { font-size: 17px; font-weight: 780; color: var(--navy-ink); }
.picker-choice-note { font-size: 13px; line-height: 1.45; color: var(--muted); }
.picker-choice-arrow { flex: none; width: 20px; height: 20px; color: var(--muted); }
.picker-choice-card:hover .picker-choice-arrow, .picker-start-card:hover .picker-choice-arrow { color: var(--blue); }


.modal-header-lead { display: flex; align-items: center; gap: 10px; min-width: 0; }



.import-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.import-or::before, .import-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }


.import-foto-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.import-foto-row .button { flex: 0 0 auto; }
.import-foto-uitleg { flex: 1 1 240px; margin: 0; color: var(--muted); font-size: 13.5px; }
.import-url-row { display: flex; gap: 8px; align-items: stretch; }
.import-url-row input { flex: 1; min-width: 0; }
.import-url-row .button { flex: none; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 14px; }






.woordsoorten { grid-column: 1 / -1; margin: 4px 0 0; padding: 10px 14px 4px; border: 1px solid var(--line); border-radius: 12px; }
.woordsoorten legend { padding: 0 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.woordsoorten-uitleg { margin: 0 0 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.woordsoorten .check-row { margin: 6px 0; align-items: center; }


.woordsoorten .check-row small { display: block; color: var(--muted); font-size: 12px; }


.format-help { margin: 16px 0 0; }
.format-help-body { padding: 12px 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.format-help-body p { margin: 0 0 10px; }
.format-help-body ul { margin: 0 0 10px; padding-left: 20px; }
.format-help-body li { margin-bottom: 6px; }
.format-help-body code { padding: 1px 5px; border-radius: 6px; background: var(--blue-soft); color: var(--navy-ink); font-size: 13px; }

.format-help-body .button { display: inline-flex; align-items: center; text-decoration: none; }


.format-help-code {
  max-height: 240px; margin: 0 0 10px; padding: 10px 12px; overflow: auto;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink); font-size: 12px; line-height: 1.45; -webkit-overflow-scrolling: touch;
}

.format-help-code code { padding: 0; background: none; color: inherit; font-size: inherit; }















.game-screen { padding-top: 8px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
@media (min-width: 600px) {


  .game-screen { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}




.game-head { padding: 11px 16px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.game-head-main { min-width: 0; }


.game-head h2 { margin: 0; font-size: clamp(18px, 2.6vw, 24px); line-height: 1.15; }
#puzzle-meta { margin: 3px 0 0; font-size: 12.5px; line-height: 1.35; }
.code-button { padding: 3px 8px; color: var(--game-code-ink); background: var(--game-code-bg); letter-spacing: .12em; }

.game-head-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.game-head-actions { display: flex; gap: 8px; }




.game-head-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 9px 15px; line-height: 1.2;
  color: var(--navy-ink); background: var(--chip); font-size: 14px;
}
.game-head-actions button:hover { background: var(--chip-hover); }
.game-head-actions #share-game { color: var(--on-accent); background: var(--blue-fill); }
.game-head-actions #share-game:hover { background: var(--blue-hover); }
.game-head-actions button .ps-icon { width: 19px; height: 19px; }











.game-head:not(.head-open) #puzzle-title,
.game-head:not(.head-open) #puzzle-meta,
.game-head:not(.head-open) #room-eyebrow,
.game-head:not(.head-open) #solo-eyebrow,
.game-head:not(.head-open) .room-progress,
.game-head:not(.head-open) .game-head-actions .button-label { display: none; }


.puzzle-source { margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-head:not(.head-open) .puzzle-source { margin: 0; }

.puzzle-source:empty { display: none; }
.game-head:not(.head-open) .game-head-side { flex-direction: row; align-items: center; }

.head-toggle .ps-icon { transition: transform .15s ease; }
.game-head.head-open .head-toggle .ps-icon { transform: rotate(180deg); }


.game-head .room-progress { flex: none; width: 220px; max-width: 100%; }
.game-head .room-progress-label { margin: 0; font-size: 12.5px; }



.players-details { margin: 0 5px; color: var(--muted); font-size: 14px; }
.players-details summary {
  display: flex; align-items: center; gap: 6px; width: fit-content;
  padding: 4px 2px; border-radius: 8px; cursor: pointer; list-style: none;
}
.players-details summary::-webkit-details-marker { display: none; }

.players-details summary::after {
  content: '▾'; font-size: 12px; transition: transform .15s ease;
}
.players-details[open] summary::after { transform: rotate(180deg); }
.players-details summary:hover .players-count { color: var(--ink); }
.players { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.players-count { font-weight: 700; }
.player-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px;
}
.player-chip.offline { opacity: .55; }




.player-chip.aan-zet { border-color: var(--blue); background: var(--chip); font-weight: 700; }
.player-turn-mark { display: inline-flex; align-items: center; color: var(--blue); }
.player-color { width: 11px; height: 11px; flex: none; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.make-owner { margin-left: 2px; padding: 2px 8px; border: 0; border-radius: 999px; background: var(--chip); color: var(--navy-ink); font-size: 11.5px; font-weight: 750; cursor: pointer; }
.make-owner:hover { background: var(--chip-hover); }


.player-name {
  appearance: none; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; cursor: pointer;
}
.player-name:hover { text-decoration: underline; }


.player-friend-mark { display: inline-flex; align-items: center; color: var(--blue); }


.player-actions-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 999px;
  background: var(--chip); color: var(--navy-ink); cursor: pointer;
}
.player-actions-toggle:hover { background: var(--chip-hover); }
.player-actions-toggle .ps-icon { transition: transform .15s ease; }
.player-actions-toggle[aria-expanded="true"] .ps-icon { transform: rotate(180deg); }
.player-actions { display: inline-flex; align-items: center; gap: 4px; }
.kick-player { padding: 2px 8px; border: 1px solid var(--bad-line); border-radius: 999px; background: var(--bad-bg); color: var(--bad-ink); font-size: 11.5px; font-weight: 750; cursor: pointer; }
.kick-player:hover { background: var(--bad-bg-hover); }
.room-name-head { color: var(--game-accent-ink); font-weight: 800; }



.game-panel { display: contents; }









.sudoku-grid {
  position: absolute; top: 0; left: 0; transform-origin: top left;
  display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr);
  border-radius: 2px; background: var(--grid-line); gap: 0;
  box-shadow: 0 0 0 3px var(--sudoku-block-line);
  user-select: none; -webkit-user-select: none;
  -webkit-text-size-adjust: none; text-size-adjust: none;
}



.sudoku-viewport { height: min(56vh, 620px); min-height: 300px; }
.sudoku-cell {
  appearance: none; border: 1px solid var(--grid-line); border-radius: 0; padding: 0;
  background: var(--cell-bg); color: var(--cell-ink);
  font: inherit; font-weight: 800; font-size: 24px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  position: relative;
}



.sudoku-notes {
  position: absolute; inset: 1px; display: none;
  grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  pointer-events: none;
}
.sudoku-cell.notes .sudoku-notes { display: grid; }
.sudoku-cell.notes .sudoku-cell-value { display: none; }
.sudoku-notes span {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; font-style: italic;
  color: var(--draft-ink); line-height: 1;
}



.sudoku-cell:nth-child(9n+3), .sudoku-cell:nth-child(9n+6) { border-right: 3px solid var(--sudoku-block-line); }
.sudoku-cell:nth-child(n+19):nth-child(-n+27),
.sudoku-cell:nth-child(n+46):nth-child(-n+54) { border-bottom: 3px solid var(--sudoku-block-line); }


.sudoku-cell.given { background: var(--sudoku-given-bg); cursor: default; }






.sudoku-cell.same-digit { background: var(--sudoku-same-bg); }
.sudoku-cell.same-digit .sudoku-cell-value { font-weight: 900; }


.sudoku-grid[data-cijfer="1"] .sudoku-notes span[data-digit="1"],
.sudoku-grid[data-cijfer="2"] .sudoku-notes span[data-digit="2"],
.sudoku-grid[data-cijfer="3"] .sudoku-notes span[data-digit="3"],
.sudoku-grid[data-cijfer="4"] .sudoku-notes span[data-digit="4"],
.sudoku-grid[data-cijfer="5"] .sudoku-notes span[data-digit="5"],
.sudoku-grid[data-cijfer="6"] .sudoku-notes span[data-digit="6"],
.sudoku-grid[data-cijfer="7"] .sudoku-notes span[data-digit="7"],
.sudoku-grid[data-cijfer="8"] .sudoku-notes span[data-digit="8"],
.sudoku-grid[data-cijfer="9"] .sudoku-notes span[data-digit="9"] {
  color: var(--sudoku-accent); font-weight: 800; font-style: normal;
}
.sudoku-cell.selected { outline: 3px solid var(--sudoku-accent); outline-offset: -3px; z-index: 1; }

.sudoku-cell[style*="--peer-color"] { box-shadow: inset 0 0 0 3px var(--peer-color, var(--blue)); }
.sudoku-cell.incorrect { background: var(--incorrect-bg); color: var(--bad); }



.sudoku-hintkaart {
  margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--sudoku-accent);
  border-radius: 14px; background: var(--sudoku-soft);
}
.sudoku-hintkaart-kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sudoku-hintkaart-titel { margin: 0; font-weight: 800; color: var(--ink); }
.sudoku-hintkaart-tekst { margin: 6px 0 0; }
.sudoku-hintkaart-extra { margin: 6px 0 0; font-size: 13px; }
.sudoku-hintkaart-voet { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.sudoku-hintkaart-trede { margin: 0; font-size: 12px; }
.sudoku-cell.pinged { animation: sudoku-ping 10s ease-out; }
@keyframes sudoku-ping {
  0%, 60% { box-shadow: inset 0 0 0 4px var(--ping-color, var(--ping)); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}


.sudoku-pad { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.sudoku-pad button {
  min-width: 44px; min-height: 44px; border: none; border-radius: 10px;
  background: var(--sudoku-soft); color: var(--ink); font: inherit; font-weight: 800; font-size: 18px; cursor: pointer;
}
.sudoku-pad button:hover { background: var(--sudoku-soft-hover); }

.sudoku-pad button.toggled-on { background: var(--sudoku-accent-fill); color: var(--on-accent); }
.sudoku-pad button.toggled-on:hover { background: var(--sudoku-accent-fill-hover); }



.game-panel[data-game="sudoku"] .puzzle-panel { position: relative; }
.sudoku-pad.floating {
  position: absolute; z-index: 30; margin-top: 0; width: 176px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px;
  background: var(--paper); border: 1px solid var(--grid-line);
  border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.sudoku-pad.floating .sudoku-erase,
.sudoku-pad.floating .sudoku-undo { grid-column: 1 / -1; }



.sudoku-pad .sudoku-undo { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; }
.sudoku-pad .sudoku-undo:disabled { opacity: .45; cursor: default; }



body.solo #sudoku-ping { display: none; }


















#room-eyebrow,
#lobby .eyebrow,
#browse .eyebrow { color: var(--game-accent-ink); }
#lobby .button.primary,
#browse .button.primary,
#game .button.primary { background: var(--game-fill); }
#lobby .button.primary:hover,
#browse .button.primary:hover,
#game .button.primary:hover { background: var(--game-fill-hover); }





.overlay .eyebrow { color: var(--game-accent-ink); }
.overlay .button.primary { background: var(--game-fill); }
.overlay .button.primary:hover { background: var(--game-fill-hover); }









#game[data-game="sudoku"],
.game-tile[data-game="sudoku"],
body[data-lobby-game="sudoku"] #lobby,
body[data-lobby-game="sudoku"] #browse,
body[data-screen="game"]:has(#game[data-game="sudoku"]) .overlay,
body[data-screen="lobby"][data-lobby-game="sudoku"] .overlay,
body[data-screen="browse"][data-lobby-game="sudoku"] .overlay {
  --game-accent-ink: var(--sudoku-accent);
  --game-fill: var(--sudoku-accent-fill);
  --game-fill-hover: var(--sudoku-accent-fill-hover);
  --game-code-bg: var(--sudoku-accent-fill);
  --game-code-ink: var(--on-accent);
  --game-soft: var(--sudoku-soft);
  --game-soft-ink: var(--sudoku-accent);
}
#game[data-game="woordstrijd"],
.game-tile[data-game="woordstrijd"],
body[data-lobby-game="woordstrijd"] #lobby,
body[data-lobby-game="woordstrijd"] #browse,
body[data-screen="game"]:has(#game[data-game="woordstrijd"]) .overlay,
body[data-screen="lobby"][data-lobby-game="woordstrijd"] .overlay,
body[data-screen="browse"][data-lobby-game="woordstrijd"] .overlay {
  --game-accent-ink: var(--woordstrijd-accent);
  --game-fill: var(--woordstrijd-accent-fill);
  --game-fill-hover: var(--woordstrijd-accent-fill-hover);
  --game-code-bg: var(--woordstrijd-accent-fill);
  --game-code-ink: var(--on-accent);
  --game-soft: var(--woordstrijd-soft);
  --game-soft-ink: var(--woordstrijd-accent);
}






.woordstrijd-bord {
  position: absolute; top: 0; left: 0; transform-origin: top left;
  display: grid; grid-template-columns: repeat(15, 1fr); grid-template-rows: repeat(15, 1fr);
  border-radius: 2px; background: var(--grid-line); gap: 0;
  box-shadow: 0 0 0 3px var(--woordstrijd-accent);
  user-select: none; -webkit-user-select: none;
  -webkit-text-size-adjust: none; text-size-adjust: none;
}


.woordstrijd-viewport { height: min(52vh, 560px); min-height: 280px; }
.woordstrijd-vak {
  appearance: none; border: 1px solid var(--grid-line); border-radius: 0; padding: 0;
  background: var(--cell-bg); color: var(--cell-ink);
  font: inherit; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  position: relative; overflow: hidden;
}






.woordstrijd-bonus { font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.woordstrijd-vak[data-bonus="d"] { background: var(--woordstrijd-dl); color: var(--woordstrijd-dl-ink); }
.woordstrijd-vak[data-bonus="t"] { background: var(--woordstrijd-tl); color: var(--woordstrijd-tl-ink); }
.woordstrijd-vak[data-bonus="D"] { background: var(--woordstrijd-dw); color: var(--woordstrijd-dw-ink); }
.woordstrijd-vak[data-bonus="T"] { background: var(--woordstrijd-tw); color: var(--woordstrijd-tw-ink); }


.woordstrijd-vak.midden { box-shadow: inset 0 0 0 2px var(--woordstrijd-accent); }






.woordstrijd-steen { display: none; }
.woordstrijd-vak.gevuld .woordstrijd-bonus,
.woordstrijd-vak.voorlopig .woordstrijd-bonus { display: none; }
.woordstrijd-vak.gevuld .woordstrijd-steen,
.woordstrijd-vak.voorlopig .woordstrijd-steen {
  display: flex; align-items: center; justify-content: center;
  position: absolute; inset: 1px; border-radius: 3px;
  background: var(--woordstrijd-steen); color: var(--woordstrijd-steen-ink);
  box-shadow: inset 0 0 0 1px var(--woordstrijd-steen-rand), inset 0 -2px 0 var(--woordstrijd-steen-rand);
}
.woordstrijd-vak.gevuld { cursor: default; }



.woordstrijd-vak[data-punten]:not([data-punten=""])::after {
  content: attr(data-punten); position: absolute; right: 2px; bottom: 0;
  font-size: 9px; font-weight: 700; opacity: .75; z-index: 1;
}




.woordstrijd-vak.voorlopig .woordstrijd-steen {
  box-shadow: inset 0 0 0 2px var(--woordstrijd-accent), inset 0 -2px 0 var(--woordstrijd-steen-rand);
}



.woordstrijd-vak.laatste-zet .woordstrijd-steen {
  box-shadow: inset 0 0 0 1px var(--woordstrijd-accent), inset 0 -2px 0 var(--woordstrijd-steen-rand);
}
.woordstrijd-vak.blanco .woordstrijd-steen { font-style: italic; }







.woordstrijd-vak.uitgelicht { outline: 3px solid var(--woordstrijd-accent); outline-offset: -3px; }
@keyframes woordstrijd-uitlicht { 50% { outline-color: transparent; } }
@media (prefers-reduced-motion: no-preference) {
  .woordstrijd-vak.uitgelicht { animation: woordstrijd-uitlicht .5s ease-in-out 3; }
}







.woordstrijd-puntenballon {
  position: absolute; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--game-fill); color: var(--on-accent);
  box-shadow: 0 0 0 2px var(--cell-bg), 0 1px 3px rgba(0, 0, 0, .3);
  font-size: 11px; font-weight: 800; line-height: 1; white-space: nowrap;
}





.woordstrijd-scorebalk {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 14px; margin: 0 0 8px;
}
.woordstrijd-scores { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.woordstrijd-score {
  display: flex; align-items: baseline; gap: 6px;
  padding: 4px 10px; border-radius: 999px; background: var(--woordstrijd-soft);
}
.woordstrijd-score.aan-zet { background: var(--woordstrijd-accent-fill); color: var(--on-accent); font-weight: 800; }
.woordstrijd-score.weg { opacity: .55; text-decoration: line-through; }
.woordstrijd-score-punten { font-weight: 900; }
.woordstrijd-score-stenen { font-size: 10px; letter-spacing: .1em; opacity: .7; }
.woordstrijd-meters { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 13px; }
.woordstrijd-meter { color: var(--muted); }




.woordstrijd-zakknop {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 32px; margin: 0; padding: 0 2px; border: 0; border-radius: 8px;
  background: none; font: inherit; color: var(--muted); cursor: pointer; text-align: left;
}
.woordstrijd-zakknop::after { content: '▸'; font-size: 11px; transition: transform .15s ease; }
.woordstrijd-zakknop[aria-expanded="true"]::after { transform: rotate(90deg); }
.woordstrijd-zakknop:hover { color: var(--ink); text-decoration: underline; }




.woordstrijd-letters {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0;
  padding: 8px; border: 1px solid var(--card-line); border-radius: 12px; background: var(--surface);
}
.woordstrijd-letterchip {
  display: inline-flex; align-items: baseline; justify-content: center; gap: 3px;
  min-width: 36px; padding: 3px 6px; border-radius: 6px;
  background: var(--woordstrijd-steen); color: var(--woordstrijd-steen-ink);
  box-shadow: inset 0 0 0 1px var(--woordstrijd-steen-rand), inset 0 -2px 0 var(--woordstrijd-steen-rand);
  font-size: 12px; line-height: 1.2;
}
.woordstrijd-letterchip strong { font-weight: 800; font-size: 14px; }
.woordstrijd-letterchip span { color: var(--muted); font-size: 11px; font-weight: 700; }
.woordstrijd-letterchip.leeg { opacity: .45; }


.woordstrijd-klokregel { align-items: center; justify-content: space-between; margin: 0 0 8px; }
.woordstrijd-opgeven { font-size: 13px; padding: 4px 6px; color: var(--muted); min-height: 32px; }
.woordstrijd-opgeven:hover { color: var(--ink); text-decoration: underline; }






.woordstrijd-zetten { margin: 8px 0 0; border: 1px solid var(--card-line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.woordstrijd-zetten > summary {
  display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer;
  min-height: 40px; padding: 6px 12px; font-size: 14px; font-weight: 750; color: var(--ink);
}
.woordstrijd-zetten > summary::-webkit-details-marker { display: none; }
.woordstrijd-zetten > summary::after { content: '▾'; margin-left: auto; color: var(--muted); font-size: 13px; transition: transform .15s ease; }
.woordstrijd-zetten[open] > summary { border-bottom: 1px solid var(--line); }
.woordstrijd-zetten[open] > summary::after { transform: rotate(180deg); }



.woordstrijd-zettenlijst { margin: 0; padding: 4px 0; list-style: none; max-height: 14rem; overflow-y: auto; }
.woordstrijd-zetregel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  padding: 5px 12px; font-size: 13.5px; line-height: 1.35;
}
.woordstrijd-zetregel strong { font-weight: 750; }
.woordstrijd-zetregel .muted { font-size: 12.5px; }

.woordstrijd-zetregel.aanwijsbaar { cursor: pointer; }
.woordstrijd-zetregel.aanwijsbaar:hover { background: var(--surface-hover); }



.woordstrijd-zetstip {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--player-color, var(--line)); border: 1px solid rgba(0, 0, 0, .25);
}






.woordstrijd-tegenstanders { margin: 0 0 12px; }
.woordstrijd-tegenstanders-kop { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.woordstrijd-tegenstanderlijst { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.woordstrijd-tegenstander {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.woordstrijd-tegenstander:hover { border-color: var(--woordstrijd-accent); }
.woordstrijd-tegenstander .avatar { width: 40px; height: 40px; font-size: 17px; }
.woordstrijd-tegenstander-naam { display: grid; gap: 1px; }
.woordstrijd-tegenstander-naam strong { font-size: 15px; }
.woordstrijd-tegenstander-naam span { color: var(--muted); font-size: 12px; }
.woordstrijd-start {
  margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--woordstrijd-accent);
  border-radius: 14px; background: var(--woordstrijd-soft);
}
.woordstrijd-start p { margin: 0 0 8px; }
.woordstrijd-start-rij { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.woordstrijd-timer-label { font-size: 13px; font-weight: 650; }
.woordstrijd-timer { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; padding: 0 8px; }




.woordstrijd-melding.error { color: var(--bad); }







.woordstrijd-rekje { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: center; margin-top: 12px; }
.woordstrijd-rekje-steen {
  position: relative; min-width: 44px; min-height: 46px; flex: 0 0 auto; border: none; border-radius: 10px;
  background: var(--woordstrijd-steen); color: var(--woordstrijd-steen-ink);
  box-shadow: inset 0 0 0 1px var(--woordstrijd-steen-rand), 0 1px 0 var(--woordstrijd-steen-rand);
  font: inherit; font-weight: 800; font-size: 20px; cursor: pointer;
}
.woordstrijd-rekje-steen:hover { background: var(--woordstrijd-steen-rand); }


.woordstrijd-rekje-steen { touch-action: none; }



.woordstrijd-sleepschim {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--woordstrijd-steen); color: var(--woordstrijd-steen-ink);
  box-shadow: inset 0 0 0 1px var(--woordstrijd-steen-rand), 0 6px 14px rgba(20, 50, 90, .28);
  font-weight: 800; font-size: 22px; transform: scale(1.15);
}
.woordstrijd-sleepschim.blanco { font-style: italic; }


.woordstrijd-vak.doel { box-shadow: inset 0 0 0 2px var(--woordstrijd-accent); }



.woordstrijd-rekje-steen.schudt { transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: no-preference) {
  .woordstrijd-rekje-steen.schudt { animation: woordstrijd-hup .28s ease-out; }
  .woordstrijd-rekje-steen.komt-terug { animation: woordstrijd-terug .28s ease-out; }
}
@keyframes woordstrijd-hup { 50% { translate: 0 -6px; } }
@keyframes woordstrijd-terug { from { opacity: .35; } to { opacity: 1; } }
.woordstrijd-rekje-punten { position: absolute; right: 4px; bottom: 1px; font-size: 10px; font-weight: 700; opacity: .75; }

.woordstrijd-rekje-steen.gekozen { background: var(--woordstrijd-accent-fill); color: var(--on-accent); }


.woordstrijd-rekje-steen.gebruikt { opacity: .35; cursor: default; }

.woordstrijd-rekje.ruilstand .woordstrijd-rekje-steen.ruil { outline: 3px solid var(--bad); outline-offset: -3px; }




.woordstrijd-acties { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: center; margin-top: 10px; }
.woordstrijd-acties .button { flex: 0 1 auto; min-width: 44px; white-space: nowrap; }
.woordstrijd-acties .button:disabled { opacity: .4; }








.woordstrijd-meer { position: relative; flex: 0 0 auto; }
.woordstrijd-meer[hidden] { display: none; }
.woordstrijd-meer > summary { list-style: none; cursor: pointer; padding-left: 10px; padding-right: 10px; }
.woordstrijd-meer > summary::-webkit-details-marker { display: none; }
.woordstrijd-meer[open] > summary { background: var(--chip-hover); }
.woordstrijd-meer-lijst {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 180px; width: max-content; max-width: min(300px, calc(100vw - 24px)); padding: 6px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink);
  box-shadow: 0 18px 44px rgba(9, 34, 57, .3);
}
.woordstrijd-acties .woordstrijd-meer-lijst > .woordstrijd-meer-knop {
  display: flex; align-items: center; justify-content: flex-start; width: 100%; min-width: 0; min-height: 44px;
  margin: 0; padding: 8px 14px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer;
}
.woordstrijd-acties .woordstrijd-meer-lijst > .woordstrijd-meer-knop:hover,
.woordstrijd-acties .woordstrijd-meer-lijst > .woordstrijd-meer-knop:focus-visible { background: var(--surface-hover); }
.woordstrijd-acties .woordstrijd-meer-lijst > .woordstrijd-meer-knop:disabled { opacity: .4; cursor: default; }
.woordstrijd-acties .woordstrijd-meer-lijst > .woordstrijd-meer-knop.primary { color: var(--on-accent); background: var(--blue-fill); }
.woordstrijd-acties .woordstrijd-meer-lijst > .woordstrijd-meer-knop.primary:hover { background: var(--blue-hover); }
.woordstrijd-acties .woordstrijd-meer-lijst > .woordstrijd-meer-knop .chat-unread { margin-left: auto; }


.woordstrijd-zak-kort { display: none; }


.woordstrijd-toolbar [data-fs-zoom="uit"] { margin-left: 0; }


.woordstrijd-blanco-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.woordstrijd-blanco-letter { min-height: 46px; font-weight: 800; }



.woordstrijd-stapkop { display: flex; align-items: center; gap: 10px; }
.woordstrijd-terugknop { padding: 4px 10px; font-size: 13px; }
.woordstrijd-stap { display: grid; gap: 12px; }



.woordstrijd-keuzekaarten { display: grid; gap: 10px; }
.woordstrijd-keuzekaart {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 14px;
  padding: 12px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--card-line); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: inherit;
}
.woordstrijd-keuzekaart:hover,
.woordstrijd-keuzekaart:focus-visible { background: var(--woordstrijd-soft); border-color: var(--woordstrijd-accent); }
.woordstrijd-keuzekaart-tekst { display: grid; gap: 2px; }
.woordstrijd-keuzekaart-tekst strong { font-weight: 800; }
.woordstrijd-keuzekaart .muted { font-size: 13px; }
.woordstrijd-kaart-icoon { width: 28px; height: 28px; color: var(--woordstrijd-accent); }




.woordstrijd-bordkeuze { display: grid; gap: 8px; }
.woordstrijd-bordrij {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px;
  padding: 10px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: inherit;
}
.woordstrijd-bordrij::before {
  content: ''; width: 20px; height: 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
}
.woordstrijd-bordrij[aria-checked="true"] { border-color: var(--woordstrijd-accent); background: var(--woordstrijd-soft); }
.woordstrijd-bordrij[aria-checked="true"]::before {
  border-color: var(--woordstrijd-accent); background: var(--woordstrijd-accent);
  box-shadow: inset 0 0 0 3px var(--paper);
}
.woordstrijd-bordrij:hover:not([aria-checked="true"]) { background: var(--woordstrijd-soft); }
.woordstrijd-bordrij-tekst { display: grid; gap: 2px; }
.woordstrijd-bordrij-tekst strong { font-weight: 800; }
.woordstrijd-bordrij .muted { font-size: 13px; font-weight: 400; }


.woordstrijd-zoeken { display: grid; gap: 6px; justify-items: start; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--card-line); border-radius: 12px; }
.woordstrijd-zoeken-tekst { margin: 0; font-weight: 600; }
.woordstrijd-zoeken .muted { margin: 0; font-size: 13px; }
.woordstrijd-zoekacties { display: flex; flex-wrap: wrap; gap: 8px; }



.woordstrijd-vriendenlijst { display: grid; gap: 8px; }
.woordstrijd-vriendrij {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 8px 12px; border: 1px solid var(--card-line); border-radius: 12px; background: var(--paper);
}
.woordstrijd-vriendrij-tekst { display: grid; gap: 2px; min-width: 0; }
.woordstrijd-vriendrij-tekst strong { font-weight: 800; }
.woordstrijd-vriendrij .muted { font-size: 13px; }
.woordstrijd-vriendfoto { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }
.woordstrijd-vriendfoto-leeg { width: 32px; height: 32px; color: var(--muted); }







.editor-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 12px; }


.editor-block { background: var(--block-bg); cursor: pointer; }
.editor-block .crossword-cell-letter { color: transparent; }


#editor-grid.solution-picking .crossword-cell { cursor: copy; }
.editor-clue-list { display: grid; gap: 6px; margin: 0; padding-left: 22px; }
.editor-clue-list li { list-style: decimal; }
.editor-clue-input {
  width: 100%; box-sizing: border-box; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 15px;
}
.editor-solution-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 10px; }
.editor-solution-tools .field { flex: 1 1 180px; }


.editor-choice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.editor-choice p { margin: 0; flex: 1 1 220px; }


#game[data-game="editor"] #room-eyebrow,
#game[data-game="editor"] #solo-eyebrow,
#game[data-game="editor"] .room-progress,
#game[data-game="editor"] #share-game,
#game[data-game="editor"] #players-details { display: none; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 16px; align-items: start; }


.puzzle-panel, .clues-panel, .chat-panel { padding: 14px; }






.crossword-toolbar { position: sticky; top: 64px; z-index: 20; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; background: var(--paper); }
.crossword-toolbar button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 44px; min-height: 42px; padding: 9px 13px; line-height: 1.2;
  color: var(--navy-ink); background: var(--toolbar-btn); font-size: 14px;
}






.crossword-toolbar [data-fs-zoom="uit"] { margin-left: auto; }





.crossword-toolbar.tools-collapsed #zoom-active-word,
.crossword-toolbar.tools-collapsed #ping,
.crossword-toolbar.tools-collapsed #draft-mode,
.crossword-toolbar.tools-collapsed #hint { display: none; }





.toolbar-paar { display: inline-flex; align-items: center; gap: 4px; }
.tools-collapsed .toolbar-paar { display: none; }
#toolbar-tools[aria-expanded="true"] { background: var(--blue-soft); }


.crossword-toolbar button .ps-icon { width: 19px; height: 19px; }
.crossword-toolbar output { min-width: 55px; padding: 0 2px; text-align: center; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }



[data-fs-zoom="label"] {
  width: 62px; min-width: 62px; padding: 6px 2px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--muted); font: inherit; font-size: 13px; text-align: center;
  font-variant-numeric: tabular-nums;
}
[data-fs-zoom="label"]:focus { color: var(--navy-ink); }






.crossword-viewport {
  position: relative; width: 100%; height: min(63vh, 720px); min-height: 330px; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--viewport-line); border-radius: 12px; background: var(--viewport-bg); touch-action: none; cursor: grab;
}
.crossword-viewport.dragging { cursor: grabbing; }
.crossword-canvas { position: relative; min-width: 100%; min-height: 100%; }
.crossword-grid { position: absolute; top: 0; left: 0; display: grid; transform-origin: top left; user-select: none; -webkit-user-select: none; border-top: 1px solid var(--grid-line); border-left: 1px solid var(--grid-line); }





.crossword-grid { -webkit-text-size-adjust: none; text-size-adjust: none; }
.crossword-cell {
  position: relative; width: var(--cell-size); height: var(--cell-size); padding: 0; display: grid; place-items: center; box-sizing: border-box;
  border: 0; border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line); border-radius: 0; color: var(--cell-ink); background: var(--cell-bg); font-size: 23px; font-weight: 780; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.crossword-cell.block { background: var(--block-bg); cursor: default; }
.crossword-cell.block.hidden-cell { border-color: transparent; background: transparent; visibility: hidden; }
.crossword-cell.in-active-word { background: var(--word-bg); }
.crossword-cell.crossing-active-word { background: var(--cross-bg); }
.crossword-cell.active { background: var(--active-bg); outline: 3px solid var(--active-line); outline-offset: -3px; z-index: 3; }
.crossword-cell.incorrect { background: var(--incorrect-bg); color: var(--bad); }
.crossword-cell-number { position: absolute; top: 2px; left: 3px; font-size: 9px; line-height: 1; font-weight: 650; }
.crossword-cell-letter { line-height: 1; }
.crossword-cell.circle::after { content: ''; position: absolute; inset: 5px; border: 1.5px solid var(--circle-line); border-radius: 50%; pointer-events: none; }




.crossword-cell.peer-focus::before {
  content: ''; position: absolute; inset: 1px; border: 1.5px solid var(--peer-focus-color, var(--blue));
  border-radius: 2px; pointer-events: none; z-index: 1;
}








.crossword-cell.draft .crossword-cell-letter { color: var(--draft-ink); font-weight: 650; font-style: italic; }
.crossword-cell.draft {
  background-image: linear-gradient(45deg, transparent 0 3px, var(--draft-ink) 3px 4.5px, transparent 4.5px);
}












.cell-candidates {
  position: absolute; inset: 0; display: none; pointer-events: none;
  grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; padding: 9px 2px 1px;
}
.crossword-cell.multi-draft .cell-candidates { display: grid; }
.crossword-cell.multi-draft .crossword-cell-letter { display: none; }
.cell-candidates .cand-slot {
  color: var(--draft-ink); font-style: italic; font-weight: 650;
  font-size: 11px; line-height: 1;
}
.cell-candidates .cand-slot:nth-child(1) { justify-self: start; align-self: start; }
.cell-candidates .cand-slot:nth-child(2) { justify-self: end; align-self: start; }
.cell-candidates .cand-slot:nth-child(3) { justify-self: start; align-self: end; }
.cell-candidates .cand-slot:nth-child(4) { justify-self: end; align-self: end; }
.crossword-cell.solution-cell .cell-candidates .cand-slot:nth-child(4) { margin-right: 11px; }






.swedish-grid .cell-candidates { z-index: 3; }
.swedish-grid .cell-candidates .cand-slot:nth-child(1) { margin-top: -8px; }











.solution-mark {
  position: absolute; right: 1px; bottom: 1px; z-index: 2;
  min-width: 9px; padding: 0 1px; border-radius: 2px;
  background: var(--solution-mark-bg); color: var(--solution-mark-ink);
  font-size: 8px; line-height: 10px; font-weight: 700; text-align: center;
  pointer-events: none;
}
.crossword-cell.solution-cell { box-shadow: inset 0 0 0 1.5px var(--solution-mark-bg); }

.solution-word {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: 10px 0 0; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.solution-word.hidden { display: none; }
.solution-word-label { color: var(--muted); font-size: 13px; font-weight: 650; }
.solution-word-boxes { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.solution-word-box {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 34px; border: 1.5px solid var(--solution-mark-bg); border-radius: 5px;
  background: var(--cell-bg); color: var(--cell-ink); font-size: 17px; font-weight: 700; text-transform: uppercase;
}


.solution-word-number {
  position: absolute; right: 2px; bottom: 1px;
  color: var(--solution-mark-bg); font-size: 8px; line-height: 1; font-weight: 700;
}
.solution-word-box.draft .solution-word-letter { color: var(--draft-ink); font-style: italic; }



.solution-word.complete .solution-word-box { border-color: var(--good); background: var(--good-bg); color: var(--good-ink); }
.solution-word.complete .solution-word-number { color: var(--good-ink); }



.cell-owner-dot { display: none; position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.3); pointer-events: none; z-index: 2; }
#game.show-owners .cell-owner-dot.visible { display: block; }


@keyframes ping-pulse {
  0% { box-shadow: inset 0 0 0 3px var(--ping), 0 0 0 0 rgba(211, 47, 155, .55); }
  70% { box-shadow: inset 0 0 0 3px var(--ping), 0 0 0 9px rgba(211, 47, 155, 0); }
  100% { box-shadow: inset 0 0 0 3px var(--ping), 0 0 0 0 rgba(211, 47, 155, 0); }
}
.crossword-cell.pinged { z-index: 4; animation: ping-pulse 1.25s ease-out 8; box-shadow: inset 0 0 0 3px var(--ping); }






.viewport-shell { position: relative; }







.game-hints {
  position: absolute; right: 10px; bottom: 10px; z-index: 30;
  width: min(330px, calc(100% - 20px)); padding: 12px 14px;
  border: 1px solid var(--card-line); border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow);
  color: var(--ink); font-size: 13.5px; line-height: 1.4;
}
.game-hints-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.game-hints-list { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 10px; }
.game-hints-list li { display: flex; align-items: center; gap: 10px; }



.game-hints-list li[hidden] { display: none; }


.hint-demo-icoon { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.game-hints .button { min-height: 38px; padding: 7px 14px; }






.game-hints-actions { display: flex; gap: 8px; }
.game-hints-actions .button { flex: 1 1 0; }
.game-hints-never { width: 100%; justify-content: center; margin-top: 6px; padding: 6px; font-size: 13px; }
.hint-demo { position: relative; flex: none; width: 46px; height: 46px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.hint-mini-grid {
  position: absolute; inset: 0; opacity: .7;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 11px 11px;
}
.hint-finger { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); opacity: .85; box-shadow: 0 0 0 3px rgba(42, 114, 199, .22); }

.hint-demo-zoom .hint-finger-a { left: 9px; top: 9px; animation: hint-pinch-a 2.2s ease-in-out infinite; }
.hint-demo-zoom .hint-finger-b { right: 9px; bottom: 9px; animation: hint-pinch-b 2.2s ease-in-out infinite; }
.hint-demo-zoom .hint-mini-grid { animation: hint-zoom-grid 2.2s ease-in-out infinite; }
@keyframes hint-pinch-a { 0%, 100% { transform: translate(6px, 6px); } 50% { transform: translate(-3px, -3px); } }
@keyframes hint-pinch-b { 0%, 100% { transform: translate(-6px, -6px); } 50% { transform: translate(3px, 3px); } }
@keyframes hint-zoom-grid { 0%, 100% { transform: scale(.85); } 50% { transform: scale(1.15); } }

.hint-demo-pan .hint-finger-a { left: 8px; top: 17px; animation: hint-pan-finger 2.2s ease-in-out infinite; }
.hint-demo-pan .hint-mini-grid { animation: hint-pan-grid 2.2s ease-in-out infinite; }
@keyframes hint-pan-finger { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(18px); } }
@keyframes hint-pan-grid { 0%, 100% { background-position: 0 0; } 50% { background-position: 18px 0; } }

.hint-demo-lens .hint-finger-a { left: 17px; top: 24px; animation: hint-hold 2.6s ease-in-out infinite; }
.hint-lens { position: absolute; left: 11px; top: 2px; width: 22px; height: 22px; border: 2px solid var(--orange); border-radius: 50%; background: var(--card); opacity: 0; animation: hint-lens 2.6s ease-in-out infinite; }
@keyframes hint-hold { 0%, 12% { opacity: 0; } 22%, 90% { opacity: .85; } 100% { opacity: 0; } }
@keyframes hint-lens { 0%, 40% { opacity: 0; transform: scale(.5); } 55%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .game-hints * { animation: none !important; }
  .hint-lens { opacity: 1; transform: none; }
  .hint-finger { opacity: .85; }
}

#game.typing .game-hints { display: none; }
.ping-edge {
  display: none; position: absolute; inset: 0; z-index: 15; border-radius: 12px;
  box-shadow: inset 0 0 0 5px var(--ping-edge-color, var(--ping)); pointer-events: none;
}
.ping-edge.visible { display: block; animation: ping-edge-flash 1.25s ease-in-out 8 forwards; }
@keyframes ping-edge-flash {
  0%, 100% { opacity: 0; }
  50% { opacity: .85; }
}


@media (prefers-reduced-motion: reduce) {
  .ping-edge.visible { animation: none; opacity: .6; }
}
.ping-jump {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 16;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border: 2px solid var(--ping-edge-color, var(--ping)); border-radius: 999px;
  background: var(--paper); color: var(--navy-ink); font-size: 13px; font-weight: 650;
  box-shadow: 0 6px 18px rgba(9, 25, 42, .28); white-space: nowrap;
}





.crossword-cell.block .cell-clue, .crossword-cell.block .cell-clue-arrow { display: none; }
#game.swedish .clues-panel { display: none; }
#game.swedish .game-layout { grid-template-columns: minmax(0, 1fr); }
.swedish-grid .crossword-cell-number { display: none; }





.swedish-grid .crossword-cell.block.clue-block { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 1px; padding: 1px; background: var(--clue-block-bg); cursor: default; }
.swedish-grid .clue-block .cell-clue {
  display: flex; flex: 1 1 0; min-height: 0; min-width: 0; align-items: center; justify-content: center;
  margin: 0; padding: 0.5px 1px; border: 0; border-radius: 1px; overflow: hidden;
  background: var(--clue-tile-bg); color: var(--clue-tile-ink); font-size: 5.5px; line-height: 1.05; font-weight: 680;
  text-transform: uppercase; text-align: center; overflow-wrap: anywhere; hyphens: auto; cursor: pointer;
  -webkit-text-size-adjust: none; text-size-adjust: none;
}
.swedish-grid .clue-block .cell-clue.active { background: var(--clue-tile-active-bg); color: var(--clue-tile-active-ink); }





.swedish-grid .clue-block .cell-clue.cell-clue-s { font-size: 4.75px; }
.swedish-grid .clue-block .cell-clue.cell-clue-xs { font-size: 4.1px; }


.swedish-grid .clue-block .cell-clue-text { min-width: 0; max-height: 100%; overflow: hidden; }
.swedish-grid .clue-block .cell-clue-arrow {
  display: block; position: absolute; z-index: 2; font-size: 17.5px; line-height: 1; font-weight: 800;
  color: var(--cell-ink); pointer-events: none;
}



.swedish-grid .clue-block .cell-clue-arrow.edge-right { left: 100%; transform: translate(-4px, -50%); }
.swedish-grid .clue-block .cell-clue-arrow.edge-bottom { top: 100%; transform: translate(-50%, -4px); }

.preview-grid .clue-block .cell-clue { cursor: default; }



.magnifier {
  display: none; position: fixed; z-index: 95; overflow: hidden;
  border: 2px solid var(--navy); border-radius: 16px; background: var(--paper);
  box-shadow: 0 14px 44px rgba(9, 25, 42, .38); pointer-events: none;
}
.magnifier.visible { display: block; }
.magnifier-inner { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; }




.magnifier .lens-word { background: var(--active-bg); box-shadow: inset 0 0 0 1px var(--active-line); }


.magnifier .clue-block .cell-clue.lens-clue { background: var(--clue-tile-active-bg); color: var(--clue-tile-active-ink); box-shadow: 0 0 0 1px var(--active-line); }






.magnifier-center {
  position: absolute; left: 50%; top: var(--magnifier-focus, 50%); z-index: 3;
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--navy); box-shadow: 0 0 0 2px rgba(255, 255, 255, .92);
  pointer-events: none;
}
.magnifier-center.on-target { background: var(--active-line); }




.magnifier-clue {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 5px 8px; border-top: 1px solid var(--navy);
  background: var(--navy); color: var(--on-accent);
  font-size: 11.5px; line-height: 1.25; font-weight: 650; text-align: center;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.magnifier-clue.lens-hint { font-weight: 550; opacity: .8; }




#game.typing .puzzle-panel { position: fixed; top: 0; left: 0; right: 0; z-index: 60; margin: 0; padding: 6px; border-radius: 0; }
#game.typing .game-controls, #game.typing #message { display: none; }








#game.typing .crossword-toolbar { position: static; padding: 4px 0 8px; }
#game.typing .crossword-toolbar:not(.tools-collapsed) [data-fs-zoom="in"],
#game.typing .crossword-toolbar:not(.tools-collapsed) [data-fs-zoom="uit"],
#game.typing [data-fs-zoom="label"] { display: none; }
#game.typing .crossword-viewport { height: var(--typing-viewport-height, 55dvh); min-height: 200px; }
#game.typing .active-clue { margin-top: 6px; padding-right: 108px; }


.typing-chat { display: none; }
#game.typing .typing-chat {
  display: inline-flex; align-items: center; gap: 6px;
  position: absolute; right: 8px; bottom: 8px; z-index: 65;
  min-height: 40px; padding: 6px 12px; border: 0; border-radius: 10px;
  background: var(--blue-fill); color: var(--on-accent); font-size: 13.5px; font-weight: 750; cursor: pointer;
}
.chat-unread { min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: var(--orange); color: var(--navy-2); font-size: 11px; font-weight: 800; }


.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-close { display: none; }
#game.typing.chat-overlay .chat-panel {
  position: fixed; left: 8px; right: 8px;
  bottom: calc(var(--keyboard-height, 0px) + 8px);
  z-index: 90; display: flex; flex-direction: column; max-height: 46dvh;
  box-shadow: 0 18px 60px rgba(9, 25, 42, .4);
}
#game.typing.chat-overlay .chat-messages { flex: 1; max-height: none; }
#game.typing.chat-overlay .chat-close { display: grid; width: 36px; height: 36px; font-size: 22px; }









html.fullscreen, html.fullscreen body { overflow: hidden; }





#game.fullscreen .game-head,
#game.fullscreen .side-column,
#game.fullscreen .crossword-toolbar,
#game.fullscreen #game-controls,
#game.fullscreen #message,
#game.fullscreen .typing-chat { display: none; }




#game.fullscreen:not(.typing) .game-panel:not(.hidden) .puzzle-panel {
  position: fixed; inset: 0; z-index: 60; margin: 0;
  padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 6px;
  border: 0; border-radius: 0; overflow: hidden;



  background: var(--paper);
}



#game.fullscreen:not(.typing) .viewport-shell { flex: 1 1 auto; min-height: 0; }
#game.fullscreen:not(.typing) .crossword-viewport { height: 100%; min-height: 0; max-height: none; }




#game.fullscreen:not(.typing) .game-panel[data-game="sudoku"] .puzzle-panel { justify-content: center; }
#game.fullscreen:not(.typing) .sudoku-viewport { height: 100%; flex: 1 1 auto; border: 0; border-radius: 0; background: transparent; }
#game.fullscreen:not(.typing) .woordstrijd-viewport { height: 100%; flex: 1 1 auto; border: 0; border-radius: 0; background: transparent; }



#game.fullscreen:not(.typing) .puzzle-panel > #sudoku-pad { flex: 0 0 auto; margin-top: 0; }

















#game.fullscreen:not(.typing) .fs-kop {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 8px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;


  flex: 0 0 auto;
  min-height: 0; max-height: 36px; margin: 0; padding: 0 56px 0 0;
  font-size: 13px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
#game.fullscreen:not(.typing) .fs-kop::-webkit-scrollbar { display: none; }
#game.fullscreen:not(.typing) .fs-kop > * { flex: 0 0 auto; margin: 0; }






#game.fullscreen:not(.typing) .fs-dok {


  flex: 0 0 auto;
  margin: 0; padding: 0; min-height: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  margin-top: auto;
}
#game.fullscreen:not(.typing) .fs-dok:not(.hidden):not([hidden]) ~ .fs-dok { margin-top: 0; }




.fs-layer { position: fixed; inset: 0; z-index: 66; pointer-events: none; }
.fs-layer > * { position: absolute; pointer-events: auto; }



.fs-blok { position: absolute; display: flex; flex-direction: column; gap: 8px; }





.fs-blok[hidden] { display: none; }
.fs-blok-chat.fs-vanuit-dok > .fs-bubble { display: none; }



.fs-blok-scherm { top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); align-items: flex-end; width: 52px; }








.fs-blok-scherm .fs-scherm-list {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: max-content; max-width: min(320px, calc(100vw - 24px));
  align-items: flex-end;
}


.fs-blok-scherm:not(.fs-omlaag) .fs-scherm-list { top: auto; bottom: calc(100% + 8px); }
.fs-blok-tools { left: max(10px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); align-items: flex-start; }
.fs-blok-chat { right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); align-items: flex-end; }





@media (min-aspect-ratio: 1/1) {
  .fs-blok-scherm { right: max(calc(24px + 10%), env(safe-area-inset-right)); }
  .fs-blok-tools { left: max(calc(24px + 10%), env(safe-area-inset-left)); }
  .fs-blok-chat { right: max(calc(24px + 10%), env(safe-area-inset-right)); }
}


body.solo .fs-blok-chat { display: none; }







.fs-bubble {
  position: relative; display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--game-fill) 45%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--on-accent); cursor: pointer;
  box-shadow: 0 10px 26px rgba(9, 25, 42, .32);
}
.fs-bubble:hover { background: color-mix(in srgb, var(--game-fill-hover) 75%, transparent); }
.fs-bubble .ps-icon { width: 24px; height: 24px; }


.fs-bubble-rustig { background: color-mix(in srgb, var(--paper) 45%, transparent); border: 1px solid var(--line); color: var(--navy-ink); }
.fs-bubble-rustig:hover { background: color-mix(in srgb, var(--chip-hover) 75%, transparent); }
#fs-chat-toggle .chat-unread { position: absolute; top: -2px; right: -2px; }


[data-fs-chat] .chat-unread { display: inline-grid; vertical-align: middle; margin-left: 6px; }








.fs-blok.fs-omlaag { flex-direction: column-reverse; }
.fs-tools-list { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

@keyframes fs-uitklap-omhoog { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fs-uitklap-omlaag { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes fs-inklap-omhoog { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px); } }
@keyframes fs-inklap-omlaag { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: no-preference) {
  .fs-tools-list { animation: fs-uitklap-omhoog .13s ease-out; }
  .fs-blok.fs-omlaag .fs-tools-list { animation-name: fs-uitklap-omlaag; }
  .fs-tools-list.fs-inklap { animation-name: fs-inklap-omhoog; animation-fill-mode: forwards; }
  .fs-blok.fs-omlaag .fs-tools-list.fs-inklap { animation-name: fs-inklap-omlaag; }
}
.fs-tools-list button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 46px; min-height: 44px; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 45%, transparent); color: var(--navy-ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer;
  box-shadow: 0 8px 22px rgba(9, 25, 42, .22);
}
.fs-tools-list button:hover { background: color-mix(in srgb, var(--chip-hover) 75%, transparent); }


.fs-tools-list [data-fs-zoom="label"] {
  min-height: 44px; box-shadow: 0 8px 22px rgba(9, 25, 42, .22);
  background: color-mix(in srgb, var(--paper) 45%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}



.fs-zoom-rij { display: flex; align-items: center; gap: 8px; }
.fs-tools-list button .ps-icon { width: 20px; height: 20px; }


.fs-tools-list button.toggled-on { background: color-mix(in srgb, var(--game-fill) 60%, transparent); color: var(--on-accent); border-color: transparent; }





.fs-tool-rij { position: relative; display: flex; }


.fs-tool-rij[hidden] { display: none; }
.fs-tools-list button.fs-pin {
  position: absolute; top: -5px; right: -5px; z-index: 1;
  min-width: 0; min-height: 0; width: 16px; height: 16px; padding: 0;
  border-radius: 50%; background: var(--paper); color: var(--navy-ink);
  box-shadow: 0 2px 6px rgba(9, 25, 42, .25);
}

.fs-tools-list button.fs-pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.fs-tools-list button.fs-pin .ps-icon { width: 11px; height: 11px; opacity: .75; }
.fs-tools-list button.fs-pin.toggled-on { background: var(--game-fill); color: var(--on-accent); border-color: transparent; }
.fs-tools-list button.fs-pin.toggled-on .ps-icon { opacity: 1; }


.fs-pin-ring { position: absolute; left: 26px; bottom: 26px; width: 0; height: 0; }
.fs-blok.fs-omlaag .fs-pin-ring { bottom: auto; top: 26px; }
.fs-blok-tools.fs-tools-open .fs-pin-ring { display: none; }



.fs-blok-tools { z-index: 1; }
.fs-mini {
  position: absolute; display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0; transform: translate(-50%, -50%);
  border: 1px solid var(--line); border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 45%, transparent); color: var(--navy-ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(9, 25, 42, .24); cursor: pointer;


  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.fs-mini[hidden] { display: none; }

.fs-mini.fs-mini-sleept {
  z-index: 1; transform: translate(-50%, -50%) scale(1.2); cursor: grabbing;
  box-shadow: 0 10px 24px rgba(9, 25, 42, .34);
}

.fs-mini.fs-mini-landt { transition: left .15s ease-out, top .15s ease-out; }
.fs-mini:hover { background: color-mix(in srgb, var(--chip-hover) 75%, transparent); }
.fs-mini .ps-icon { width: 15px; height: 15px; }
.fs-mini.toggled-on { background: color-mix(in srgb, var(--game-fill) 60%, transparent); color: var(--on-accent); border-color: transparent; }


.fs-mini[aria-disabled="true"] { opacity: .45; cursor: default; }
@keyframes fs-mini-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: no-preference) {
  .fs-mini { animation: fs-mini-in .13s ease-out; }
}



.fs-chat-box {
  width: min(340px, calc(100vw - 24px)); max-height: min(60dvh, 520px);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--card-line); border-radius: 16px; background: var(--paper);
  box-shadow: 0 18px 60px rgba(9, 25, 42, .4);
}
.fs-chat-kop { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--card-line); }
.fs-chat-titel { flex: 1; font-weight: 800; }


.fs-grip { width: 14px; height: 18px; background-image: radial-gradient(circle, var(--muted) 1.2px, transparent 1.3px); background-size: 6px 6px; opacity: .75; }
.fs-chat-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px; }



.fs-chat-body .chat-panel { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.fs-chat-body .chat-head { display: none; }
.fs-chat-body .chat-messages { max-height: 32dvh; }
.fs-chat-body .players-details { margin: 0; }







.fs-zwevend {
  position: absolute; margin: 0; touch-action: none;
  box-shadow: 0 14px 40px rgba(9, 25, 42, .3);



  background: color-mix(in srgb, var(--paper) 45%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
#active-clue.fs-zwevend { background: color-mix(in srgb, var(--clue-bar) 45%, transparent); }


.fs-zwevend::before {
  content: ""; flex: 0 0 auto; align-self: center;
  width: 14px; height: 18px;
  background-image: radial-gradient(circle, var(--muted) 1.2px, transparent 1.3px);
  background-size: 6px 6px; opacity: .75;
}


.fs-bubble, .fs-chat-kop { touch-action: none; }
.fs-sleept { cursor: grabbing; user-select: none; }




#active-clue.fs-zwevend, #sudoku-pad.fs-zwevend {
  left: 50%; transform: translateX(-50%);
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 62px);
}




#active-clue.fs-zwevend {
  width: min(560px, calc(100vw - 148px)); min-height: 0; margin: 0;
  bottom: max(10px, env(safe-area-inset-bottom));
  padding: 10px 14px; border-radius: 999px; gap: 4px 10px;
  justify-content: flex-start; align-items: center;
}


#active-clue.fs-zwevend .clue-owner { margin-left: auto; }





#active-clue.fs-zwevend #active-clue-text { flex: 1 1 0; min-width: 0; }
#sudoku-pad.fs-zwevend {
  width: min(520px, calc(100vw - 24px)); margin: 0; padding: 8px 10px;
  border: 1px solid var(--card-line); border-radius: 16px; background: var(--paper);
}









#word-bank.fs-zwevend {
  margin: auto 0; padding: 8px 10px;
  left: max(10px, env(safe-area-inset-left));
  top: 0; bottom: 0; height: fit-content;
  width: min(340px, calc(100vw - 24px)); max-height: min(40dvh, 320px);
  display: flex; align-items: center; gap: 6px; overflow: hidden;
}








#word-bank.fs-zwevend:not(.fs-ingeklapt) { padding-left: 36px; }
#word-bank.fs-zwevend:not(.fs-ingeklapt)::before {
  position: absolute; left: 14px; top: calc(50% - 26px);
}
#word-bank.fs-zwevend:not(.fs-ingeklapt) .fs-bank-inklap {
  position: absolute; left: 6px; top: calc(50% - 4px);
}



#word-bank.fs-zwevend h2, #word-bank.fs-zwevend .word-bank-intro { display: none; }
#word-bank.fs-zwevend .word-bank-list {
  flex: 1 1 auto; min-width: 0; min-height: 0; overflow: auto;
  grid-template-columns: 1fr; gap: 8px;
}



#word-bank.fs-zwevend .word-bank-words {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 2px 6px;
}
#word-bank.fs-zwevend .word-bank-group h3 { margin: 0 0 2px; }



#word-bank.fs-zwevend .word-bank-words li { padding: 2px 5px; font-size: 13px; background: var(--blue-soft); }





.fs-bank-inklap {
  flex: 0 0 auto; align-self: center;
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); color: var(--navy-ink); cursor: pointer;
}
#word-bank.fs-zwevend .fs-bank-inklap { order: -1; }


#solution-word.fs-zwevend .fs-bank-inklap { order: 1; }
.fs-bank-inklap:hover { background: var(--chip-hover); }
.fs-bank-inklap .ps-icon { width: 18px; height: 18px; }
#word-bank.fs-ingeklapt, #solution-word.fs-ingeklapt, #woordstrijd-zetten.fs-ingeklapt {
  display: grid; place-items: center; overflow: hidden;
  width: 52px; height: 52px; min-height: 0; max-height: none; padding: 0; gap: 0;
  border: 0; border-radius: 50%;


  background: color-mix(in srgb, var(--game-fill) 45%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(9, 25, 42, .32);
}
#word-bank.fs-ingeklapt > *:not(.fs-bank-inklap), #word-bank.fs-ingeklapt::before,
#solution-word.fs-ingeklapt > *:not(.fs-bank-inklap), #solution-word.fs-ingeklapt::before,
#woordstrijd-zetten.fs-ingeklapt > *:not(.fs-bank-inklap):not(summary), #woordstrijd-zetten.fs-ingeklapt::before { display: none; }
#word-bank.fs-ingeklapt .fs-bank-inklap, #solution-word.fs-ingeklapt .fs-bank-inklap, #woordstrijd-zetten.fs-ingeklapt .fs-bank-inklap {
  position: static; width: 100%; height: 100%;
  border: 0; background: transparent; color: var(--on-accent);
}
#word-bank.fs-ingeklapt .fs-bank-inklap .ps-icon,
#solution-word.fs-ingeklapt .fs-bank-inklap .ps-icon,
#woordstrijd-zetten.fs-ingeklapt .fs-bank-inklap .ps-icon { width: 24px; height: 24px; }






details.fs-zwevend.fs-ingeklapt > summary {






  position: absolute; inset: 0; display: flex; align-items: stretch; justify-content: center;


  gap: 0; min-height: 0; margin: 0; padding: 0; border: 0; font-size: 0; list-style: none;
  pointer-events: none;
}
details.fs-zwevend.fs-ingeklapt > summary > .fs-bank-inklap { align-self: stretch; pointer-events: auto; }
details.fs-zwevend.fs-ingeklapt > summary::after,
details.fs-zwevend.fs-ingeklapt > summary::-webkit-details-marker { display: none; }




#word-bank.fs-zwevend, #solution-word.fs-zwevend, #woordstrijd-zetten.fs-zwevend { transform-origin: left center; }
@keyframes fs-kaart-uit { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes fs-kaart-in { from { opacity: 0; transform: scale(1.3); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .fs-zwevend.fs-klap-uit { animation: fs-kaart-uit .13s ease-out; }
  .fs-zwevend.fs-klap-in { animation: fs-kaart-in .13s ease-out; }
}






#solution-word.fs-zwevend {
  margin: 0;
  left: max(10px, env(safe-area-inset-left));
  top: max(10px, env(safe-area-inset-top));
}

#solution-word.fs-zwevend:not(.fs-ingeklapt) {
  padding: 4px 6px 4px 5px;
  width: max-content; max-width: calc(100vw - 20px - 74px);
  border: 0; border-radius: 12px;
  flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 4px;
}



#solution-word.fs-zwevend .solution-word-label { display: none; }
#solution-word.fs-zwevend .solution-word-boxes { flex: 1 1 auto; min-width: 0; justify-content: flex-start; gap: 3px; }





#solution-word.fs-zwevend .solution-word-box { width: 24px; height: 28px; border-radius: 4px; font-size: 15px; }
#solution-word.fs-zwevend .solution-word-number { right: 1px; font-size: 7px; }
#sudoku-hintkaart.fs-zwevend {
  margin: 0; left: max(10px, env(safe-area-inset-left));
  top: calc(max(10px, env(safe-area-inset-top)) + 62px);
  width: min(320px, calc(100vw - 24px));
  display: flex; flex-direction: column; gap: 0 10px;
}










#woordstrijd-zetten.fs-zwevend {
  margin: 0; left: max(10px, env(safe-area-inset-left));


  top: calc(max(10px, env(safe-area-inset-top)) + 84px);
}
#woordstrijd-zetten.fs-zwevend:not(.fs-ingeklapt) { width: min(300px, calc(100vw - 24px)); border-radius: 14px; }
#woordstrijd-zetten.fs-zwevend:not(.fs-ingeklapt)::before { display: block; width: 18px; height: 12px; margin: 6px auto 0; }
#woordstrijd-zetten.fs-zwevend:not(.fs-ingeklapt) > summary { padding-left: 42px; }
#woordstrijd-zetten.fs-zwevend:not(.fs-ingeklapt) .fs-bank-inklap { position: absolute; left: 6px; top: 23px; }
#woordstrijd-zetten.fs-zwevend .woordstrijd-zettenlijst { max-height: min(30dvh, 220px); }










#game.fullscreen:not(.typing) #woordstrijd-scorebalk.fs-kop { justify-content: space-between; gap: 8px; }
#game.fullscreen:not(.typing) .fs-kop .woordstrijd-scores { flex-wrap: nowrap; gap: 6px; }
#game.fullscreen:not(.typing) .fs-kop .woordstrijd-score { padding: 2px 8px; gap: 4px; }
#game.fullscreen:not(.typing) .fs-kop .woordstrijd-score-stenen { font-size: 8px; letter-spacing: .04em; }
#game.fullscreen:not(.typing) .fs-kop .woordstrijd-meters { flex-wrap: nowrap; gap: 8px; }
#game.fullscreen:not(.typing) .fs-kop .woordstrijd-zakknop { min-height: 28px; }
#game.fullscreen:not(.typing) .fs-kop .woordstrijd-zak-lang { display: none; }
#game.fullscreen:not(.typing) .fs-kop .woordstrijd-zak-kort { display: inline; }


#game.fullscreen:not(.typing) #woordstrijd-klokregel.fs-kop { justify-content: flex-start; min-height: 24px; }





#game.fullscreen:not(.typing) #woordstrijd-melding.fs-dok {
  display: block; min-height: 0; padding: 2px 4px;
  font-size: 13px; line-height: 1.3; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#game.fullscreen:not(.typing) #woordstrijd-melding.fs-dok.error { white-space: normal; }






#game.fullscreen:not(.typing) .woordstrijd-acties.fs-dok .button:not(.woordstrijd-meer-knop) { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }


#game.fullscreen:not(.typing) .woordstrijd-letters { margin: 0; padding: 4px 0; gap: 3px; border: 0; border-radius: 0; background: transparent; justify-content: center; }



#fs-blok-scherm.fs-geplaatst, #fs-blok-tools.fs-geplaatst, #fs-blok-chat.fs-geplaatst,
#active-clue.fs-geplaatst, #word-bank.fs-geplaatst, #sudoku-pad.fs-geplaatst, #sudoku-hintkaart.fs-geplaatst,
#solution-word.fs-geplaatst, #woordstrijd-zetten.fs-geplaatst {
  right: auto; bottom: auto; transform: none;
}




#fs-blok-scherm.fs-geplaatst { top: auto; }



@media (min-width: 900px) {
  #sudoku-pad.fs-zwevend {
    left: auto; right: max(10px, env(safe-area-inset-right));
    bottom: auto; top: 50%; transform: translateY(-50%);
    width: 210px; display: grid; grid-template-columns: repeat(3, 1fr);
  }
  #sudoku-pad.fs-zwevend::before { grid-column: 1 / -1; justify-self: center; width: 18px; height: 12px; }
  #sudoku-pad.fs-zwevend .sudoku-erase,
  #sudoku-pad.fs-zwevend .sudoku-undo { grid-column: 1 / -1; }





  #sudoku-pad.fs-geplaatst { right: auto; bottom: auto; top: auto; transform: none; }
}






#game.fullscreen.typing .fs-layer { bottom: var(--keyboard-height, 0px); }




#game.fullscreen.fs-chat-open .fs-blok-chat {
  bottom: calc(var(--keyboard-height, 0px) + max(10px, env(safe-area-inset-bottom)));
}



#game.fullscreen.fs-chat-open .fs-chat-body .chat-messages {
  max-height: min(32dvh, calc(100dvh - var(--keyboard-height, 0px) - 190px));
}








#game.typing #fullscreen-open { display: none; }




.crossword-hidden-input { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: .01; font-size: 16px; pointer-events: none; }




.active-clue { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; min-height: 50px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--clue-bar); font-size: 14px; line-height: 1.45; }



.clue-owner { display: inline-flex; align-items: center; flex-shrink: 0; gap: 6px; font-size: 13px; color: var(--muted); }
.clue-owner-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px rgba(0,0,0,.3); }


.active-clue.chat-flash .clue-owner { display: none; }



.sudoku-clue { justify-content: center; min-height: 0; }


.active-clue.chat-flash { background: var(--warm-bg); box-shadow: inset 0 0 0 2px var(--orange); cursor: pointer; }




.game-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.game-controls .button { min-height: 46px; padding: 11px 18px; line-height: 1.2; }


.side-column { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; align-content: start; }
.clues-panel { display: grid; grid-template-columns: 1fr; gap: 18px; max-height: min(58vh, 700px); overflow: auto; }


.chat-panel h2 { margin: 0 0 10px; font-size: 18px; }


.chat-messages { display: grid; gap: 6px; align-content: start; max-height: 260px; min-height: 90px; overflow: auto; overscroll-behavior: contain; padding: 4px 0; }
.chat-empty { margin: 4px 0; font-size: 13px; }
.chat-message { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.chat-message .player-color { display: inline-block; vertical-align: baseline; margin-right: 5px; }
.chat-message strong { font-weight: 750; }
.chat-message.own strong { color: var(--blue); }


.chat-name {
  appearance: none; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; font-weight: 750; cursor: pointer;
}
.chat-name:hover { text-decoration: underline; }
.chat-message.own .chat-name { color: var(--blue); }




.chat-mention {
  appearance: none; padding: 0 3px; border: 0; border-radius: 5px;
  background: var(--blue-soft); color: var(--blue);
  font: inherit; font-weight: 720; cursor: pointer;
}
.chat-mention:hover { text-decoration: underline; }
.chat-mention.chat-mention-me { background: var(--blue-fill); color: var(--on-accent); }
.chat-message.mentioned {
  margin: 3px -6px; padding: 4px 6px; border-left: 3px solid var(--blue);
  border-radius: 6px; background: var(--blue-soft);
}


.chat-mention-list {
  margin: 8px 0 0; padding: 4px; max-height: 168px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  list-style: none; box-shadow: 0 10px 30px rgba(9, 25, 42, .16);
}
.chat-mention-option {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 8px; border-radius: 7px; font-size: 14px; cursor: pointer;
}
.chat-mention-option.active { background: var(--blue-soft); font-weight: 700; }


.chat-mention-mute.muted-on { color: var(--muted); opacity: .75; }

.chat-moment { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form input { flex: 1; width: 0; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid var(--input-line); border-radius: 10px; background: var(--input-bg); color: var(--ink); font-size: 15px; outline: none; }
.chat-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,114,199,.14); }
.chat-form .button { min-height: 44px; padding: 8px 14px; }
.chat-form .chat-emoji { flex: 0 0 auto; min-width: 44px; min-height: 44px; }




.emoji-panel {
  margin: 8px 0 0; padding: 8px; max-height: 210px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  box-shadow: 0 10px 30px rgba(9, 25, 42, .16);
}
.emoji-group + .emoji-group { margin-top: 8px; }
.emoji-group-title { margin: 0 0 4px; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 2px; }
.emoji-choice {
  appearance: none; padding: 0; min-height: 34px; border: 0; border-radius: 7px;
  background: none; font-size: 21px; line-height: 1; cursor: pointer;
}
.emoji-choice:hover, .emoji-choice:focus-visible { background: var(--blue-soft); }

.chat-text-emoji { font-size: 26px; line-height: 1.3; }
.clue-column h2 { position: sticky; top: -14px; z-index: 2; margin: 0 -4px 8px; padding: 12px 4px 7px; background: var(--paper); font-size: 18px; }
.clue-list { margin: 0; padding-left: 32px; }
.clue-list li { margin-bottom: 3px; padding: 7px 7px 7px 2px; border-radius: 7px; color: var(--clue-item-ink); font-size: 14px; line-height: 1.35; cursor: pointer; }
.clue-list li.active { color: var(--clue-item-active-ink); background: var(--blue-soft); font-weight: 720; }




.word-bank-panel { padding: 14px; max-height: min(58vh, 700px); overflow: auto; }
.word-bank-panel h2 { margin: 0 0 6px; font-size: 18px; }
.word-bank-intro { margin: 0 0 12px; font-size: 13px; line-height: 1.4; }
.word-bank-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 18px; }
.word-bank-group h3 { margin: 0 0 6px; font-size: 13px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.word-bank-words { margin: 0; padding: 0; list-style: none; }
.word-bank-words li { padding: 4px 6px; border-radius: 6px; color: var(--clue-item-ink); font-size: 14px; line-height: 1.4; letter-spacing: .02em; }
.word-bank-words li:nth-child(odd) { background: var(--blue-soft); }

.settings-modal { width: min(560px, 100%); }
.settings-body { padding: 18px 20px 22px; display: grid; gap: 14px; overflow: auto; }
.setting-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.setting-row input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--blue); }
.setting-row small { line-height: 1.4; }
.settings-note { margin: 4px 0 0; font-size: 12.5px; }
.settings-section { border-top: 1px solid var(--line); padding-top: 14px; }
.settings-section :is(h2, h3, .ui-h3) { margin: 0 0 6px; font-size: 15px; }
.settings-section-note { margin: 0 0 10px; font-size: 12.5px; line-height: 1.4; }





.sneltoetsen-modal { width: min(520px, 100%); }
.sneltoetsen-body { padding: 18px 20px 22px; overflow: auto; }
.sneltoets-kop { margin: 16px 0 8px; font-size: 15px; }
.sneltoets-kop:first-child { margin-top: 0; }
.sneltoets-lijst { display: grid; grid-template-columns: minmax(96px, max-content) 1fr; gap: 8px 14px; margin: 0; align-items: baseline; }
.sneltoets-lijst dt { margin: 0; }
.sneltoets-lijst dd { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.sneltoets-lijst kbd {
  display: inline-block; padding: 3px 8px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; background: var(--surface); color: var(--ink);
  font: 600 12.5px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap;
}
@media (max-width: 460px) {
  .sneltoets-lijst { grid-template-columns: 1fr; gap: 2px; }
  .sneltoets-lijst dd { margin-bottom: 8px; }
}



.sneltoets-knop {
  display: inline-flex; align-items: center; padding: 0; border: 0;
  background: none; color: inherit; font: inherit; cursor: pointer;
}
.sneltoets-knop:hover kbd { background: var(--chip-hover); border-color: var(--blue); }
.sneltoets-knop:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

.sneltoets-knop.opnemen kbd { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }


.sneltoets-knop.botst kbd { border-color: var(--bad); color: var(--bad-ink); background: var(--bad-bg); }
.sneltoets-botst { display: block; margin-top: 2px; color: var(--bad-ink); font-size: 12.5px; line-height: 1.35; }
.sneltoets-botst.hidden { display: none; }
.sneltoets-terug {
  margin-left: 6px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 11px; cursor: pointer;
}
.sneltoets-terug:hover { background: var(--chip-hover); color: var(--ink); }
.sneltoetsen-voet { padding: 0 20px 18px; display: grid; gap: 8px; justify-items: start; }
.sneltoetsen-voet p { margin: 0; font-size: 12.5px; line-height: 1.4; }











.inline-fold { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; min-width: 0; }
.inline-fold.fold-open { display: block; }
.inline-fold.fold-open .hero-fold-toggle { margin-top: 6px; }
.inline-fold-body { margin: 0; font-size: 12.5px; line-height: 1.45; }
html[data-folds] .inline-fold:not(.fold-open) .inline-fold-body {
  flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.settings-actions { display: flex; gap: 8px; flex-wrap: wrap; }




.settings-fold { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.settings-fold > summary {
  display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer;
  padding: 13px 15px; font-size: 15px; font-weight: 750; color: var(--ink);
}
.settings-fold > summary::-webkit-details-marker { display: none; }
.settings-fold > summary::after {
  content: '▾'; margin-left: auto; color: var(--muted); font-size: 13px; transition: transform .15s ease;
}
.settings-fold[open] > summary { border-bottom: 1px solid var(--line); }
.settings-fold[open] > summary::after { transform: rotate(180deg); }
.settings-fold-body { padding: 14px 15px; display: grid; gap: 12px; }


.settings-fold-body > .field,
.settings-fold-body > .check-row,
.settings-fold-body > .setting-row,
.settings-fold-body > p { margin: 0; }


#tab-roomsettings .settings-fold { margin-bottom: 14px; }








.settings-modal .settings-body { display: flex; flex-direction: column; min-height: 0; }
.settings-modal .settings-fold { flex: none; }




.mine-modal { width: min(600px, 100%); }
.mine-modal .settings-section:first-child { border-top: 0; padding-top: 0; }
.friends-modal { width: min(600px, 100%); }
.friends-modal .settings-section:first-child { border-top: 0; padding-top: 0; }


.friends-modal .settings-section.hidden:first-child + .settings-section { border-top: 0; padding-top: 0; }


#friend-incoming-block {
  padding: 12px 14px; border: 1px solid var(--medal-line); border-radius: 14px;
  background: var(--medal-bg);
}
#friend-incoming-block :is(h3, .ui-h3) { margin-bottom: 10px; }
.friend-list, .friend-matches { display: grid; gap: 10px; font-size: 14px; }
.friend-matches:not(:empty) { margin-top: 12px; }
.friend-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}


.friend-item .avatar { width: 44px; height: 44px; font-size: 18px; }


.friend-info { display: grid; gap: 2px; min-width: 0; flex: 1 1 180px; }




.friend-open {
  appearance: none; -webkit-appearance: none; border: 0; padding: 0;
  background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.friend-open:hover strong { text-decoration: underline; }
.friend-open:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.friend-info span { font-size: 12.5px; line-height: 1.35; }
.friend-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.friend-actions .button { min-height: 40px; padding: 7px 13px; font-size: 13px; }


.player-relation, .stats-friend-note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--blue); font-size: 13.5px; font-weight: 700; }
.player-rooms { margin-top: 4px; }
.player-rooms .ui-h3 { margin: 0 0 8px; font-size: 15px; }
.player-rooms-list { display: grid; gap: 8px; font-size: 14px; }
.shared-room {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}


.shared-room.active { border-color: var(--blue); background: var(--chip); }
.shared-room-info { display: grid; gap: 2px; min-width: 0; flex: 1 1 160px; }
.shared-room-info span { font-size: 12.5px; line-height: 1.35; }
.shared-room .button { min-height: 36px; padding: 6px 12px; font-size: 13px; }

.delete-account-box {
  margin-top: 12px; padding: 12px 14px;
  border: 1px solid var(--bad); border-radius: 12px; background: var(--surface);
}
.delete-account-box .field { margin: 10px 0; max-width: 320px; }

.privacy-body ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.privacy-body li, .privacy-body p { font-size: 13.5px; line-height: 1.5; }




.card.privacy-page :is(li, p) { font-size: 14.5px; line-height: 1.55; }
.card.privacy-page .settings-section:first-child { border-top: 0; padding-top: 0; }


#host-settings .setting-row { margin-bottom: 0; }
#host-settings .field { margin: 0; max-width: 320px; }


#host-settings .room-name-field { max-width: none; margin-top: 0; }
.room-name-row { display: flex; gap: 8px; }
.room-name-row input { flex: 1; min-width: 0; }
.room-name-row .button { min-height: 44px; padding: 8px 14px; flex: none; }


.create-settings { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.create-settings summary { padding: 12px 14px; cursor: pointer; font-weight: 750; color: var(--navy-ink); border-radius: 12px; }
.create-settings summary::marker { color: var(--blue); }


.create-settings summary .ps-icon { margin-right: 6px; }
.create-settings[open] summary { border-bottom: 1px solid var(--line); }
.create-settings .field, .create-settings .check-row { margin: 12px 14px; }

.chat-disabled-note { margin: 8px 0 0; font-size: 13px; }
.chat-disabled-note .ps-icon { margin-right: 4px; }
.color-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch {
  width: 32px; height: 32px; padding: 0; border: 2px solid transparent; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.22);
  cursor: pointer; transition: transform .1s ease;
}
.color-swatch:hover:not(:disabled) { transform: scale(1.12); }
.color-swatch.selected { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
.color-swatch:disabled { cursor: not-allowed; }


.color-swatch.taken {
  opacity: .45;
  background-image: linear-gradient(135deg, transparent 44%, var(--ink) 44%, var(--ink) 56%, transparent 56%);
}



.color-swatch.preferred { outline: 2px dashed var(--ink); outline-offset: 2px; }
.color-picker-note:empty { display: none; }
.color-picker-note { margin: 8px 0 0; }



.settings-color-block { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.settings-color-block .settings-section-title { margin: 0; font-size: 15px; }
.settings-color-block .settings-section-note { margin: 0; }


.setting-row strong .ps-icon { margin-right: 5px; }


.crossword-toolbar button.toggled-on {
  background: var(--blue-fill); color: var(--on-accent);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .38);
  transform: translateY(1px);
}
.badge.solved { color: var(--good-ink); background: var(--good-bg); }







.picker-footer {
  flex: none; flex-direction: column; align-items: stretch;
  gap: 10px;
}
.picker-status { margin: 0; min-height: 0; }
.picker-status:empty { display: none; }
.picker-confirm-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.picker-confirm-row .selected-summary { margin: 0; min-height: 0; }

.picker-confirm-actions { display: flex; gap: 8px; flex: none; }

.preview-modal { width: min(740px, 100%); }
.preview-toolbar { padding: 9px 18px; }
.preview-viewport { margin: 0 18px 18px; width: auto; height: min(58vh, 610px); }
.preview-grid .crossword-cell { cursor: default; }

.header-tools { display: flex; align-items: center; gap: 10px; }



.avatar {
  flex: none; display: inline-grid; place-items: center; overflow: hidden;
  border: 2px solid var(--line); border-radius: 50%;
  background: var(--chip); color: var(--navy-ink); font-weight: 800; line-height: 1;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-large { width: 68px; height: 68px; font-size: 27px; }
.avatar-chip { width: 20px; height: 20px; border-width: 1.5px; font-size: 10px; }
.avatar-mini { width: 17px; height: 17px; border-width: 1.5px; font-size: 9px; vertical-align: -3px; margin-right: 5px; }


.avatar-header { width: 27px; height: 27px; border-width: 1.5px; border-color: rgba(255,255,255,.45); font-size: 12px; }
.account-identity { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.avatar-actions .button { min-height: 38px; padding: 6px 12px; font-size: 13px; }

.avatar-pick { display: inline-flex; align-items: center; cursor: pointer; }
.avatar-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }



.avatar-pick.locked { cursor: not-allowed; opacity: .55; }
.avatar-pick.locked input { display: none; }
.avatar-status:empty { display: none; }
.avatar-status { margin-top: 6px; font-size: 12.5px; }


.stats-modal { width: min(880px, 100%); }

#stats-status:empty { display: none; }


#stats-tabs .badge { margin-left: 6px; font-size: 10.5px; }
#stats-tabs .badge:empty { display: none; }


.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat-tile {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: 13px; background: var(--surface);
}
.stat-tile strong { font-size: 23px; line-height: 1.1; color: var(--navy-ink); }
.stat-tile span { font-size: 12.5px; color: var(--muted); }



.medal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.medal-list + .mine-explain { margin-top: 12px; }


.mine-explain + .medal-list { margin-top: 12px; }

#medal-earned-list { margin-top: 8px; }
.medal-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: 13px; background: var(--surface);
}






.log-block + .log-block { margin-top: 14px; }
.log-title { margin: 0; font-size: 13.5px; font-weight: 750; color: var(--navy-ink); }
.log-stamps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.log-stamp {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 26px; min-width: 26px; padding: 3px 9px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font-family: inherit; font-size: 12px; font-weight: 650;
}



.log-stamp.seen {
  color: var(--good-ink); background: var(--good-bg); border-color: var(--good-bg);
  cursor: pointer;
}



.log-stamp.blind.gehaald { color: var(--good-ink); background: var(--good-bg); border-color: var(--good-bg); }
.log-stamp.seen:hover { border-color: var(--good-ink); }
.log-stamp.seen:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }





.stamp-modal { width: min(470px, 94vw); }
.stamp-stage {
  display: block; width: 100%; height: 200px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--page);
}
@media (max-height: 620px) { .stamp-stage { height: 150px; } }




.medal-card.hidden-medal { border-style: dashed; background: var(--chip); }
.medal-card.hidden-medal .medal-icon { filter: grayscale(1); opacity: .5; }
.medal-card.hidden-medal strong { color: var(--muted); letter-spacing: .08em; }

.medal-card:not(.earned) { opacity: .72; }
.medal-card:not(.earned) .medal-icon { filter: grayscale(1); opacity: .55; }
.medal-card.earned { border-color: var(--medal-line); background: var(--medal-bg); }
.medal-icon { flex: none; font-size: 30px; line-height: 1.1; }
.medal-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.medal-body strong { font-size: 14.5px; }
.medal-body span { font-size: 12.5px; line-height: 1.35; }
.medal-progress { color: var(--muted); font-size: 11.5px !important; }
.medal-bar { height: 6px; margin-top: 4px; border-radius: 999px; background: var(--bar-bg); overflow: hidden; }
.medal-bar span { display: block; height: 100%; border-radius: 999px; background: var(--blue); }



.medal-toasts {
  position: fixed; z-index: 120; right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px; width: min(330px, calc(100vw - 24px));
  pointer-events: none;
}
.medal-toast {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; cursor: pointer;
  border: 1px solid var(--medal-line); border-radius: 14px; background: var(--medal-bg);
  box-shadow: var(--shadow); pointer-events: auto;
  animation: medal-in .32s ease-out;
}
.medal-toast strong { display: block; font-size: 13.5px; }
.medal-toast span { font-size: 12.5px; color: var(--muted); }
.medal-toast .medal-icon { font-size: 27px; }

@keyframes medal-in {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: none; }
}






html.typing .medal-toasts,
html.typing .toast { bottom: calc(var(--keyboard-height, 0px) + max(12px, env(safe-area-inset-bottom))); }




.toast {
  position: fixed; z-index: 95;
  left: 50%; transform: translateX(-50%);
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(440px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 12px 15px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); box-shadow: var(--shadow);
  font-size: 14.5px;
}
.toast.show { animation: toast-in .3s ease-out; }
.toast .toast-body { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.toast .toast-body .ps-icon { flex: none; color: var(--good); }
.toast .toast-action {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 7px 12px; border-radius: 10px;
  background: var(--blue-fill); color: var(--on-accent); font-weight: 700; text-decoration: none;
}
.toast .toast-close {
  display: inline-flex; flex: none; padding: 6px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.toast .toast-close:hover { color: var(--ink); }

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .toast.show { animation: none; }
}



.effects-canvas { position: fixed; inset: 0; z-index: 130; pointer-events: none; }
.celebration {
  position: fixed; z-index: 131; left: 50%; top: 22%; transform: translate(-50%, -10px);
  display: none; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 26px; border-radius: 18px; text-align: center;
  background: var(--paper); border: 2px solid var(--orange); box-shadow: var(--shadow);
  pointer-events: none;
}
.celebration.show { display: flex; animation: celebrate-pop 5.2s ease-out forwards; }
.celebration strong { font-size: 27px; color: var(--navy-ink); }
.celebration span { font-size: 14px; color: var(--muted); }

@keyframes celebrate-pop {
  0% { opacity: 0; transform: translate(-50%, 14px) scale(.85); }
  9% { opacity: 1; transform: translate(-50%, -10px) scale(1.04); }
  15% { transform: translate(-50%, -10px) scale(1); }
  85% { opacity: 1; transform: translate(-50%, -10px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -22px) scale(.97); }
}

@media (max-width: 860px) {
  main { padding-top: 14px; }



  .game-layout { grid-template-columns: minmax(0, 1fr); }
  .game-layout { gap: 12px; }
  .clues-panel { grid-template-columns: repeat(2, minmax(0,1fr)); max-height: none; }
  .library-filter-row { grid-template-columns: 1fr 1fr; }
  .generate-grid { grid-template-columns: 1fr 1fr; }
  .search-text { grid-column: 1 / -1; }
  .search-button { width: 100%; }
  .browse-grid { grid-template-columns: 1fr 1fr; }


  .browse-search-row { grid-template-columns: 1fr 1fr; }
  .browse-search-row .browse-button { grid-column: 1 / -1; }
  .browse-text { grid-column: 1 / -1; }
  .browse-button { grid-column: 1 / -1; }
}

@media (max-width: 600px) {



  .site-header { min-height: 58px; flex-wrap: wrap; gap: 4px 8px; padding-bottom: 6px; }



  .brand { font-size: 14.5px; gap: 8px; white-space: nowrap; }
  .brand-mark { width: 28px; height: 28px; }
  .header-tools { gap: 7px; }



  #site-breadcrumb {
    order: 3; flex-basis: 100%; margin-right: 0;
    mask-image: linear-gradient(to right, #000 86%, transparent);
    -webkit-mask-image: linear-gradient(to right, #000 86%, transparent);
  }
  .connection { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }




  .connection.offline { max-width: 130px; }
  main { padding-left: 10px; padding-right: 10px; }













  .hero { --hero-kop: clamp(20px, 3vh, 25px); padding-top: clamp(2px, 0.8vh, 6px); padding-bottom: clamp(6px, 1.7vh, 14px); }
  .eyebrow { margin-bottom: 5px; font-size: 11px; letter-spacing: .1em; }
  .hero > p:not(.eyebrow), .hero .lobby-fold-body > p:not(.eyebrow) { margin-top: 8px; font-size: clamp(13px, 1.75vh, 14.5px); line-height: 1.5; }






  .hero-usps { gap: 6px; margin-top: 10px; }
  .hero-usps li { padding: 5px 11px; font-size: 12.5px; }
  .how-card { padding: clamp(10px, 1.55vh, 16px) 18px; }
  .how-card h2 { font-size: clamp(15.5px, 2.4vh, 20px); }


  html[data-folds] .landing-fold { display: block; }
  html[data-folds] .landing-fold > h2 { margin-bottom: 8px; }
  html[data-folds] .landing-fold > .lobby-fold-toggle {
    width: 100%; min-height: 42px; margin-top: 10px; padding: 9px 14px;
  }









  html[data-folds] .how-card.lobby-fold {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; align-items: stretch;
  }
  html[data-folds] .how-card.lobby-fold > h2 { grid-column: 1 / -1; margin-bottom: 10px; }
  html[data-folds] .how-card.lobby-fold > .lobby-fold-toggle,
  .how-card .how-tutorial {
    width: auto; min-height: 42px; margin-top: 0; padding: 9px 10px; font-size: 13.5px;
    align-self: stretch; justify-content: center;
  }





  html[data-folds] .how-card.lobby-fold:not(:has(.how-tutorial)) > .lobby-fold-toggle { grid-column: 1 / -1; }
  .account-row, .mine-item { flex-direction: column; align-items: stretch; }


  .mine-item .mine-info { flex: 0 1 auto; }






  .mine-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mine-actions .button { flex: 1; width: 100%; }


  .mine-actions:has(.mine-remove) { grid-template-columns: minmax(0, 1fr) auto; }
  .mine-tools { flex-direction: column; align-items: stretch; }
  .mine-tools-right { justify-content: space-between; }
  .mine-tools input[type="search"] { flex: 1 1 100%; min-width: 0; }




  .mine-item .mine-rooms { order: 0; }
  .mine-item .mine-actions { order: 1; }






  body[data-screen="game"] .account-menu-label { display: none; }
  body[data-screen="game"] .account-menu-button { padding: 4px 9px 4px 4px; }



  .account-menu-label { max-width: 58px; font-size: 12.5px; }





  html[data-simple="1"] .account-menu-label { max-width: 82px; }
  .account-menu-button { max-width: none; min-height: 40px; padding: 4px 10px 4px 4px; }






  .account-menu { position: static; }
  .account-menu-panel { top: calc(100% + 8px); left: 10px; right: 10px; width: auto; padding: 14px; }




  .site-menu-label { display: none; }
  .site-menu-button { min-height: 40px; padding: 5px 10px; }
  .site-menu { position: static; }
  .site-menu-panel { top: calc(100% + 8px); left: 10px; right: 10px; width: auto; }


  .account-menu-panel .avatar-large { width: 52px; height: 52px; font-size: 21px; }
  .account-menu-panel .account-identity { gap: 12px; align-items: center; }



  .lobby-board { gap: clamp(7px, 1.2vh, 10px); }








  .lobby-board { margin-bottom: clamp(6px, 1.4vh, 12px); }
  .board-tile { padding: clamp(8px, 1.5vh, 14px) 14px; }
  .lobby-bottom { gap: clamp(8px, 1.4vh, 12px); margin-bottom: clamp(6px, 1.7vh, 14px); }


  .game-choice { gap: clamp(8px, 1.6vh, 14px); margin-bottom: clamp(8px, 1.9vh, 18px); }
  .game-tile { gap: 12px; padding: clamp(10px, 2vh, 20px) 16px; }
  .game-tile-badge { width: clamp(40px, 6.2vh, 52px); height: clamp(40px, 6.2vh, 52px); }



  .board-tile { padding: 12px 13px; }
  .board-daily h2 { margin-bottom: 5px; font-size: 16px; }
  .board-day { font-size: 19px; }
  .board-day-level { font-size: 12px; }
  .board-countdown { margin: 5px 0 9px; font-size: 12px; }
  .board-countdown-time { font-size: 14px; }




  .board-play-row { gap: 6px; margin-bottom: 6px; }
  .board-daily-cal { width: 44px; }
  .board-streak-sun { width: 28px; height: 28px; }
  .board-tile-label { font-size: 12px; }
  .board-top h2 { margin-bottom: 5px; font-size: 14px; }
  .board-top-item { font-size: 12.5px; }
  .board-podium { max-width: 96px; }
  .board-top-mine { margin-top: 6px; font-size: 13.5px; }
  .board-top-list { min-height: 72px; }
  .board-streak-count { font-size: 26px; }





  .lobby-logo { display: none; }


  .play-panel { scroll-margin-top: 84px; }



  .modal { max-height: 100%; min-height: min(720px, 100%); border-radius: 15px; }
  .picker-confirm-row { flex-direction: column; align-items: stretch; }
  .picker-confirm-actions { flex-direction: column; }
  .settings-modal { min-height: 0; align-self: end; }
  .overlay { padding: 0; place-items: stretch; }
  .modal-header, .modal-footer { padding: 13px 14px; }
  .modal-footer { align-items: stretch; flex-direction: column; }




  .join-footer .button { flex: 0 0 auto; }
  .tabs, .subtabs { padding-left: 8px; padding-right: 8px; }
  .tab-panel { padding: 13px; }
  .library-filter-row { grid-template-columns: 1fr; }
  .generate-grid { grid-template-columns: 1fr; }
  .import-url-row { flex-direction: column; }


  .demo-stage { gap: 10px; padding: 10px; }
  .demo-desktop { flex: 1 1 auto; }
  .demo-phone { flex: 0 1 100px; min-width: 76px; }
  .demo-phone .demo-cell { font-size: 9px; }
  .search-text { grid-column: auto; }
  .puzzle-results { grid-template-columns: 1fr; }
  .browse-grid { grid-template-columns: 1fr; }
  .browse-search-row { grid-template-columns: 1fr; }
  .browse-groups { grid-template-columns: 1fr; }
  .browse-head { padding: 12px 2px 0; }
  .browse-filters { padding: 12px; }
  .room-results { grid-template-columns: 1fr; }
  .game-head { align-items: flex-start; flex-direction: column; padding: 12px 14px; gap: 10px; }



  .game-head-main { width: 100%; }
  .game-head-side { width: 100%; align-items: stretch; }
  .game-head-actions button { flex: 1 1 0; }


  .game-head:not(.head-open) { flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; }
  .game-head:not(.head-open) .game-head-main { width: auto; min-width: 0; }
  .game-head:not(.head-open) .game-head-side { width: auto; flex: none; }
  .game-head:not(.head-open) .game-head-actions button { flex: none; }
  .puzzle-panel, .clues-panel, .chat-panel { padding: 10px; }




  .crossword-viewport { height: calc(62svh - var(--keyboard-height, 0px)); min-height: 300px; }





  .viewport-shell .woordstrijd-viewport { height: min(calc(100vw - 44px), 48svh); min-height: 240px; }
  .woordstrijd-rekje { gap: 4px; }
  .woordstrijd-acties .button { padding-left: 10px; padding-right: 10px; }
  .crossword-toolbar { gap: 4px; padding: 6px 0; }





  .crossword-toolbar button { gap: 5px; min-width: 40px; min-height: 40px; padding: 8px 9px; font-size: 13px; }


  .crossword-toolbar [data-fs-zoom="uit"] { margin-left: 0; }
  .crossword-toolbar button .ps-icon { width: 18px; height: 18px; }
  .crossword-toolbar output { min-width: 38px; }


  .game-controls { gap: 8px; margin-top: 12px; }
  .game-controls .button { flex: 1 1 140px; padding: 11px 14px; }


  .game-head .room-progress { flex: none; width: 100%; }






  .puzzle-panel > .crossword-toolbar { margin-left: -10px; margin-right: -10px; padding-left: 6px; padding-right: 6px; }
  #game.typing .crossword-toolbar { margin-left: 0; margin-right: 0; padding-left: 10px; padding-right: 10px; }
  .clues-panel { grid-template-columns: 1fr; }
  .preview-modal { min-height: 100%; }
  .preview-viewport { margin: 0 10px 10px; height: 62dvh; }
}




@media (max-width: 359px) {
  .account-menu-label { display: none; }
  .account-menu-button { padding: 4px 9px 4px 4px; }





  .woordstrijd-rekje { gap: 2px; margin-left: -10px; margin-right: -10px; }
  .woordstrijd-rekje-steen { flex: 1 1 0; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}





















.app-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  margin: 20px 0 4px; text-align: center; font-size: 12.5px;
}













@media (min-width: 600px) {
  .app-footer { margin-top: 30px; }
}




.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px;
  padding: 12px max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: var(--shadow);
}
.cookie-banner p { margin: 0; max-width: 620px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.cookie-buttons { display: flex; flex: none; gap: 8px; }





.cookie-buttons .cookie-secondary {
  color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600;
}
.cookie-buttons .cookie-secondary:hover { background: var(--chip); }










.daily-times .board-top-list { min-height: 0; }
.daily-times .board-top-item { color: var(--ink); }
.daily-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.daily-nav .strong { text-transform: capitalize; }
.daily-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daily-weekday { text-align: center; font-size: 12.5px; }
.daily-day {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; min-height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer;
}
.daily-day:hover:not(:disabled) { background: var(--surface-hover); }

.daily-day:disabled { background: transparent; border-style: dashed; color: var(--muted); cursor: default; opacity: .55; }
.daily-day.solved { background: var(--good-bg); border-color: var(--good); color: var(--good-ink); }
.daily-day.today { outline: 2px solid var(--active-line); outline-offset: 1px; }
.daily-check { position: absolute; top: 2px; right: 4px; display: grid; line-height: 1; }
.daily-check .ps-icon { width: 11px; height: 11px; stroke-width: 3; }

.daily-legend-swatch { display: inline-flex; width: 24px; min-height: 24px; vertical-align: middle; pointer-events: none; }



.admin-count-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}


.admin-count-field { max-width: 200px; margin: 0; }
.admin-total { margin: 6px 0 0; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px;
  margin-bottom: 4px;
}



.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}


.admin-row-short {
  border-color: var(--bad-line);
  background: var(--bad-bg);
}
.admin-row-label { color: var(--muted); min-width: 0; }


.admin-row-count { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }



.admin-combo-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
}


.admin-grid-wide { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.admin-combo-input {
  width: 64px;
  padding: 5px 7px;
  border: 1px solid var(--input-line);
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.admin-progress {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.admin-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--blue);
  transition: width 0.3s ease;
}
.admin-status { margin: 8px 0 0; }

.admin-row-count { display: inline-flex; align-items: center; gap: 4px; }

.admin-row-off .admin-row-count { color: var(--muted); font-weight: 500; }




.admin-api-choice { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.admin-api-choice .tab { min-height: 38px; border-radius: 999px; border: 1px solid var(--line); }
.admin-api-choice .tab.active { color: var(--navy-ink); background: var(--tab-active); border-color: var(--tab-active); }


#admin-api-example-note { margin: 0 0 8px; }






.admin-api-code {
  min-height: 190px;
  max-height: 60vh;
  margin: 0 0 12px;
  padding: 14px 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-overflow-scrolling: touch;
}


@media (max-width: 620px) {
  .admin-api-code { min-height: 240px; font-size: 13.5px; padding: 12px 13px; }
}

.admin-list { display: grid; gap: 8px; }
.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.admin-item-main { display: grid; gap: 2px; min-width: 0; flex: 1 1 220px; }
.admin-item-title { font-weight: 650; overflow-wrap: anywhere; }
.admin-item-meta { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.admin-item-actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }

.admin-item-suspended { border-color: var(--bad); }


.admin-tree { gap: 8px; }
.admin-tree-item { display: grid; gap: 6px; }
.admin-children { display: grid; gap: 6px; margin: 0 0 2px 22px; padding-left: 12px; border-left: 2px solid var(--line); }
.admin-child-item { background: var(--paper); }
.admin-check { width: 18px; height: 18px; flex: none; accent-color: var(--blue); cursor: pointer; }

.admin-batch {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.admin-batch-all { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.admin-batch-count { color: var(--muted); font-size: 13px; margin-right: auto; }




.admin-daily-nav { align-items: center; }
.admin-daily-nav .admin-total { flex: 1; margin: 0; text-align: center; font-weight: 700; text-transform: capitalize; }

.admin-weekday-row { align-items: center; }
.admin-weekday-name { flex: 1 1 120px; }
.admin-weekday-fields { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-weekday-size { width: 60px; padding: 5px 7px; border: 1px solid var(--input-line); border-radius: 7px; background: var(--input-bg); color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; }
.admin-weekday-difficulty { padding: 5px 7px; border: 1px solid var(--input-line); border-radius: 7px; background: var(--input-bg); color: var(--ink); }


.admin-tutorial-row { align-items: center; }
.admin-tutorial-seed { width: 130px; padding: 5px 7px; border: 1px solid var(--input-line); border-radius: 7px; background: var(--input-bg); color: var(--ink); }

.admin-cleanup { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px 12px; }
.admin-cleanup > summary { cursor: pointer; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.admin-cleanup[open] > summary { margin-bottom: 8px; }

.admin-detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.admin-detail-head .settings-section-title { margin: 0; }





.admin-search-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.admin-search-row > .field { flex: 1 1 150px; margin: 0; }
.admin-search-field { flex: 2 1 220px; margin: 0; }
.admin-search-row > .button { flex: 0 0 auto; min-height: 48px; }

.admin-search { display: grid; gap: 10px; margin-bottom: 12px; }
.admin-search .admin-search-row { margin-bottom: 0; }





.admin-type-filter { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px 9px; }
.admin-type-filter legend { color: var(--field-label); font-size: 13px; font-weight: 750; padding: 0 4px; }
.admin-type-option { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; margin: 4px 20px 2px 0; }
.admin-type-option input {
  flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0;
  border-radius: 5px; accent-color: var(--blue);
}



#admin-overlay .tab-panel { display: grid; gap: 14px; align-content: start; }
#admin-overlay .tab-panel > .settings-section-title:first-child { margin-top: 0; }





.admin-activity {
  position: relative;
  display: flex; gap: 4px; align-items: flex-end;



  height: 106px; padding: 20px 8px 6px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.admin-activity-day {
  flex: 1; display: flex; gap: 2px; align-items: flex-end; height: 100%; min-width: 0;
  margin: 0; padding: 0 1px; border: 0; border-radius: 4px;
  background: none; color: inherit; font: inherit; cursor: pointer;
}


.admin-activity-day.aim { background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.admin-activity-day:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.admin-activity-bar { flex: 1; border-radius: 3px 3px 0 0; background: var(--blue); }
.admin-activity-bar.solves { background: var(--orange); }



.admin-chart-top {
  position: absolute; top: 4px; right: 9px;
  color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.admin-chart-axis {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 3px; color: var(--muted); font-size: 12px;
}


.admin-chart-readout {
  margin: 3px 0 0; min-height: 1.4em;
  font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums;
}




.admin-screens { display: grid; gap: 6px; }
.admin-screen-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(64px, auto));
  gap: 12px;
  align-items: baseline;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.admin-screen-row:not(.admin-screen-head) { cursor: pointer; }
.admin-screen-row:not(.admin-screen-head):hover { border-color: var(--blue); }
.admin-screen-row.active { border-color: var(--blue); background: var(--card); }


.admin-screen-head {
  padding-bottom: 2px;
  border-color: transparent;
  background: none;
  color: var(--muted);
  font-size: 13px;
}
.admin-screen-name { min-width: 0; overflow-wrap: anywhere; }
.admin-screen-getal { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; text-align: right; }
.admin-screen-head .admin-screen-getal { font-weight: 500; }





.admin-funnel { display: grid; gap: 6px; }
.admin-funnel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(84px, auto));
  gap: 4px 12px;
  align-items: baseline;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.admin-funnel-row.admin-screen-head { padding-bottom: 2px; border-color: transparent; background: none; }
.admin-funnel-bars { grid-column: 1 / -1; display: grid; gap: 3px; }
.admin-funnel-bar { height: 6px; min-width: 2px; border-radius: 3px; background: var(--blue); }
.admin-funnel-bar.gast { background: var(--orange); }


.admin-funnel-bar.aan { background: var(--blue); }
.admin-funnel-bar.uit { background: var(--muted); }
.admin-screens-compare { max-width: 520px; margin-top: 6px; }
.admin-screens-period { max-width: 260px; }
.admin-screens-signal { color: var(--orange-dark); }
.admin-screen-detail {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.admin-screen-detail-title { margin: 0 0 8px; }


@media (max-width: 560px) {
  .admin-screen-row { grid-template-columns: repeat(3, 1fr); }
  .admin-screen-name { grid-column: 1 / -1; }
  .admin-screen-getal { text-align: left; }
}

.feedback-item.handled, .feedback-item.archived { opacity: 0.6; }

.feedback-item-actions { margin-top: 8px; flex-wrap: wrap; }
.feedback-reply-form { display: grid; gap: 8px; margin-top: 8px; }
.feedback-reply-form textarea { width: 100%; }


.feedback-reply-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); align-self: center; }



.admin-fotoreport {
  margin-top: 10px; padding: 10px; font-size: 14px;
  background: var(--page); border: 1px solid var(--line); border-radius: 10px;
}
.admin-fotoreport-cijfers { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 2px; }
.admin-fotoreport-fotos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.admin-fotoreport-fotos a { display: grid; gap: 4px; text-align: center; font-size: 13px; }
.admin-fotoreport-fotos img {
  display: block; width: min(280px, 100%); height: auto;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.admin-fotoreport summary { cursor: pointer; font-weight: 600; }
.admin-fotoreport-json {
  max-height: 240px; overflow: auto; margin: 8px 0 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px; white-space: pre-wrap; word-break: break-word;
}

.admin-filter-row { display: flex; gap: 10px; align-items: end; }
.admin-filter-field { max-width: 220px; }

.admin-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }




.admin-weather-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-weather-row #admin-weather-name { flex: 1 1 180px; min-width: 140px; font-weight: 600; text-align: center; }




.admin-gear-list { display: grid; gap: 6px; }
.admin-gear-kop { margin: 12px 0 2px; }
.admin-gear-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--chip);
}
.admin-gear-name { flex: 1 1 220px; min-width: 180px; }
.admin-gear-select { flex: 1 1 200px; min-width: 160px; }


.admin-gear-count { flex: 0 0 88px; width: 88px; }
.admin-gear-eye,
.admin-gear-info-button { flex: none; }


.admin-gear-info { flex: 1 1 100%; margin: 0; font-size: 0.92em; }



.site-announcement {


  box-sizing: border-box;
  width: min(1252px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 11px 14px;
  border: 1px solid var(--warm-line, var(--line));
  border-radius: 12px;
  background: var(--medium-bg, var(--chip));
  color: var(--warm-ink, var(--ink));
  font-weight: 600;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}




























html[data-simple="1"] {
  --muted: #3c4857;
  --ink: #0a1320;
  --line: #93a2b3;
  --card-line: #93a2b3;
  --grid-line: #000000;
  --cell-ink: #000000;
  --active-line: #b04f08;
  --clue-item-ink: #0f2136;
}
html[data-simple="1"][data-theme="dark"] {
  --muted: #cbd6e2;
  --ink: #f5f9fd;
  --line: #6f8194;
  --card-line: #6f8194;
  --grid-line: #d2dbe5;
  --cell-ink: #ffffff;
}



html[data-simple="1"] .crossword-cell { font-size: 26px; }
html[data-simple="1"] .clue-list li { font-size: 17px; padding: 9px 8px 9px 3px; }



html[data-simple="1"] .solution-word-label { font-size: 15px; }
html[data-simple="1"] .solution-word-box { width: 36px; height: 42px; font-size: 21px; }
html[data-simple="1"] .solution-word-number { font-size: 10px; }


html[data-simple="1"] #solution-word.fs-zwevend .solution-word-box { width: 32px; height: 38px; font-size: 19px; }
html[data-simple="1"] #solution-word.fs-zwevend .solution-word-number { font-size: 9px; }
html[data-simple="1"] .active-clue { font-size: 17px; }


html[data-simple="1"] .button { min-height: 54px; font-size: 17px; padding: 12px 18px; }






html[data-simple="1"] #lobby-open-play { font-size: 17px; }
html[data-simple="1"] .crossword-toolbar button { min-height: 50px; font-size: 16px; }
html[data-simple="1"] .crossword-toolbar button .ps-icon { width: 22px; height: 22px; }



html[data-simple="1"] #site-breadcrumb,
html[data-simple="1"] .site-menu-label,
html[data-simple="1"] .site-menu-panel a,
html[data-simple="1"] .site-menu-group-title,
html[data-simple="1"] .site-menu-tool,
html[data-simple="1"] .account-menu-label { font-size: 15px; }
html[data-simple="1"] .landing-text,
html[data-simple="1"] .account-note,
html[data-simple="1"] .setting-row small { font-size: 15px; }
html[data-simple="1"] .setting-row span strong { font-size: 16px; }









html[data-simple="1"] #draft-mode,
html[data-simple="1"] #ping { display: none; }







#app-loader { transition: opacity .45s ease; }
#app-loader.is-hidden { opacity: 0; }
.app-loader-decor {
  position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201200%20800%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cg%20transform%3D%22translate(-40%20560)%20rotate(-14)%20scale(1.5)%22%20fill%3D%22%232b8fee%22%20fill-opacity%3D%220.06%22%3E%3Cpath%20d%3D%22M40%2020%20H150%20A24%2024%200%200%201%20174%2044%20V70%20a26%2026%200%201%201%200%2052%20V150%20a26%2026%200%201%201%20-52%200%20H44%20A24%2024%200%200%201%2020%20126%20V40%20A20%2020%200%200%201%2040%2020%20Z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(980%20-30)%20rotate(20)%20scale(1.25)%22%20fill%3D%22%230e2f5e%22%20fill-opacity%3D%220.05%22%3E%3Cpath%20d%3D%22M40%2020%20H150%20A24%2024%200%200%201%20174%2044%20V70%20a26%2026%200%201%201%200%2052%20V150%20a26%2026%200%201%201%20-52%200%20H44%20A24%2024%200%200%201%2020%20126%20V40%20A20%2020%200%200%201%2040%2020%20Z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(760%20600)%20rotate(8)%20scale(1.1)%22%20fill%3D%22%2383c21f%22%20fill-opacity%3D%220.05%22%3E%3Cpath%20d%3D%22M40%2020%20H150%20A24%2024%200%200%201%20174%2044%20V70%20a26%2026%200%201%201%200%2052%20V150%20a26%2026%200%201%201%20-52%200%20H44%20A24%2024%200%200%201%2020%20126%20V40%20A20%2020%200%200%201%2040%2020%20Z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(120%2080)%20rotate(-8)%20scale(0.8)%22%20fill%3D%22%23a24fd0%22%20fill-opacity%3D%220.05%22%3E%3Cpath%20d%3D%22M40%2020%20H150%20A24%2024%200%200%201%20174%2044%20V70%20a26%2026%200%201%201%200%2052%20V150%20a26%2026%200%201%201%20-52%200%20H44%20A24%2024%200%200%201%2020%20126%20V40%20A20%2020%200%200%201%2040%2020%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / cover no-repeat,
    radial-gradient(1100px 760px at 50% 28%, #ffffff 0, #e8f2fe 52%, #d7e9fc 100%);
}
.app-loader-inner {
  position: relative; text-align: center; padding: 24px;
  display: flex; flex-direction: column; align-items: center;
}
.app-loader-mark {
  width: 128px; height: 128px; display: block;
  filter: drop-shadow(0 16px 30px rgba(20, 50, 90, .18));
  animation: app-loader-pop .5s ease both;
}
.app-loader-word {
  margin-top: 22px; font-size: 42px; font-weight: 800; letter-spacing: -.02em; line-height: 1;
}
.app-loader-word strong { color: var(--brand-navy); font-weight: 800; }
.app-loader-word span { color: var(--brand-samen); }
.app-loader-note { margin-top: 14px; color: var(--muted); font-size: 18px; font-weight: 600; }
.app-loader-bar {
  margin-top: 26px; width: 300px; max-width: 66vw; height: 12px;
  border-radius: 999px; background: #d3e3f6; overflow: hidden;
}
.app-loader-bar span {
  display: block; height: 100%; width: 42%; border-radius: 999px;
  background: linear-gradient(90deg, var(--logo-blue), var(--logo-green));
  animation: app-loader-slide 1.4s ease-in-out infinite;
}
@keyframes app-loader-slide {
  0% { margin-left: -46%; }
  100% { margin-left: 100%; }
}
@keyframes app-loader-pop {
  0% { transform: scale(.82); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}


@media (prefers-reduced-motion: reduce) {
  .app-loader-mark { animation: none; }
  .app-loader-bar span { animation: none; width: 66%; margin-left: 0; }
}
@media (max-width: 600px) {
  .app-loader-mark { width: 104px; height: 104px; }
  .app-loader-word { font-size: 36px; }
  .app-loader-note { font-size: 16px; }
}






















#fotoimport-overlay { z-index: 110; }
.fotoimport-modal { width: min(1180px, 100%); }
#fotoimport-body { padding: 16px; }
#fotoimport-voet { padding: 0; }

.fotoimport, .fotoimport * { box-sizing: border-box; }


.fotoimport [hidden] { display: none !important; }
.fotoimport { color: var(--ink); font-size: 15px; line-height: 1.5; }

body.fotoimport-pagina { margin: 0; background: var(--page); }
body.fotoimport-pagina .fotoimport { margin: 0 auto; padding: 14px 14px 88px; max-width: 760px; }
body.fotoimport-pagina #stapknoppen { position: fixed; inset: auto 0 0 0; z-index: 4; }

.fotoimport h1 { font-size: 20px; margin: 0 0 4px; }
.fotoimport h2 { font-size: 17px; margin: 0 0 10px; }
.fotoimport h2.losse-kop { margin-top: 14px; }
.fotoimport p.uitleg { color: var(--muted); margin: 0 0 12px; }
.fotoimport .kaart {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; margin: 0 0 14px;
}
.fotoimport label { display: block; margin: 0 0 10px; font-weight: 600; }
.fotoimport label.smal { max-width: 280px; }
.fotoimport label input, .fotoimport label select { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
.fotoimport :is(input[type="text"], input[type="number"], input[type="file"], select, textarea) {
  padding: 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: inherit; max-width: 100%;
}



.fotoimport button:not(.button):not(.icon-button) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; min-height: 44px; border: 0; border-radius: 8px;
  background: var(--blue-fill); color: var(--on-accent); font: inherit; font-weight: 600;
  cursor: pointer; margin: 0 6px 6px 0;
}
.fotoimport button.tweede:not(.button):not(.icon-button) { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.fotoimport button.klein:not(.button):not(.icon-button) { padding: 4px 10px; min-height: 32px; font-size: 13px; margin: 0; }
.fotoimport button.losse-knop { margin-top: 12px; }
.fotoimport .velden { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.fotoimport #melding { padding: 10px 12px; border-radius: 8px; background: var(--blue-soft); color: var(--ink); margin: 0 0 14px; }


.fotoimport #voortgang { margin: 0 0 14px; }
.fotoimport #voortgang .spoor {
  position: relative; height: 4px; margin: 14px 17px 0;
  background: var(--line); border-radius: 2px;
}
.fotoimport #voortgangVulling {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: var(--blue-fill); border-radius: 2px; transition: width .25s;
}
.fotoimport #voortgangStappen {
  list-style: none; display: flex; justify-content: space-between;
  padding: 0; margin: -19px 0 24px;
}
.fotoimport #voortgangStappen li { flex: 0 0 auto; text-align: center; width: 34px; position: relative; }
.fotoimport #voortgangStappen button.bolletje {
  width: 34px; height: 34px; min-height: 34px; padding: 0; margin: 0;
  border-radius: 50%; border: 2px solid var(--line);
  background: var(--paper); color: var(--muted); font-weight: 700;
}
.fotoimport #voortgangStappen li.klaar button.bolletje { background: var(--blue-fill); border-color: var(--blue-fill); color: var(--on-accent); }
.fotoimport #voortgangStappen li.actief button.bolletje { border-color: var(--blue-fill); color: var(--ink); box-shadow: 0 0 0 3px var(--blue-soft); }
.fotoimport #voortgangStappen li.wacht button.bolletje { cursor: default; }


.fotoimport #voortgangStappen .bijschrift {
  position: absolute; top: 37px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--muted); width: max-content; max-width: 76px;
}
.fotoimport #voortgangStappen li:first-child .bijschrift { left: 0; transform: none; text-align: left; }
.fotoimport #voortgangStappen li:last-child .bijschrift { left: auto; right: 0; transform: none; text-align: right; }
.fotoimport #voortgangStappen li.actief .bijschrift { color: var(--ink); font-weight: 600; }




.fotoimport #stapknoppen {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); border-top: 1px solid var(--line);
}
.fotoimport #stapknoppen .midden {
  flex: 1 1 auto; align-self: center; text-align: center; font-size: 13px;
  color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fotoimport #stapknoppen button { margin: 0; min-width: 108px; }


.fotoimport #pijplijnbalk { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 0 0 12px; }
.fotoimport #pijplijnVulling { height: 100%; width: 0; background: var(--blue-fill); border-radius: 4px; transition: width .3s; }

.fotoimport #stappen { list-style: none; padding: 0; margin: 0; }
.fotoimport #stappen li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fotoimport .stap-stand { display: block; color: var(--muted); font-size: 13px; }
.fotoimport .stap-stand.stap-klaar { color: var(--good); }
.fotoimport #meldingen { list-style: none; padding: 0; margin: 0; font-size: 14px; max-height: 40vh; overflow-y: auto; }
.fotoimport #meldingen li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.fotoimport #meldingen li.hard { color: var(--bad); font-weight: 600; }
.fotoimport #meldingen li.zacht { color: var(--orange-dark); }
.fotoimport canvas.bron {
  max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); touch-action: none; cursor: crosshair; display: block; margin: 0 auto;
}




.fotoimport canvas.bron.ingezoomd { cursor: grab; }
.fotoimport canvas.bron.ingezoomd:active { cursor: grabbing; }
.fotoimport .foto { margin: 12px 0 0; }
.fotoimport .hoekstand { font-size: 13px; color: var(--muted); margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fotoimport .hoekstand .stand { flex: 1 1 100%; }
.fotoimport .zoomknoppen { display: inline-flex; gap: 4px; }
.fotoimport .zoomknoppen button { min-width: 36px; }
.fotoimport .hoekstand.klaar .stand { color: var(--good); }
.fotoimport #loep {
  position: fixed; right: 12px; top: 12px; z-index: 120;
  border: 2px solid var(--blue); border-radius: 8px; background: var(--paper);
  image-rendering: pixelated; box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.fotoimport canvas.uitsnede {
  border: 1px solid var(--line); border-radius: 6px; display: block; margin: 6px 0;
  image-rendering: pixelated; max-width: 100%;
}
.fotoimport label.inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 14px; }
.fotoimport label.inline input { display: inline-block; width: auto; margin: 0; }
.fotoimport textarea#json { width: 100%; min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.fotoimport details.kaart > summary { cursor: pointer; font-weight: 600; }
.fotoimport details.kaart[open] > summary { margin-bottom: 10px; }


.fotoimport .nakijkstand { font-weight: 600; margin: 0 0 10px; }
.fotoimport #nakijklijst { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.fotoimport #nakijklijst li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fotoimport #nakijklijst .telling { flex: 0 0 auto; min-width: 2.2em; font-weight: 700; text-align: right; }
.fotoimport #nakijklijst li.hard .telling { color: var(--bad); }
.fotoimport #nakijklijst li.zacht .telling { color: var(--orange-dark); }
.fotoimport #nakijklijst li.goed .telling { color: var(--good); }



.fotoimport .meldrij {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.fotoimport .meldrij .uitleg { flex: 1 1 220px; margin: 0; font-size: 13px; }




.fotoimport .meldvenster {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}
.fotoimport .meldkaart {
  width: min(520px, 100%); max-height: 100%; overflow-y: auto;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.fotoimport .meldkaart h2 { margin: 0 0 8px; }
.fotoimport .meldkaart textarea { width: 100%; min-height: 110px; }



.fotoimport .meldkaart label[hidden] { display: none; }
.fotoimport .meldkaart label .uitleg {
  display: block; margin-top: 4px; font-weight: 400; font-size: 13px; color: var(--muted);
}
.fotoimport .meldknoppen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }









.verbeteren { display: grid; gap: 10px; }
.verbeter-balk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.verbeter-balk #verbeter-zoomstand { min-width: 3.4em; text-align: center; font-size: 13px; color: var(--muted); }
.verbeter-werkvlak { display: grid; gap: 12px; align-items: start; }
.viewport-shell { position: relative; min-width: 0; }
#verbeter-viewport { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.verbeter-zijkant { display: grid; gap: 10px; min-width: 0; }
.verbeter-voortgang { margin: 0; font-size: 14px; font-weight: 600; }
.verbeter-spoor { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
#verbeter-spoorvulling { height: 100%; width: 0; background: var(--blue-fill); transition: width .25s; }
.verbeter-kaart {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  display: grid; gap: 8px;
}
.verbeter-kaart .verbeter-kaarttitel { margin: 0; font-size: 15px; font-weight: 700; }
.verbeter-kaart .verbeter-uitleg { margin: 0; font-size: 13.5px; color: var(--muted); }
.verbeter-kaart .verbeter-keuze {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--chip); color: var(--ink); font: inherit; cursor: pointer; text-align: left;
}
.verbeter-kaart .verbeter-keuze[aria-pressed="true"],
.verbeter-kaart .verbeter-keuze[aria-checked="true"] {
  background: var(--blue-soft); border-color: var(--blue); font-weight: 600;
}
.verbeter-keuzes { display: flex; flex-wrap: wrap; gap: 6px; }
.verbeter-clueveld { width: 100%; font-size: 16px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.verbeter-waarschuwing { margin: 0; font-size: 13.5px; color: var(--orange-dark); }
.verbeter-navigatie { display: flex; gap: 8px; align-items: center; }
.verbeter-navigatie .button { flex: 1 1 auto; }
#verbeter-alles { font-size: 14px; }
#verbeter-alles summary { cursor: pointer; font-weight: 600; }
#verbeter-cluelijst { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
#verbeter-cluelijst li { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
#verbeter-cluelijst .verbeter-clueveld { flex: 1 1 180px; }




.verbeteren .crossword-cell.verbeter-onzeker { background: var(--warm-bg); }
.verbeteren .crossword-cell.verbeter-kruising { box-shadow: inset 0 -4px 0 var(--bad); }
.verbeteren .crossword-cell.verbeter-onthuld::after {
  content: ''; position: absolute; top: 2px; right: 2px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--muted);
}
.verbeteren .crossword-cell.verbeter-doel { outline: 3px solid var(--blue); outline-offset: -3px; z-index: 2; }


@media (min-width: 861px) {
  .verbeter-werkvlak { grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; }
  .verbeter-zijkant { position: sticky; top: 0; max-height: 100%; overflow: auto; }
  #verbeter-viewport { height: min(70vh, 620px); }
}

@media (max-width: 860px) {
  .verbeter-werkvlak { grid-template-columns: minmax(0, 1fr); }
  #verbeter-viewport { height: 46vh; min-height: 200px; }
}


@media (max-width: 600px) {
  .verbeter-zijkant {
    position: sticky; bottom: 0; z-index: 2; background: var(--paper);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .12);
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  }
  #verbeter-viewport { height: calc(52vh - var(--fi-toetsenbord, 0px)); min-height: 160px; }



  body.fotoimport-pagina .verbeter-zijkant { bottom: 74px; }
  .verbeter-balk { overflow-x: auto; flex-wrap: nowrap; }
  .fotoimport #voortgangStappen .bijschrift { visibility: hidden; }
  .fotoimport #voortgangStappen li.actief .bijschrift { visibility: visible; }
  .fotoimport #stapknoppen button { min-width: 0; }
}












.potjes { display: grid; gap: 10px; margin: 0; }
.potjes-groep { display: grid; gap: 6px; }

.potjes-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: stretch; }
.potjes-verlaat { width: 40px; height: auto; min-height: 44px; border-radius: 10px; color: var(--muted); }
.potjes-verlaat:hover, .potjes-verlaat:focus-visible { color: var(--ink); }
.potjes-leeg { margin: 0; font-size: 14px; }
.potjes-groep h3 { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.potjes-lijst { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.potjes-regel {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.potjes-regel:hover, .potjes-regel:focus-visible { border-color: var(--game-accent-ink); background: var(--surface-hover); }



.potjes-stip { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.potjes-stip[data-fase="beurt"] { background: var(--game-fill); }
.potjes-stip[data-fase="klaar"] { background: transparent; border: 2px solid var(--line); }
.potjes-tekst { display: grid; gap: 2px; min-width: 0; }
.potjes-tekst strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.potjes-tekst .muted { font-size: 12.5px; }
.potjes-rest { font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.potjes-groep[data-groep="beurt"] .potjes-rest { color: var(--game-accent-ink); font-weight: 700; }



.potjes-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--blue-fill); color: var(--on-accent);
  font-size: 11.5px; font-weight: 760; line-height: 1;
}
.site-menu-group-title .potjes-badge { margin-left: auto; }
