/* Explicit edition controls are shared; V1 keeps its original arcade skin. */
.v2-only, .v2-celebration { display: none; }
.retro-switch { display: flex; gap: 6px; margin-top: 10px; width: 100%; }
.retro-switch .game-toggle { flex: 1; min-width: 0; margin: 0; padding: 9px 5px; font-size: 10px; gap: 5px; }
.retro-switch .game-toggle .icon { width: 15px; height: 15px; }
.retro-switch .game-toggle[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); }
.retro-exit { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 30px; margin-top: 8px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 10px; cursor: pointer; }
.retro-exit:hover { color: var(--accent); text-decoration: underline; }
.retro-exit .icon { width: 13px; height: 13px; }
:root[data-retro] .retro-switch { width: auto; margin: 0; }
:root[data-retro] .retro-switch .game-toggle { padding: 8px; font-size: 10px; }
:root[data-retro] .retro-exit { width: auto; margin: 0; white-space: nowrap; }
@media (min-width: 701px) and (max-width: 900px) {
  .retro-switch { flex-direction: column; }
  :root[data-retro] .retro-switch { flex-direction: row; }
  .retro-exit > span:last-child { display: none; }
}
@media (max-width: 700px) {
  .retro-switch { margin-top: 6px; }
  .retro-switch .game-toggle { min-height: 28px; padding: 4px; font-size: 9px; }
  :root[data-retro] .retro-switch .game-toggle { padding: 4px; font-size: 9px; }
  :root[data-retro] .retro-switch .game-toggle .icon { display: none; }
  :root[data-retro] .retro-switch { width: 100%; }
  :root[data-retro] .retro-exit { min-height: 24px; }
}

/* V2: a quieter game room with a dedicated navigation rail. */
:root[data-theme='arcade-v2'] {
  --paper: #f2eafa;
  --surface: #fffcff;
  --surface-2: #f4ebfa;
  --ink: #49345e;
  --ink-2: #695176;
  --ink-3: #796286;
  --rule: #e2d2ee;
  --rule-strong: #a384b7;
  --accent: #795098;
  --accent-hover: #613b7e;
  --accent-soft: #ebdcf6;
  --shadow: 3px 3px 0 #dfcdeb;
  --r-s: 5px;
  --r-m: 8px;
}
:root[data-theme='arcade-v2'] body {
  background-image: linear-gradient(rgb(255 255 255 / 45%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 45%) 1px, transparent 1px);
  background-size: 28px 28px;
}
:root[data-theme='arcade-v2'] .sidebar {
  position: fixed; inset: 18px auto 18px 18px; margin: 0; width: 230px; padding: 27px 17px 18px;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  overflow-y: auto; background: #fbf4ff; border: 2px solid #b699cb; border-radius: 9px; box-shadow: 4px 4px 0 #dcc8eb;
}
:root[data-theme='arcade-v2'] .brand { font-size: 23px; padding: 0 7px; gap: 8px; }
:root[data-theme='arcade-v2'] .brand-mark { transform: scale(.8); }
:root[data-theme='arcade-v2'] .workspace-label { display: block; font: 9px var(--game-font); color: #80668e; margin: 38px 10px 15px; letter-spacing: .3px; }
:root[data-theme='arcade-v2'] .main-nav { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; margin: 0; }
:root[data-theme='arcade-v2'] .main-nav a { flex: none; display: flex; justify-content: flex-start; padding: 12px 10px; min-height: 46px; gap: 9px; font-size: 12px; font-weight: 550; border-radius: 5px; }
:root[data-theme='arcade-v2'] .main-nav a[aria-current='page'] { background: #e9d9f6; border-color: #ab8dc0; box-shadow: 3px 3px 0 #dbc5eb; color: #65417e; }
:root[data-theme='arcade-v2'] .main-nav .icon { display: inline; width: 17px; height: 17px; }
:root[data-theme='arcade-v2'] .main-nav .nav-count { display: inline; margin-left: auto; background: #fffaff; border-radius: 4px; padding: 1px 5px; font-size: 10px; }
:root[data-theme='arcade-v2'] .main-nav .nav-count:empty { display: none; }
:root[data-theme='arcade-v2'] .main-nav .nav-count--alert { color: #a23766; background: #fbe2ed; }
:root[data-theme='arcade-v2'] .sidebar-bottom { display: flex; flex-direction: column; align-items: stretch; margin-top: auto; padding-top: 36px; gap: 0; }
:root[data-theme='arcade-v2'] .workspace-note { display: block; padding: 15px; margin: 0 0 24px; background: #fff1cf; border: 1px solid #ddc790; box-shadow: 3px 3px 0 #f1dfb4; border-radius: 5px; }
:root[data-theme='arcade-v2'] .workspace-note strong { font-size: 11px; color: #755535; }
:root[data-theme='arcade-v2'] .workspace-note p { color: #826748; font-size: 11px; }
:root[data-theme='arcade-v2'] .workspace-note > span { color: #977144; }
:root[data-theme='arcade-v2'] .v2-appearance-toggle { display: flex; align-items: center; gap: 8px; background: transparent; border: 0; border-top: 1px solid #e4d5ed; padding: 17px 2px 12px; font: inherit; font-size: 11px; color: var(--ink-2); cursor: pointer; }
.v2-appearance-toggle .icon { width: 16px; height: 16px; }
.v2-appearance-toggle > span:last-child { margin-left: auto; font-size: 16px; }
:root[data-theme='arcade-v2'] .theme-switch { display: none; margin-bottom: 12px; width: 100%; background: #f0e7f8; border: 1px solid #c7b1d9; border-radius: 5px; }
:root[data-theme='arcade-v2'] .sidebar[data-colors-open] .theme-switch { display: flex; }
:root[data-theme='arcade-v2'] .retro-edition-label { display: block; font: 8px var(--game-font); color: var(--ink-3); padding: 5px 2px 9px; }
:root[data-theme='arcade-v2'] .retro-switch { display: flex; flex-direction: row; width: 100%; gap: 5px; padding: 4px; border: 1px solid #cab2dc; border-radius: 6px; background: #f0e5f9; }
:root[data-theme='arcade-v2'] .retro-switch .game-toggle { display: flex; min-height: 33px; padding: 5px 3px; font-size: 10px; border: 1px solid transparent; box-shadow: none; background: transparent; color: var(--ink-2); border-radius: 3px; white-space: nowrap; }
:root[data-theme='arcade-v2'] .retro-switch .game-toggle[aria-pressed='true'] { background: #fffaff; border-color: #b99bcd; box-shadow: 1px 2px 0 #d8bfe8; color: #65417e; }
:root[data-theme='arcade-v2'] .retro-switch .game-toggle .icon { display: inline; width: 14px; height: 14px; }
:root[data-theme='arcade-v2'] .retro-exit { width: 100%; min-height: 32px; margin: 10px 0 0; color: #745582; }
:root[data-theme='arcade-v2'] .retro-exit > span:last-child { display: inline; }
:root[data-theme='arcade-v2'] .app-shell { margin: 0 0 0 266px; max-width: none; min-height: 100vh; padding: 0 34px; }
:root[data-theme='arcade-v2'] .topbar { height: 86px; padding: 14px 0; border-bottom: 1px solid #dfd0e9; margin-bottom: 26px; }
:root[data-theme='arcade-v2'] .breadcrumb { font-family: var(--font); font-size: 11px; }
:root[data-theme='arcade-v2'] .who { padding: 5px 10px; border: 1px solid #d8c5e7; border-radius: 6px; background: #fcf8ff; box-shadow: none; }
:root[data-theme='arcade-v2'] .editor-avatar { border: 0; border-radius: 5px; background: #eadcf5; }
:root[data-theme='arcade-v2'] .who strong { max-width: 104px; }
:root[data-theme='arcade-v2'] .arcade-hero { display: none !important; }
:root[data-theme='arcade-v2'][data-page='overview'] .v2-home { display: block; }
.v2-welcome-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; padding: 29px 34px; position: relative; border: 2px solid #b89bce; border-radius: 8px; box-shadow: 4px 4px 0 #ddc8ec; background: linear-gradient(115deg, #fff9fc, #f1e5fe); }
.v2-welcome-card::after { content: '✦'; position: absolute; right: 22px; top: 15px; color: #c49fcd; font-size: 25px; }
.v2-eyebrow { font: 9px/1.6 var(--game-font); letter-spacing: .15px; color: #866697; }
.v2-welcome-copy { align-self: center; min-width: 0; }
.v2-welcome-copy #daily-affirmation { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.55; letter-spacing: -.6px; overflow-wrap: anywhere; }
.v2-welcome-copy h2 { font: 30px/1.35 var(--game-font); letter-spacing: -1px; margin: 13px 0 12px; }
.v2-welcome-copy h2 > span { color: #9b66a5; }
.v2-welcome-copy > p:not(.v2-eyebrow) { max-width: 335px; font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.v2-welcome-tag { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 6px 10px; border: 1px solid #e4c4d8; background: #fff0f5; border-radius: 4px; color: #98627e; font-size: 10px; }
.v2-companion { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: center; }
.v2-speech { position: relative; padding: 10px 15px; border: 1px solid #c6acd9; box-shadow: 2px 2px 0 #dfc8ed; border-radius: 5px; background: #fffaff; font-size: 11px; text-align: center; max-width: 260px; min-height: 39px; }
.v2-speech::after { content: ''; position: absolute; width: 8px; height: 8px; background: #fffaff; border-right: 1px solid #c6acd9; border-bottom: 1px solid #c6acd9; transform: rotate(45deg); bottom: -5px; left: calc(50% - 4px); }
.v2-speech cite { display: block; margin-top: 6px; font-size: 10px; font-style: normal; font-weight: 600; color: #76558d; }
.v2-pet-button { display: block; padding: 8px 20px 0; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.v2-pip { display: block; width: 180px; height: 168px; overflow: visible; }
.pip-paw { transform-box: fill-box; transform-origin: 15% 90%; }
.pip-eyes { transform-box: fill-box; transform-origin: center; }
.pip-heart { opacity: .4; }
.v2-pet-caption { font: 7px/1.7 var(--game-font); color: #8a6d9b; display: flex; gap: 6px; align-items: center; text-align: center; }
.v2-online-dot { display: inline-block; width: 5px; height: 5px; background: #78a48c; border: 1px solid #4d7d60; }
.v2-motion-toggle { border: 0; border-bottom: 1px dotted #c3a8d3; background: transparent; color: #80648f; font: inherit; font-size: 9px; padding: 4px; margin-top: 7px; cursor: pointer; }
.v2-progress-card { padding: 18px 22px; margin-top: 18px; background: #fffcff; border: 1px solid #d1b9e1; border-radius: 7px; box-shadow: 3px 3px 0 #e2d2ee; }
.v2-progress-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.v2-progress-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: #fff0c9; color: #987144; border: 1px solid #e3cca0; border-radius: 4px; }
.v2-progress-heading h3 { font-size: 12px; }
.v2-progress-heading p { font-size: 10px; color: var(--ink-3); margin-top: 3px; }
.v2-progress-heading > strong { margin-left: auto; font: 16px var(--game-font); }
.v2-progress-card progress { appearance: none; display: block; width: 100%; height: 12px; border: 1px solid #b598c9; border-radius: 2px; background: #eee3f7; padding: 2px; }
.v2-progress-card progress::-webkit-progress-bar { background: #eee3f7; }
.v2-progress-card progress::-webkit-progress-value { background: repeating-linear-gradient(90deg, #bb8ed1 0 9px, #ead6f4 9px 12px); transition: width 500ms ease; }
.v2-progress-card progress::-moz-progress-bar { background: repeating-linear-gradient(90deg, #bb8ed1 0 9px, #ead6f4 9px 12px); }
.v2-progress-caption { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 9px; color: var(--ink-3); font-size: 10px; }
.v2-quests { margin-top: 30px; }
.v2-quests-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.v2-quests-heading h2 { font: 17px/1.5 var(--game-font); margin-top: 5px; letter-spacing: -.6px; }
.v2-quests-heading h2 > span { margin-left: 10px; color: #bf91c4; }
.v2-quests-heading p:last-child { color: var(--ink-3); font-size: 11px; margin-top: 5px; }
.v2-all-quests { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; text-decoration: none; white-space: nowrap; }
.v2-all-quests .icon { width: 14px; height: 14px; }
.v2-quest-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v2-quest-card { min-width: 0; display: flex; flex-direction: column; padding: 16px; border: 1px solid #c8a8d8; border-top: 5px solid #dfb2cf; border-radius: 5px; box-shadow: 3px 3px 0 #dfcbe9; background: #fffbfe; color: var(--ink); text-decoration: none; }
.v2-quest-card:nth-child(2) { border-top-color: #d0b5e8; }
.v2-quest-card:nth-child(3) { border-top-color: #bdcfbe; }
.v2-quest-card:hover { color: var(--ink); background: #fff4fb; border-color: #9b76b1; }
.v2-quest-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.v2-quest-number { font: 13px var(--game-font); color: #a381b4; }
.v2-quest-deadline { padding: 3px 6px; color: #78568e; background: #f1e6fa; border-radius: 3px; font-size: 9px; font-weight: 600; }
.v2-quest-deadline--overdue { color: #a23766; background: #fbe4ee; }
.v2-quest-deadline--due_today, .v2-quest-deadline--due_soon { color: #856027; background: #fff0cc; }
.v2-quest-person { font-size: 10px; color: var(--ink-3); overflow-wrap: anywhere; }
.v2-quest-card h3 { font-size: 13px; line-height: 1.5; margin: 5px 0 18px; overflow-wrap: anywhere; }
.v2-quest-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px dashed #e2cfe9; padding-top: 12px; margin-top: auto; font-size: 9px; color: var(--ink-3); }
.v2-quest-open { display: inline-flex; align-items: center; gap: 4px; color: #795098; font-weight: 600; }
.v2-quest-open .icon { width: 13px; height: 13px; }
.v2-quests-empty { grid-column: 1 / -1; text-align: center; padding: 28px 20px; border: 1px dashed #ba9acf; border-radius: 5px; background: #fcf7ff; }
.v2-quests-empty > span { font-size: 28px; color: #af8abb; }
.v2-quests-empty h3 { margin: 6px 0; font-size: 15px; }
.v2-quests-empty p { font-size: 12px; color: var(--ink-2); margin-bottom: 15px; }
:root[data-theme='arcade-v2'] #view { padding-top: 28px; }
:root[data-theme='arcade-v2'][data-page='overview'] #view > .page-heading { border-top: 1px solid #d9c4e6; padding-top: 26px; }
:root[data-theme='arcade-v2'] :is(.page-heading h1, .emp-head h1) { font-size: 23px; }
:root[data-theme='arcade-v2'] .stat { border: 1px solid #c9b1db; box-shadow: 3px 3px 0 #dfcceb; border-radius: 5px; padding-top: 31px; }
:root[data-theme='arcade-v2'] .stat::before { height: 16px; line-height: 6px; border-bottom: 1px solid #c9b1db; border-radius: 4px 4px 0 0; font-size: 20px; }
:root[data-theme='arcade-v2'] .stat-value { font-size: 27px; }
:root[data-theme='arcade-v2'] :is(.panel, .tracking-card, .focus-card, .emp-head, .umbrella, dialog) { border-color: #c0a4d2; border-width: 1px; border-radius: 6px; box-shadow: 3px 3px 0 #dfcdeb; }
:root[data-theme='arcade-v2'] :is(.panel > .panel-head, .tracking-card > .panel-head) { border-bottom-width: 1px; background: #eee0f7; border-radius: 5px 5px 0 0; }
:root[data-theme='arcade-v2'] :is(.btn, .detail-nav button, .icon-button) { border-width: 1px; border-radius: 4px; box-shadow: 2px 2px 0 #d5bcdf; }
:root[data-theme='arcade-v2'] .btn--primary { background: #ead0eb; border-color: #b591c2; color: #644176; }
:root[data-theme='arcade-v2'] .btn--primary:hover:not(:disabled) { background: #f1ddf3; }
:root[data-theme='arcade-v2'] .btn[data-armed='true'] { background: var(--red); color: white; }
:root[data-theme='arcade-v2'] .focus-card { background: #fff0f7; }
:root[data-theme='arcade-v2'][data-page='overview'] .daily-grid { grid-template-columns: 1fr; }
:root[data-theme='arcade-v2'][data-page='overview'] .focus-card { display: none; }
:root[data-theme='arcade-v2'][data-page='overview'] .tracking-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
:root[data-theme='arcade-v2'][data-page='overview'] .tracking-card > .panel-head { grid-column: 1 / -1; }
:root[data-theme='arcade-v2'][data-page='overview'] .tracking-row { margin-top: 0; }
:root[data-theme='arcade-v2'] .notes-composer, :root[data-theme='arcade-v2'] .note { border-width: 1px; border-color: #ba9dcc; border-radius: 5px; box-shadow: 3px 3px 0 #dec9ea; }
:root[data-theme='arcade-v2'] .notes-composer::before, :root[data-theme='arcade-v2'] .note::before { border-bottom-width: 1px; border-radius: 4px 4px 0 0; }
:root[data-theme='arcade-v2'] .v2-celebration:not([hidden]) { display: flex; align-items: flex-start; gap: 12px; position: fixed; top: 25px; right: 25px; z-index: 30; width: 370px; max-width: calc(100vw - 32px); padding: 18px; border: 2px solid #bb9acb; border-radius: 7px; background: #fffbef; box-shadow: 5px 5px 0 #d8bddf; }
.v2-celebration-star { font-size: 29px; color: #b784b8; line-height: 1; }
.v2-celebration strong { display: block; font: 11px/1.7 var(--game-font); }
.v2-celebration p { font-size: 12px; line-height: 1.6; color: var(--ink-2); margin-top: 5px; }
.v2-celebration button { background: transparent; border: 0; padding: 2px; color: var(--ink-3); cursor: pointer; margin-left: auto; }
.v2-celebration button .icon { width: 16px; height: 16px; }
.v2-celebration.is-milestone { background: #fff0f9 !important; border-color: #bd83b0 !important; }
@media (prefers-reduced-motion: no-preference) {
  .pip-body { animation: pip-idle 4s steps(4, end) infinite; }
  .pip-eyes { animation: pip-blink 6s steps(1, end) infinite; }
  .pip-heart { animation: pip-heart 4s steps(3, end) infinite; }
  .is-cheering .pip-paw, .v2-pet-button:hover .pip-paw { animation: pip-wave 350ms steps(3, end) 6 alternate; }
  .is-cheering .pip-body { animation: pip-bounce 400ms steps(4, end) 5; }
  .v2-quest-card { transition: transform 150ms, box-shadow 150ms; }
  .v2-quest-card:hover { transform: translateY(-3px); box-shadow: 3px 6px 0 #dfcbe9; }
  .v2-celebration:not([hidden]) { animation: v2-celebrate-in 250ms ease-out; }
  .v2-celebration.is-milestone .v2-celebration-star { animation: pip-bounce 500ms steps(4, end) 4; }
}
@keyframes pip-idle { 50% { transform: translateY(-2px); } }
@keyframes pip-blink { 0%, 45%, 49%, 100% { transform: scaleY(1); } 46%, 48% { transform: scaleY(.1); } }
@keyframes pip-heart { 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes pip-wave { to { transform: rotate(-18deg); } }
@keyframes pip-bounce { 50% { transform: translateY(-6px); } }
@keyframes v2-celebrate-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .v2-progress-card progress::-webkit-progress-value { transition: none; }
}
:root[data-retro-motion='paused'] :is(.pip-body, .pip-eyes, .pip-heart, .pip-paw, .v2-celebration, .v2-celebration-star, .arcade-particle) { animation: none !important; }
:root[data-retro-motion='paused'] .v2-progress-card progress::-webkit-progress-value { transition: none; }
@media (min-width: 1700px) {
  :root[data-theme='arcade-v2'] .app-shell { max-width: 1430px; margin-left: max(266px, calc((100vw - 1430px) / 2 + 100px)); }
}
@media (max-width: 1200px) {
  :root[data-theme='arcade-v2'] .sidebar { width: 210px; inset: 14px auto 14px 14px; padding: 24px 13px 14px; }
  :root[data-theme='arcade-v2'] .brand { font-size: 21px; }
  :root[data-theme='arcade-v2'] .app-shell { margin-left: 238px; padding: 0 24px; }
  .v2-welcome-card { padding: 25px; gap: 14px; }
  .v2-welcome-copy h2 { font-size: 27px; }
  .v2-quest-list { gap: 10px; }
  .v2-quest-card { padding: 13px; }
}
@media (max-width: 1000px) {
  :root[data-theme='arcade-v2'][data-page='overview'] .tracking-card { grid-template-columns: 1fr; gap: 16px; }
  :root[data-theme='arcade-v2'][data-page='overview'] .tracking-card > .panel-head { margin-bottom: 0; }
  :root[data-theme='arcade-v2'] .sidebar { width: 188px; padding: 24px 10px 14px; }
  :root[data-theme='arcade-v2'] .brand { font-size: 19px; gap: 3px; }
  :root[data-theme='arcade-v2'] .app-shell { margin-left: 214px; padding: 0 20px; }
  :root[data-theme='arcade-v2'] .main-nav a { font-size: 11px; padding: 11px 7px; gap: 7px; }
  .v2-welcome-card { grid-template-columns: 1fr 1fr; padding: 22px; gap: 12px; }
  .v2-welcome-copy h2 { font-size: 23px; }
  .v2-welcome-copy > p:not(.v2-eyebrow) { font-size: 11px; }
  .v2-eyebrow { font-size: 8px; }
  .v2-pip { width: 150px; height: 140px; }
  .v2-speech { font-size: 10px; padding: 9px; }
  .v2-pet-caption { font-size: 6px; }
  .v2-quest-list { grid-template-columns: 1fr; }
  .v2-quest-card { display: grid; grid-template-columns: 1fr auto; column-gap: 15px; border-top-width: 1px; border-left: 4px solid #dfb2cf; padding: 13px 16px; }
  .v2-quest-card:nth-child(2) { border-left-color: #d0b5e8; }
  .v2-quest-card:nth-child(3) { border-left-color: #bdcfbe; }
  .v2-quest-top { grid-column: 1 / -1; margin-bottom: 10px; }
  .v2-quest-person { grid-column: 1; }
  .v2-quest-card h3 { grid-column: 1; margin-bottom: 0; }
  .v2-quest-bottom { grid-column: 2; grid-row: 2 / 4; flex-direction: column; align-items: flex-end; justify-content: center; border: 0; padding: 0; margin: 0; }
}
@media (max-width: 760px) {
  :root[data-theme='arcade-v2'] .sidebar { position: relative; inset: auto; width: auto; margin: 12px 14px 0; padding: 15px; display: grid; grid-template-columns: 1fr auto; gap: 15px 12px; overflow: visible; }
  :root[data-theme='arcade-v2'] .brand { font-size: 20px; padding: 0; }
  :root[data-theme='arcade-v2'] :is(.workspace-label, .workspace-note, .retro-edition-label, .v2-appearance-toggle) { display: none; }
  :root[data-theme='arcade-v2'] .sidebar-bottom { grid-column: 2; grid-row: 1; padding: 0; margin: 0; align-items: stretch; position: relative; }
  :root[data-theme='arcade-v2'] .retro-switch { padding: 3px; gap: 2px; }
  :root[data-theme='arcade-v2'] .retro-switch .game-toggle { padding: 5px 6px; min-height: 30px; font-size: 9px; }
  :root[data-theme='arcade-v2'] .retro-switch .game-toggle .icon { display: none; }
  :root[data-theme='arcade-v2'] .retro-exit { margin-top: 4px; min-height: 24px; font-size: 9px; }
  :root[data-theme='arcade-v2'] .sidebar .theme-switch { display: none; }
  :root[data-theme='arcade-v2'] .main-nav { grid-column: 1 / -1; flex-direction: row; gap: 5px; width: 100%; }
  :root[data-theme='arcade-v2'] .main-nav a { flex: 1; justify-content: center; padding: 9px 5px; min-height: 38px; font-size: 10px; gap: 6px; }
  :root[data-theme='arcade-v2'] .main-nav .icon { width: 14px; height: 14px; }
  :root[data-theme='arcade-v2'] .main-nav .nav-count { display: none; }
  :root[data-theme='arcade-v2'] .app-shell { padding: 0 16px; margin: 0; }
  :root[data-theme='arcade-v2'] .topbar { margin-bottom: 18px; height: 66px; min-height: 66px; }
  :root[data-theme='arcade-v2'] .breadcrumb { font-size: 10px; }
  :root[data-theme='arcade-v2'] .who { padding: 4px 6px; }
  :root[data-theme='arcade-v2'] .who strong { max-width: 90px; }
  .v2-welcome-card { grid-template-columns: 1fr 1fr; gap: 12px; padding: 23px 20px; }
  .v2-welcome-copy h2 { font-size: 24px; }
  .v2-progress-card { padding: 16px; }
  .v2-quests { margin-top: 25px; }
  .v2-quests-heading h2 { font-size: 16px; }
  .v2-quests-heading p:last-child { font-size: 10px; }
  .v2-all-quests { font-size: 10px; }
  :root[data-theme='arcade-v2'] .v2-celebration:not([hidden]) { top: 16px; right: 16px; }
}
@media (max-width: 450px) {
  :root[data-theme='arcade-v2'] .sidebar { padding: 13px 10px; gap: 12px 6px; }
  :root[data-theme='arcade-v2'] .brand { font-size: 18px; gap: 0; }
  :root[data-theme='arcade-v2'] .main-nav a { font-size: 9px; padding: 8px 3px; gap: 4px; }
  .v2-welcome-card { grid-template-columns: 1fr; padding: 24px; }
  .v2-welcome-copy h2 br { display: none; }
  .v2-welcome-copy h2 { font-size: 25px; }
  .v2-welcome-copy h2 > span { display: block; }
  .v2-companion { margin-top: 10px; }
  .v2-pip { width: 144px; height: 134px; }
  .v2-pet-caption { font-size: 7px; }
  .v2-speech { font-size: 11px; }
  .v2-progress-heading { gap: 8px; }
  .v2-progress-heading p { font-size: 9px; }
  .v2-progress-heading > strong { font-size: 14px; }
  .v2-progress-icon { display: none; }
  .v2-quests-heading { gap: 9px; }
  .v2-quests-heading h2 { font-size: 14px; }
  .v2-quests-heading h2 > span { display: none; }
  .v2-quest-card { padding: 13px; column-gap: 8px; }
  .v2-quest-card h3 { font-size: 12px; }
  .v2-quest-bottom { font-size: 8px; }
}
@media (max-width: 360px) {
  :root[data-theme='arcade-v2'] .brand { font-size: 15px; }
  :root[data-theme='arcade-v2'] .brand-mark { width: 23px; }
  :root[data-theme='arcade-v2'] .retro-switch .game-toggle { padding: 5px 4px; }
  :root[data-theme='arcade-v2'] .main-nav .icon { display: none; }
  .v2-all-quests .icon { display: none; }
  .v2-quests-heading h2 { font-size: 13px; }
}
@media print {
  .retro-switch, .retro-exit, .v2-home, .v2-celebration { display: none !important; }
  :root[data-theme='arcade-v2'] .app-shell { margin: 0; padding: 0; }
}
