/* Modern responsive home. The previous menu remains available in backups/. */
.start-menu.home-v2,
.start-menu.home-v2 * { box-sizing: border-box; }

.start-menu.home-v2 {
  --home-green: #218b37;
  --home-green-dark: #146c2a;
  --home-text: #17202b;
  --home-muted: #5f6873;
  --home-line: #e7ebea;
  --home-panel: #ffffff;
  --home-soft: #f7faf8;
  display: block !important;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0 0 calc(82px + env(safe-area-inset-bottom));
  overflow-x: clip;
  color: var(--home-text);
  background: #f7f8f8;
  font-family: Arial, Helvetica, sans-serif;
}

.start-menu.home-v2[hidden] { display: none !important; }

.home-v2-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 32px, 1700px);
  min-height: 88px;
  margin: 0 auto;
  padding: 10px 14px;
}

.home-v2-profile,
.home-v2-wallet,
.home-v2-profile > div { display: flex; align-items: center; }
.home-v2-profile { gap: 12px; min-width: 0; }
.home-v2-profile > div { align-items: flex-start; flex-direction: column; min-width: 0; }
.home-v2-profile strong { max-width: 250px; overflow: hidden; font-size: clamp(18px, 2vw, 27px); text-overflow: ellipsis; white-space: nowrap; }
.home-v2-profile span { color: #287c30; font-size: clamp(12px, 1.25vw, 16px); }
.home-v2-profile i { color: #f3ae00; font-style: normal; }

.home-v2-avatar-button { position: relative; flex: 0 0 auto; width: 64px; height: 64px; padding: 0; border: 3px solid #61a74b; border-radius: 50%; background: #eef6eb; box-shadow: 0 3px 12px #19251a24; cursor: pointer; }
.home-v2-header-avatar { position: absolute; inset: 0; display: flex !important; box-sizing: border-box; align-items: center !important; justify-content: center !important; width: auto !important; height: auto !important; padding: 2px 0 0 !important; overflow: hidden; border-radius: inherit; color: #1f6e2f; font: 800 24px/1 Arial, sans-serif !important; text-align: center; background: linear-gradient(145deg, #fff, #d8edd5); }
.home-v2-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-v2-avatar-button b { position: absolute; right: -5px; bottom: -3px; display: grid; width: 25px; height: 25px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #267c35; font-size: 12px; }

.home-v2-wallet { justify-content: flex-end; gap: 12px; }
.wallet-pill { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 13px; border: 1px solid #edf0ef; border-radius: 28px; background: #fff; box-shadow: 0 4px 13px #1e2d2420; }
.wallet-pill i { display: grid; width: 34px; height: 34px; place-items: center; border: 4px solid #ffb400; border-radius: 50%; color: #ffb400; font-style: normal; background: #ffd858; box-shadow: inset 0 0 0 2px #fff5a6; }
.wallet-pill.diamond i { border: 0; color: #11b8e7; background: transparent; font-size: 32px; }
.wallet-pill strong { font-size: clamp(15px, 1.7vw, 22px); }
.wallet-pill b { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #fff; background: #62bf43; font-size: 20px; }
.round-tool { display: grid; flex: 0 0 auto; width: 50px; height: 50px; place-items: center; border: 0; border-radius: 50%; color: #5b5f62; background: #fff; box-shadow: 0 4px 14px #1c292221; font-size: 25px; cursor: pointer; }

.home-v2 .start-menu-stage {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
  width: min(100% - 32px, 1700px) !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.home-v2 .brand-showcase {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: clamp(260px, 34vw, 430px) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: #0c2e1d !important;
  box-shadow: 0 10px 30px #19231d24 !important;
}
.home-v2 .brand-showcase > img { display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; object-fit: cover !important; object-position: 50% 47% !important; filter: brightness(.68) saturate(.9) !important; transform: none !important; }
.home-v2-hero-brand { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; text-align: center; text-transform: uppercase; text-shadow: 0 3px 8px #000; pointer-events: none; }
.home-v2-hero-brand span { color: #8ee65e; font-size: clamp(18px, 2vw, 30px); font-weight: 800; }
.home-v2-hero-brand strong { font-size: clamp(42px, 6vw, 92px); line-height: .95; letter-spacing: 2px; }
.home-v2-hero-brand b { color: #91e264; font-size: clamp(19px, 2.2vw, 34px); letter-spacing: 9px; }
.home-v2-hero-brand i { color: #7bda4d; font-size: 35px; font-style: normal; }

.home-v2 .start-menu-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.home-v2 .start-heading { display: none !important; }

.home-v2 .online-entry { order: 1; }
.home-v2 .home-options-section { order: 2; }
.home-v2 .variant-group { order: 3; }
.home-v2 .level-group { order: 4; }
.home-v2 #menuError { order: 5; }
.home-v2 #startGameButton { order: 6; }

.home-v2 .online-entry.competition-entry {
  display: grid !important;
  grid-template-columns: minmax(190px, .8fr) minmax(300px, 1.8fr) minmax(190px, .8fr);
  grid-template-areas: "score title goal" "score actions goal" "profile actions goal";
  gap: 10px 22px !important;
  min-height: 250px !important;
  padding: 18px 30px !important;
  border: 1px solid #cfe6c9 !important;
  border-radius: 24px !important;
  color: var(--home-text) !important;
  background: linear-gradient(180deg, #fff, #f9fbfa) !important;
  box-shadow: 0 7px 22px #223a2520 !important;
}
.home-v2 .competition-title { grid-area: title; align-self: end; margin: 0 !important; color: #21712d !important; font-size: clamp(27px, 3.2vw, 52px) !important; line-height: 1 !important; text-align: center; text-transform: uppercase; }
.home-v2 .competition-title::before { content: "Vandaag is jouw kans!"; display: block; margin-bottom: 4px; font-size: 14px; }
.home-v2 .competition-copy { display: none !important; }
.home-v2 .home-highscore { grid-area: score; display: grid !important; grid-template-columns: 48px 1fr; align-content: center; gap: 2px 12px; min-height: 124px; padding: 14px !important; border: 0 !important; border-radius: 15px; background: #fff !important; box-shadow: 0 5px 15px #1d282020; }
.home-v2 .home-trophy { grid-row: 1 / 4; align-self: center; color: #54af34 !important; }
.home-v2 .home-trophy svg { width: 42px !important; height: 42px !important; fill: currentColor; }
.home-v2 .winner-label { color: #27852f; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.home-v2 .home-highscore strong { font-size: clamp(15px, 1.4vw, 20px); }
.home-v2 .home-highscore small { color: #27852f; }

.home-v2 .home-player-section { grid-area: goal; display: grid !important; grid-template-columns: 52px 1fr; align-content: center; gap: 8px 12px; min-height: 124px; padding: 14px !important; border: 0 !important; border-radius: 15px; background: #fff !important; box-shadow: 0 5px 15px #1d282020; }
.home-v2 .home-player-section h2 { grid-column: 1 / -1; margin: 0 !important; color: #27852f; font-size: 13px !important; text-transform: uppercase; }
.home-v2 .avatar-preview { grid-column: 1; grid-row: 2 / 4; display: grid !important; width: 52px !important; height: 52px !important; place-items: center; overflow: hidden; border: 2px solid #61ac47 !important; border-radius: 50% !important; color: #1f6f2c; background: #ecf8e9 !important; }
.home-v2 .avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.home-v2 .menu-field { grid-column: 2; margin: 0 !important; }
.home-v2 .menu-field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.home-v2 #menuPlayerName { width: 100% !important; height: 39px !important; padding: 8px 10px !important; border: 1px solid #dce3de !important; border-radius: 9px !important; color: var(--home-text) !important; background: #f7faf8 !important; font: 700 16px Arial, sans-serif !important; }
.home-v2 .avatar-upload-field { grid-column: 2; display: flex !important; align-items: center; gap: 8px; width: max-content !important; margin: 0 !important; padding: 0 !important; border: 0 !important; color: #27752f !important; background: transparent !important; cursor: pointer; }
.home-v2 .photo-button-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.home-v2 .avatar-upload-field input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.home-v2 .online-entry-actions { grid-area: actions; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px !important; align-self: end; }
.home-v2 .premium-action { display: flex !important; align-items: center; justify-content: center; gap: 9px; min-width: 0 !important; min-height: 54px !important; padding: 8px 12px !important; border: 0 !important; border-radius: 14px !important; color: #fff !important; background: linear-gradient(135deg, #2a9e45, #177b30) !important; box-shadow: 0 5px 12px #1d783636 !important; }
.home-v2 .premium-action:nth-child(1) { background: linear-gradient(135deg, #4b96ff, #1269ed) !important; }
.home-v2 .premium-action:nth-child(2) { background: linear-gradient(135deg, #28c8a8, #049d83) !important; }
.home-v2 .premium-action:nth-child(3) { background: linear-gradient(135deg, #ff9f2c, #ff6b00) !important; }
.home-v2 .premium-action-icon { display: block !important; flex: 0 0 27px; }
.home-v2 .premium-action-icon svg { width: 27px !important; height: 27px !important; fill: none; stroke: currentColor; stroke-width: 1.8; }
.home-v2 .premium-action-text { overflow: hidden; font-size: clamp(13px, 1.25vw, 17px) !important; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.home-v2 .premium-action small { display: none !important; }

.home-v2 .home-options-section { padding: 0 !important; border: 0 !important; background: transparent !important; }
.home-v2 .home-options-section > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.home-v2 .home-action-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px !important; }
.home-v2 .home-action-card { display: flex !important; align-items: center; justify-content: flex-start; gap: 15px; min-width: 0 !important; min-height: 100px !important; padding: 16px 20px !important; border: 0 !important; border-radius: 14px !important; color: #fff !important; background: linear-gradient(135deg, #9b66ef, #6535d8) !important; box-shadow: 0 7px 16px #42229b38 !important; text-align: left !important; }
.home-v2 .home-action-card:nth-child(2) { background: linear-gradient(135deg, #21c7a8, #009b7e) !important; }
.home-v2 .home-action-card:nth-child(3) { color: #2b2619 !important; background: linear-gradient(135deg, #ffd978, #ffb92f) !important; }
.home-v2 .home-action-icon { display: block !important; flex: 0 0 58px; }
.home-v2 .home-action-icon svg { width: 58px !important; height: 58px !important; fill: none; stroke: currentColor; stroke-width: 1.55; filter: drop-shadow(0 2px 2px #0003); }
.home-v2 .home-action-card > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.home-v2 .home-action-card strong { font-size: clamp(17px, 1.7vw, 23px) !important; }
.home-v2 .home-action-card small { margin-top: 4px; font-size: clamp(12px, 1.1vw, 15px) !important; line-height: 1.25; }

.home-v2 .menu-group { position: relative; display: grid !important; gap: 12px !important; margin: 0 !important; padding: 30px 20px 16px !important; border: 1px solid var(--home-line) !important; border-radius: 17px !important; background: #fff !important; box-shadow: 0 4px 14px #1a2a2120 !important; }
.home-v2 .variant-group { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.home-v2 .level-group { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.home-v2 .menu-group legend { position: absolute !important; top: 7px !important; left: 50% !important; width: auto !important; margin: 0 !important; padding: 0 !important; color: #28752f !important; font: 800 14px Arial, sans-serif !important; text-transform: uppercase; transform: translateX(-50%); }
.home-v2 .menu-choice { position: relative; display: flex !important; align-items: center; justify-content: center; gap: 10px; min-width: 0 !important; min-height: 60px !important; margin: 0 !important; padding: 10px 14px !important; overflow: hidden; border: 1px solid #e5e9e7 !important; border-radius: 30px !important; color: var(--home-text) !important; background: #fff !important; box-shadow: 0 3px 8px #14201716 !important; text-align: center; cursor: pointer; }
.home-v2 .menu-choice:has(input:checked) { border-color: #75b857 !important; color: #176c2a !important; background: #f2faef !important; box-shadow: 0 3px 10px #2b7c2b25 !important; }
.home-v2 .menu-choice input { position: absolute !important; opacity: 0 !important; pointer-events: none; }
.home-v2 .menu-choice span:last-child { display: flex; min-width: 0; flex-direction: column; }
.home-v2 .menu-choice strong { overflow: hidden; font-size: clamp(13px, 1.25vw, 17px) !important; text-overflow: ellipsis; white-space: nowrap; }
.home-v2 .menu-choice small { display: none !important; }
.home-v2 .level-choice-icon { display: block !important; width: 25px !important; height: 25px !important; border: 0 !important; background: none !important; }
.home-v2 .level-choice-icon::before { display: block; font-size: 24px; line-height: 1; }
.home-v2 .level-choice-icon-beginner::before { content: "♣"; color: #63b934; }
.home-v2 .level-choice-icon-normal::before { content: "♠"; color: #34383d; }
.home-v2 .level-choice-icon-expert::before { content: "♦"; color: #c9413b; }

.home-v2 #startGameButton { width: min(100%, 520px) !important; min-height: 64px !important; margin: 4px auto 0 !important; padding: 12px 28px !important; border: 0 !important; border-radius: 32px !important; color: #fff !important; background: linear-gradient(135deg, #42b94b, #16812d) !important; box-shadow: 0 8px 20px #17732e42 !important; font: 800 clamp(19px, 2vw, 27px) Arial, sans-serif !important; text-transform: none !important; }

.home-v2-bottom-nav {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(calc(100% - 36px), 1660px);
  min-height: 66px;
  margin: auto;
  padding: 6px;
  border: 1px solid #e7ebe8;
  border-radius: 34px;
  background: #fffc;
  box-shadow: 0 8px 25px #1b2a2224;
  backdrop-filter: blur(14px);
}
.home-v2-bottom-nav button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; border: 0; border-radius: 25px; color: #5b6062; background: transparent; cursor: pointer; }
.home-v2-bottom-nav button span { font-size: 25px; }
.home-v2-bottom-nav button small { font-size: 12px; }
.home-v2-bottom-nav .home-nav-main { align-self: center; min-height: 54px; color: #fff; background: linear-gradient(135deg, #62c84a, #16812d); box-shadow: 0 5px 14px #207d3647; }

@media (max-width: 767px) {
  .start-menu.home-v2 { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .home-v2-header { width: calc(100% - 24px); min-height: 76px; padding: 8px 0; }
  .home-v2-avatar-button { width: 54px; height: 54px; }
  .home-v2-profile strong { max-width: 120px; font-size: 18px; }
  .home-v2-profile span { max-width: 120px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .home-v2-wallet { gap: 6px; }
  .wallet-pill { gap: 6px; min-height: 42px; padding: 5px 8px; }
  .wallet-pill i { width: 26px; height: 26px; border-width: 3px; }
  .wallet-pill b { display: none; }
  .wallet-pill strong { font-size: 13px; }
  .wallet-pill.diamond { display: none; }
  .round-tool { width: 42px; height: 42px; font-size: 20px; }
  .home-v2 .start-menu-stage { width: calc(100% - 24px) !important; gap: 12px; }
  .home-v2 .brand-showcase { height: clamp(260px, 94vw, 430px) !important; border-radius: 20px !important; }
  .home-v2 .brand-showcase > img { object-position: 50% 40% !important; }
  .home-v2-hero-brand { justify-content: flex-end; padding-bottom: 20px; }
  .home-v2-hero-brand strong { font-size: clamp(40px, 12vw, 58px); }
  .home-v2 .online-entry.competition-entry { grid-template-columns: 1fr 1fr !important; grid-template-areas: "title title" "score profile" "actions actions" !important; min-height: 0 !important; padding: 16px !important; border-radius: 20px !important; }
  .home-v2 .competition-title { align-self: center; font-size: clamp(29px, 9vw, 42px) !important; }
  .home-v2 .home-highscore,
  .home-v2 .home-player-section { min-height: 120px; }
  .home-v2 .online-entry-actions { gap: 8px !important; }
  .home-v2 .premium-action { flex-direction: column; gap: 3px; min-height: 74px !important; padding: 7px 4px !important; }
  .home-v2 .premium-action-text { max-width: 100%; font-size: 12px !important; }
  .home-v2 .home-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .home-v2 .home-action-card { min-height: 98px !important; padding: 13px !important; }
  .home-v2 .home-action-card:nth-child(3) { grid-column: 1 / -1; }
  .home-v2 .home-action-icon { flex-basis: 42px; }
  .home-v2 .home-action-icon svg { width: 42px !important; height: 42px !important; }
  .home-v2 .home-action-card strong { font-size: 16px !important; }
  .home-v2 .home-action-card small { font-size: 12px !important; }
  .home-v2 .menu-group { padding: 28px 8px 10px !important; gap: 7px !important; }
  .home-v2 .menu-choice { min-height: 52px !important; padding: 8px 6px !important; }
  .home-v2 .menu-choice strong { font-size: 12px !important; white-space: normal; }
  .home-v2 .level-choice-icon { width: 20px !important; height: 20px !important; }
  .home-v2 .level-choice-icon::before { font-size: 19px; }
}

/* Modern responsive menu: isolated final layer. */
#startMenu.home-v2 {
  --v2-green: #238b38;
  --v2-green-dark: #146c2d;
  --v2-text: #17231b;
  --v2-muted: #657068;
  font-family: Arial, Helvetica, sans-serif !important;
  color: var(--v2-text) !important;
}
#startMenu.home-v2 * { box-sizing: border-box; }
#startMenu.home-v2 .start-heading { display: none !important; }
#startMenu.home-v2 .start-menu-stage {
  display: block !important;
  padding-bottom: 18px !important;
}
#startMenu.home-v2 .brand-showcase {
  overflow: hidden !important;
  border-radius: 22px !important;
  box-shadow: 0 8px 26px rgba(12, 36, 22, .18) !important;
}
#startMenu.home-v2 .brand-showcase > img { object-position: 50% 44% !important; filter: brightness(.72) saturate(.92); }
#startMenu.home-v2 .home-v2-hero-brand {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  text-transform: uppercase;
  text-shadow: 0 3px 12px #000;
  pointer-events: none;
}
#startMenu.home-v2 .home-v2-hero-brand span { color: #8ee269; font-size: clamp(18px, 2vw, 30px); font-weight: 800; }
#startMenu.home-v2 .home-v2-hero-brand strong { font-size: clamp(42px, 6vw, 84px); line-height: .95; letter-spacing: 1px; }
#startMenu.home-v2 .home-v2-hero-brand b { color: #8ee269; font-size: clamp(20px, 2.5vw, 36px); letter-spacing: 8px; }
#startMenu.home-v2 .home-v2-hero-brand i { color: #65c83f; font-size: 24px; font-style: normal; }

#startMenu.home-v2 .start-menu-panel {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-top: 16px !important;
}
#startMenu.home-v2 .online-entry.competition-entry {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(200px, .8fr) minmax(320px, 1.4fr) minmax(240px, 1fr) !important;
  grid-template-areas: "score copy profile" "score actions profile" !important;
  gap: 14px !important;
  min-height: 230px !important;
  padding: 22px !important;
  border: 1px solid #cfe5c8 !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 7px 24px rgba(24, 55, 34, .10) !important;
}
#startMenu.home-v2 .competition-title { display: none !important; }
#startMenu.home-v2 .competition-copy { grid-area: copy !important; text-align: center; align-self: center; }
#startMenu.home-v2 .competition-copy,
#startMenu.home-v2 .home-highscore,
#startMenu.home-v2 .home-player-section,
#startMenu.home-v2 .online-entry-actions { position: static !important; inset: auto !important; width: auto !important; height: auto !important; transform: none !important; }
#startMenu.home-v2 .competition-copy .online-kicker { display: block; color: var(--v2-green-dark); font-weight: 800; text-transform: uppercase; }
#startMenu.home-v2 .competition-copy strong { display: block; color: var(--v2-green-dark); font-size: clamp(28px, 4vw, 52px); line-height: 1; text-transform: uppercase; }
#startMenu.home-v2 .competition-copy p { margin: 8px 0 0; color: var(--v2-muted); }
#startMenu.home-v2 .home-highscore { grid-area: score !important; align-self: center; min-height: 142px; padding: 18px !important; border-radius: 16px !important; background: #fff !important; box-shadow: 0 4px 15px rgba(0,0,0,.12) !important; }
#startMenu.home-v2 .home-highscore * { color: #24442d !important; }
#startMenu.home-v2 .home-highscore .home-trophy { color: #55b738 !important; }
#startMenu.home-v2 .home-player-section { grid-area: profile !important; align-self: center; min-height: 142px !important; border: 0 !important; border-radius: 16px !important; background: #fff !important; box-shadow: 0 4px 15px rgba(0,0,0,.12) !important; }
#startMenu.home-v2 .online-entry-actions { grid-area: actions !important; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
#startMenu.home-v2 .premium-action { min-width: 0 !important; min-height: 68px !important; padding: 9px !important; border: 0 !important; border-radius: 14px !important; background: linear-gradient(135deg, #458cff, #1764e7) !important; color: #fff !important; }
#startMenu.home-v2 .premium-action:nth-child(2) { background: linear-gradient(135deg, #36c9a8, #119873) !important; }
#startMenu.home-v2 .premium-action:nth-child(3) { background: linear-gradient(135deg, #ffad39, #f26b00) !important; }
#startMenu.home-v2 .premium-action-icon { width: 28px !important; height: 28px !important; }

#startMenu.home-v2 .home-options-section { grid-column: 1 / -1 !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
#startMenu.home-v2 .home-options-section > h2 { display: none !important; }
#startMenu.home-v2 .home-action-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; }
#startMenu.home-v2 .home-action-card {
  display: grid !important;
  grid-template-columns: 62px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 110px !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 16px !important;
  color: #fff !important;
  text-align: left !important;
  background: linear-gradient(135deg, #935cf0, #6734d5) !important;
  box-shadow: 0 6px 15px rgba(53, 40, 93, .2) !important;
}
#startMenu.home-v2 .home-action-card:nth-child(2) { background: linear-gradient(135deg, #28cfae, #049778) !important; }
#startMenu.home-v2 .home-action-card:nth-child(3) { color: #372700 !important; background: linear-gradient(135deg, #ffd66f, #ffb82e) !important; }
#startMenu.home-v2 .home-action-icon { width: 50px !important; height: 50px !important; color: currentColor !important; }
#startMenu.home-v2 .home-action-card strong { font-size: 20px !important; }
#startMenu.home-v2 .home-action-card small { display: block !important; margin-top: 4px; font-size: 14px !important; line-height: 1.3; }

#startMenu.home-v2 .menu-group { margin: 0 !important; padding: 20px !important; border: 1px solid #e3e8e4 !important; border-radius: 18px !important; background: #fff !important; }
#startMenu.home-v2 .variant-group { grid-column: 1 / 7 !important; }
#startMenu.home-v2 .level-group { grid-column: 7 / -1 !important; }
#startMenu.home-v2 .menu-group legend { float: none !important; width: 100% !important; margin: 0 0 12px !important; color: var(--v2-green-dark) !important; font-size: 16px !important; font-weight: 800 !important; text-align: center !important; text-transform: uppercase; }
#startMenu.home-v2 .menu-choice { display: inline-flex !important; vertical-align: top; width: calc(50% - 7px) !important; min-height: 68px !important; margin: 0 10px 0 0 !important; padding: 12px !important; border: 1px solid #e2e7e3 !important; border-radius: 999px !important; background: #fff !important; }
#startMenu.home-v2 .menu-choice:last-child { margin-right: 0 !important; }
#startMenu.home-v2 .level-group .menu-choice { width: calc(33.333% - 8px) !important; margin-right: 7px !important; }
#startMenu.home-v2 .menu-choice:has(input:checked) { border-color: #86c96d !important; background: #f2faef !important; box-shadow: 0 3px 10px rgba(49,139,49,.15) !important; }
#startMenu.home-v2 .menu-choice strong { font-size: 14px !important; }
#startMenu.home-v2 .menu-choice small { display: none !important; }
#startMenu.home-v2 .level-choice-icon::before { font-family: Arial, sans-serif !important; font-size: 28px !important; }
#startMenu.home-v2 .level-choice-icon-beginner::before { content: "\2663" !important; }
#startMenu.home-v2 .level-choice-icon-normal::before { content: "\2660" !important; }
#startMenu.home-v2 .level-choice-icon-expert::before { content: "\2666" !important; color: #c9413b !important; }
#startMenu.home-v2 button#startGameButton { grid-column: 4 / 10 !important; width: 100% !important; min-height: 68px !important; padding: 16px 24px !important; border-radius: 18px !important; font-size: 23px !important; line-height: 1.2 !important; background: linear-gradient(180deg, #52c552, #238b38) !important; box-shadow: 0 8px 18px rgba(24,128,49,.25) !important; }

/* Ruimere bediening voor browser en grote schermen. */
@media (min-width: 768px) {
  #startMenu.home-v2 .premium-action {
    min-height: 82px !important;
    gap: 11px !important;
    padding: 12px 14px !important;
  }
  #startMenu.home-v2 .premium-action-icon,
  #startMenu.home-v2 .premium-action-icon svg {
    width: 38px !important;
    height: 38px !important;
  }
  #startMenu.home-v2 .premium-action-text {
    font-size: clamp(17px, 1.35vw, 21px) !important;
  }
  #startMenu.home-v2 .home-action-card {
    grid-template-columns: 74px minmax(0, 1fr) !important;
    min-height: 128px !important;
    gap: 14px !important;
    padding: 21px !important;
  }
  #startMenu.home-v2 .home-action-icon,
  #startMenu.home-v2 .home-action-icon svg {
    width: 66px !important;
    height: 66px !important;
  }
  #startMenu.home-v2 .home-action-card strong {
    font-size: clamp(23px, 1.8vw, 29px) !important;
  }
  #startMenu.home-v2 .home-action-card small {
    font-size: clamp(15px, 1.05vw, 18px) !important;
  }
  #startMenu.home-v2 .menu-choice strong {
    font-size: 17px !important;
  }
  #startMenu.home-v2 .level-choice-icon::before {
    font-size: 34px !important;
  }
}

@media (max-width: 900px) {
  #startMenu.home-v2 .online-entry.competition-entry { grid-template-columns: 1fr 1fr !important; grid-template-areas: "copy copy" "score profile" "actions actions" !important; }
  #startMenu.home-v2 .variant-group, #startMenu.home-v2 .level-group { grid-column: 1 / -1 !important; }
  #startMenu.home-v2 #startGameButton { grid-column: 2 / 12 !important; }
}

@media (max-width: 600px) {
  #startMenu.home-v2:not([hidden]) { padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  #startMenu.home-v2 .home-v2-header { min-height: 68px !important; padding: 8px 4px !important; }
  #startMenu.home-v2 .home-v2-wallet .wallet-pill { padding: 7px 9px !important; }
  #startMenu.home-v2 .wallet-pill strong { font-size: 13px !important; }
  #startMenu.home-v2 .round-tool { width: 38px !important; height: 38px !important; }
  #startMenu.home-v2 .brand-showcase { height: min(52vw, 230px) !important; border-radius: 16px !important; }
  #startMenu.home-v2 .home-v2-hero-brand strong { font-size: clamp(34px, 11vw, 54px); }
  #startMenu.home-v2 .start-menu-panel { gap: 10px !important; margin-top: 10px !important; }
  #startMenu.home-v2 .online-entry.competition-entry { grid-template-columns: 1fr !important; grid-template-areas: "copy" "score" "actions" "profile" !important; min-height: 0 !important; padding: 14px !important; }
  #startMenu.home-v2 .competition-copy strong { font-size: 32px; }
  #startMenu.home-v2 .competition-copy p { display: none; }
  #startMenu.home-v2 .home-highscore, #startMenu.home-v2 .home-player-section { min-height: 88px !important; }
  #startMenu.home-v2 .home-player-section { grid-template-columns: 48px 1fr auto !important; }
  #startMenu.home-v2 .home-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  #startMenu.home-v2 .home-action-card { grid-template-columns: 42px 1fr !important; min-height: 92px !important; padding: 13px !important; }
  #startMenu.home-v2 .home-action-card:last-child { grid-column: 1 / -1; }
  #startMenu.home-v2 .home-action-icon { width: 36px !important; height: 36px !important; }
  #startMenu.home-v2 .home-action-card strong { font-size: 16px !important; }
  #startMenu.home-v2 .home-action-card small { font-size: 12px !important; }
  #startMenu.home-v2 .menu-group { padding: 13px 10px !important; }
  #startMenu.home-v2 .menu-choice { min-height: 56px !important; padding: 8px !important; }
  #startMenu.home-v2 .menu-choice strong { font-size: 11px !important; line-height: 1.15 !important; }
  #startMenu.home-v2 .level-choice-icon::before { font-size: 21px !important; }
  #startMenu.home-v2 #startGameButton { grid-column: 1 / -1 !important; min-height: 60px !important; }
}

html body #startMenu.home-v2.start-menu:not([hidden]) > .start-menu-stage {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: min(calc(100% - 32px), 1700px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
}
html body #startMenu.home-v2.start-menu:not([hidden]) > .start-menu-stage > .start-menu-panel {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
html body #startMenu.home-v2.start-menu:not([hidden]) > .start-menu-stage > .brand-showcase {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: clamp(260px, 34vw, 430px) !important;
  max-height: 430px !important;
}

@media (max-width: 767px) {
  html body #startMenu.home-v2.start-menu:not([hidden]) > .start-menu-stage { width: calc(100% - 24px) !important; }
  html body #startMenu.home-v2.start-menu:not([hidden]) > .start-menu-stage > .brand-showcase { height: clamp(260px, 94vw, 430px) !important; }
}

@media (max-width: 440px) {
  .home-v2-profile > div { display: none; }
  .home-v2 .online-entry.competition-entry { grid-template-areas: "title title" "score score" "profile profile" "actions actions" !important; }
  .home-v2 .home-player-section { grid-template-columns: 48px 1fr; min-height: 90px; }
  .home-v2 .home-player-section h2 { display: none; }
  .home-v2 .avatar-preview { grid-row: 1 / 3; }
  .home-v2 .variant-group .menu-choice strong { font-size: 11px !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-v2 button,
  .home-v2 .menu-choice { transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
  .home-v2 button:hover,
  .home-v2 .menu-choice:hover { transform: translateY(-2px); filter: brightness(1.03); }
  .home-v2 button:active,
  .home-v2 .menu-choice:active { transform: translateY(0) scale(.985); }
}

.home-v2 button:focus-visible,
.home-v2 input:focus-visible,
.home-v2 .menu-choice:focus-within { outline: 3px solid #1769ff !important; outline-offset: 3px; }

.home-v2[data-home-theme="dark"] { --home-text: #f3f7f4; --home-muted: #b4c1b8; --home-line: #32423a; background: #0f1713; }
.home-v2[data-home-theme="dark"] .home-v2-header,
.home-v2[data-home-theme="dark"] .menu-group,
.home-v2[data-home-theme="dark"] .online-entry.competition-entry { background-color: #17221c !important; }
.home-v2[data-home-theme="dark"] .menu-choice,
.home-v2[data-home-theme="dark"] .home-highscore,
.home-v2[data-home-theme="dark"] .home-player-section { color: #f3f7f4 !important; background: #202e26 !important; }

/* Defeat legacy menu overrides without affecting the game surface. */
body:has(#startMenu.home-v2:not([hidden])) { margin: 0 !important; overflow-x: hidden !important; background: #f7f8f8 !important; }
#startMenu.home-v2:not([hidden]) { position: relative !important; inset: auto !important; display: block !important; width: 100% !important; height: auto !important; min-height: 100dvh !important; max-height: none !important; padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important; overflow: visible !important; border: 0 !important; background: #f7f8f8 !important; transform: none !important; }
#startMenu.home-v2 .home-v2-header { position: relative !important; inset: auto !important; width: min(100% - 32px, 1700px) !important; height: auto !important; min-height: 88px !important; margin: 0 auto !important; transform: none !important; }
#startMenu.home-v2 .start-menu-stage { position: relative !important; inset: auto !important; display: flex !important; width: min(100% - 32px, 1700px) !important; height: auto !important; max-height: none !important; margin: 0 auto !important; overflow: visible !important; transform: none !important; }
#startMenu.home-v2 .brand-showcase { position: relative !important; inset: auto !important; display: block !important; width: 100% !important; height: clamp(260px, 34vw, 430px) !important; max-height: 430px !important; margin: 0 !important; background: #0c2e1d !important; transform: none !important; }
#startMenu.home-v2 .brand-showcase::before,
#startMenu.home-v2 .brand-showcase::after { content: none !important; display: none !important; }
#startMenu.home-v2 .brand-showcase > img { position: static !important; inset: auto !important; display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; opacity: 1 !important; object-fit: cover !important; transform: none !important; }
#startMenu.home-v2 .start-menu-panel { position: relative !important; inset: auto !important; display: flex !important; width: 100% !important; height: auto !important; max-height: none !important; overflow: visible !important; transform: none !important; }
#startMenu.home-v2 .menu-group,
#startMenu.home-v2 .home-options-section,
#startMenu.home-v2 .online-entry { position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; max-height: none !important; transform: none !important; }
#startMenu.home-v2 .home-options-section { display: block !important; }
#startMenu.home-v2 .home-action-grid { position: static !important; width: 100% !important; height: auto !important; transform: none !important; }
#startMenu.home-v2 #startGameButton { position: relative !important; inset: auto !important; width: min(100%, 520px) !important; height: auto !important; min-height: 64px !important; opacity: 1 !important; transform: none !important; }
#startMenu.home-v2 .home-v2-bottom-nav { display: grid !important; }

@media (max-width: 767px) {
  #startMenu.home-v2 .home-v2-header,
  #startMenu.home-v2 .start-menu-stage { width: calc(100% - 24px) !important; }
  #startMenu.home-v2 .brand-showcase { height: clamp(260px, 94vw, 430px) !important; }
}

/* Must remain last: prevent historical menu sheets from changing the new component. */
#startMenu.home-v2 .start-menu-stage { display: block !important; }
html body #startMenu.home-v2.start-menu:not([hidden]) > .start-menu-stage > .start-menu-panel {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-top: 16px !important;
}
#startMenu.home-v2 .variant-group { grid-column: 1 / 7 !important; }
#startMenu.home-v2 .level-group { grid-column: 7 / -1 !important; }
#startMenu.home-v2 .home-options-section,
#startMenu.home-v2 .online-entry.competition-entry { grid-column: 1 / -1 !important; }
#startMenu.home-v2 .home-v2-hero-brand {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 0 24px 7% !important;
  pointer-events: none !important;
}
#startMenu.home-v2 .home-v2-hero-brand > :not(.home-v2-logo-image) { display: none !important; }
#startMenu.home-v2 .home-v2-logo-image {
  display: block !important;
  width: min(54%, 720px) !important;
  height: auto !important;
  max-height: 48% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.72)) !important;
}
#startMenu.home-v2 .brand-showcase > img {
  object-fit: cover !important;
  object-position: 50% 54% !important;
  filter: brightness(.78) saturate(.95) !important;
}
#startMenu.home-v2 button#startGameButton {
  grid-column: 4 / 10 !important;
  width: 100% !important;
  min-height: 68px !important;
  padding: 16px 24px !important;
  font-size: 23px !important;
}
@media (max-width: 900px) {
  #startMenu.home-v2 .variant-group,
  #startMenu.home-v2 .level-group { grid-column: 1 / -1 !important; }
  #startMenu.home-v2 button#startGameButton { grid-column: 2 / 12 !important; }
}
@media (max-width: 600px) {
  html body #startMenu.home-v2.start-menu:not([hidden]) > .start-menu-stage > .brand-showcase { height: min(74vw, 310px) !important; max-height: 310px !important; }
  #startMenu.home-v2 .brand-showcase > img { object-position: 50% 51% !important; }
  #startMenu.home-v2 .home-v2-hero-brand { padding: 0 12px 5% !important; }
  #startMenu.home-v2 .home-v2-logo-image { width: 78% !important; max-height: 42% !important; }
  #startMenu.home-v2 .start-menu-panel { gap: 10px !important; margin-top: 10px !important; }
  #startMenu.home-v2 button#startGameButton { grid-column: 1 / -1 !important; min-height: 60px !important; }
}
