:root {
  color-scheme: light;
  --paper: #fbf6e8;
  --ink: #252042;
  --muted: #514967;
  --pale: #fffdf5;
  --line: #ded8be;
  --green: #443282;
  font: 100%/1.5 ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
a { color: var(--green); text-underline-offset: .17em; }
:focus-visible { outline: 3px solid #a13d20; outline-offset: 3px; }
.wrap { width: min(1080px, 100%); margin-inline: auto; padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right)); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: max(20px, env(safe-area-inset-top)) 22px; }
.brand, .bar-actions { display: flex; align-items: center; gap: 12px; }
.brand { font-weight: 850; letter-spacing: -.04em; font-size: 1.4rem; }
.brand img { border-radius: 12px; flex: none; }
.network { font-size: .8rem; color: var(--muted); text-align: right; }
.network.ready::before { content: ""; display: inline-block; vertical-align: .12em; width: 7px; height: 7px; border-radius: 50%; background: #547748; margin-right: .4em; }
.pill, .primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em; min-height: 46px;
  padding: .57em 1em; border-radius: 999px; font-size: .92rem; font-weight: 750;
  border: 1px solid #c6c9ae; background: var(--pale); transition: background .16s;
}
.pill:hover { background: #ecefd8; }
.primary { background: var(--green); border-color: var(--green); color: white; }
.primary:hover { background: #594295; }
.primary:disabled { opacity: .65; }
.lock-icon { position: relative; width: 14px; height: 10px; flex: none; margin-top: 5px; border: 1.6px solid currentColor; border-radius: 3px; }
.lock-icon::before { content: ""; position: absolute; left: 2px; right: 2px; bottom: 8px; height: 6px; border: 1.6px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
h1, h2, h3, p { margin: 0; }
.tictactoe .mark-x { color: #a52c4f; }
.tictactoe .mark-o { color: #216298; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: clamp(10px, 2.5vw, 30px); }
.shelf-head h1 { font-size: clamp(1.9rem, 5.5vw, 4.3rem); letter-spacing: -.065em; line-height: 1; }
.age-filter { display: flex; flex-wrap: wrap; gap: 5px; margin: clamp(16px, 2.4vw, 27px) 0 18px; }
.age-filter button { min-height: 44px; border: 1px solid var(--line); border-radius: 100px; padding: 6px clamp(9px, 2vw, 18px); background: var(--pale); font-size: .87rem; font-weight: 700; }
.age-filter button[aria-pressed="true"] { color: white; background: var(--ink); border-color: var(--ink); }
.choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.choice {
  min-width: 0; display: flex; flex-direction: column; align-items: stretch; padding: 0; text-align: left;
  border: 1px solid #dad4be; border-radius: 19px; background: var(--pale); box-shadow: 0 3px 0 #dcd5c0;
  transition: transform .16s, box-shadow .16s;
}
@media (hover: hover) {
  .choice:hover { transform: translateY(-3px); box-shadow: 0 6px 0 #dcd5c0; }
}
.choice:active { transform: translateY(2px); box-shadow: none; }
.choice-copy { display: grid; gap: 3px; padding: clamp(10px, 1.6vw, 18px); }
.age { font-size: .72rem; font-weight: 750; color: #5e5365; }
.choice strong { letter-spacing: -.045em; line-height: 1.1; font-size: clamp(1.05rem, 1.9vw, 1.55rem); hyphens: auto; }
.choice-copy > :last-child { line-height: 1.35; font-size: .85rem; color: var(--muted); }
.picture {
  container-type: inline-size; position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
  height: clamp(92px, 13vw, 145px); border-radius: 18px 18px 0 0; background-color: var(--art);
  background-image: radial-gradient(#fff6 1px, transparent 1.4px); background-size: 11px 11px;
}
.picture::before { content: ""; position: absolute; z-index: -1; width: 105%; aspect-ratio: 1.85; border-radius: 50%; border: 1px solid #fff7; transform: rotate(-15deg); }
.picture > span { position: relative; font-size: clamp(8px, 4.5cqw, 12px); }
.picture i, .picture b { font-style: normal; }
.choice[data-mode="colors"] { --art: #ffc684; }
.choice[data-mode="camera"] { --art: #48406d; }
.choice[data-mode="memory"] { --art: #f5adab; }
.choice[data-mode="pattern"] { --art: #99d4ca; }
.choice[data-mode="maze"] { --art: #b9b7ea; }
.choice[data-mode="sequence"] { --art: #accce6; }
.choice[data-mode="dots"] { --art: #e7cf7e; }
.choice[data-mode="tictactoe"] { --art: #a5d0af; }
.art-colors, .art-sequence { display: grid; grid-template-columns: 1fr 1fr; width: 7.4em; gap: .5em; transform: rotate(-10deg); }
.art-colors .shape { width: 100%; filter: saturate(1.15); }
.art-colors { filter: drop-shadow(0 .28em 0 #9b61478a); }
.art-monsters { width: 12em; height: 7em; }
.art-monsters i { position: absolute; font-size: 4.25em; line-height: 1; left: 9%; top: 0; transform: rotate(-13deg); }
.art-monsters i + i { font-size: 3.2em; left: 62%; top: 42%; transform: rotate(12deg); }
.art-monsters::after { content: ""; position: absolute; inset: 76% 44% auto 7%; background: white; height: .28em; transform: rotate(-35deg); border-radius: 2em; box-shadow: 0 0 .35em .19em #86f5ef; }
.art-memory { display: flex; transform: rotate(-9deg); }
.art-memory i { width: 4.3em; height: 5.8em; display: grid; place-items: center; border: .2em solid #966a83; border-radius: .8em; background: #fff6d9; box-shadow: 0 .32em 0 #9c7583; }
.art-memory i + i { transform: rotate(20deg) translateY(.4em); margin-left: -.4em; }
.art-memory .shape { width: 61%; }
.art-train { display: flex; gap: .3em; padding-bottom: .7em; border-bottom: .26em solid #5f5659; transform: rotate(-5deg); }
.art-train i { position: relative; display: grid; place-items: center; width: 3.4em; height: 3.1em; border-radius: .4em; background: #fff2d8; color: #59415b; font-weight: 900; box-shadow: inset 0 -.25em 0 #c3794a; }
.art-train i::after { content: ""; position: absolute; width: .69em; height: .69em; border-radius: 50%; background: #514664; left: .4em; bottom: -.45em; box-shadow: 1.7em 0 #514664; }
.art-train .shape { width: 52%; }
.art-maze { width: 8em; height: 6.6em; border: .55em solid #645780; border-radius: .5em; background: #fff4d3; transform: rotate(-9deg); box-shadow: 0 .3em 0 #857ba5; }
.art-maze::before, .art-maze::after { content: ""; position: absolute; border: solid #645780; }
.art-maze::before { inset: 0 48% 45% 23%; border-width: 0 .5em .5em 0; }
.art-maze::after { inset: 53% 17% 0 48%; border-width: .5em 0 0 .5em; }
.art-maze i { position: absolute; bottom: 12%; left: 10%; width: 1.15em; height: 1.15em; border-radius: 50%; background: #e75e61; }
.art-maze .shape { position: absolute; width: 1.6em; right: 7%; top: 7%; }
.art-sequence { width: 7.3em; gap: .32em; padding: .35em; border-radius: .8em; background: #454467; box-shadow: 0 .35em 0 #6f7b9c; transform: rotate(8deg); }
.art-sequence i { display: grid; place-items: center; aspect-ratio: 1; border-radius: .45em; background: #e1e5f3; }
.art-sequence i:nth-child(3) { background: #fff9a2; box-shadow: 0 0 .8em #ffe75c; }
.art-sequence .shape { width: 57%; }
.art-dots { display: flex; align-items: center; gap: .25em; transform: rotate(-12deg); }
.art-dots i { position: relative; width: 4.5em; aspect-ratio: 1; background: #fffae7; border: .16em solid #94805a; border-radius: 24%; box-shadow: 0 .28em 0 #a88b56; }
.art-dots i + i { transform: rotate(26deg) translateY(.5em); }
.art-dots i::before { content: ""; position: absolute; left: 15%; top: 15%; width: .75em; height: .75em; background: #286157; border-radius: 50%; box-shadow: 2.15em 0 #286157, 0 2.15em #286157, 2.15em 2.15em #286157; }
.art-dots i + i::before { box-shadow: 1.08em 1.08em #286157, 2.15em 2.15em #286157; }
.art-tic { width: 7.2em; aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: .16em; background: #678573; transform: rotate(-8deg); }
.art-tic i { display: grid; place-items: center; background: #eef4d6; color: #9e355f; font: 850 1.65em/1 system-ui; }
.art-tic i:nth-child(even), .art-tic i:last-child { color: #2b6887; }
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding-block: 25px max(16px, env(safe-area-inset-bottom)); }
.hold { position: relative; isolation: isolate; overflow: hidden; }
.hold.locked { -webkit-touch-callout: none; user-select: none; touch-action: none; }
.hold::before { position: absolute; inset: 0; z-index: -1; content: ""; background: #dbe8b8; transform: scaleX(0); transform-origin: left; }
.hold.holding::before { transform: scaleX(1); transition: transform 2s linear; }
.lock-note { border-radius: 12px; padding: .45em .8em; background: #fff0bd; color: #5b4320 !important; font-weight: 700; font-size: .88rem; }
#lock-ready { margin-top: 17px; }
#lock-in-game { width: fit-content; margin: 10px auto 0; }
body.playing { background: #f7f1e7; }
body.playing:not(.camera-playing) .bar { position: sticky; top: 0; z-index: 4; background: #f7f1e7; }
.game { padding-bottom: max(16px, env(safe-area-inset-bottom)); text-align: center; }
.game-head { margin-bottom: clamp(12px, 3vh, 24px); }
.game-head h1 { font-size: clamp(2.1rem, 7vw, 4rem); font-weight: 880; line-height: 1.08; letter-spacing: -.06em; }
.game-head p { color: var(--muted); margin-top: 5px; }
.tip-row { display: flex; align-items: center; justify-content: center; gap: 4px; margin-inline: auto; max-width: 68ch; }
.tip-row #game-tip { margin: 0; }
#listen-tip { flex-shrink: 0; border: none; min-height: 44px; display: inline-flex; align-items: center; gap: .45em; padding: 4px 9px; color: var(--green); background: transparent; border-radius: 12px; font-size: .86rem; font-weight: 730; }
#listen-tip[aria-pressed="true"] { background: #e8ddf8; }
.speaker-icon { width: 1.15em; height: 1em; background: currentColor; clip-path: polygon(0 35%, 28% 35%, 65% 3%, 65% 97%, 28% 65%, 0 65%); }
#listen-tip[aria-pressed="true"] .speaker-icon { clip-path: inset(11% 16% round 2px); }
.board { margin-inline: auto; display: grid; gap: clamp(9px, 2.1vw, 18px); }
.board.colors, .board.sequence { max-width: 580px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board.memory { max-width: 540px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.board.tictactoe { max-width: 430px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  position: relative; display: grid; place-items: center; min-width: 0; min-height: 52px; padding: 9%;
  aspect-ratio: 1.12; border: 2px solid #d4ceaa; background: #fff9e9; border-radius: clamp(15px, 4vw, 28px);
  box-shadow: 0 4px 0 #ddd5b0; transition: transform .16s, background .16s, border-color .16s;
}
.shape { display: block; width: 82%; max-width: 132px; aspect-ratio: 1; pointer-events: none; }
.circle { border-radius: 50%; background: #ef616a; }
.diamond { background: #467cdb; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.star { background: #efae12; clip-path: polygon(50% 0, 64% 34%, 100% 39%, 73% 62%, 80% 100%, 50% 80%, 20% 100%, 27% 62%, 0 39%, 36% 34%); }
.arch { border-radius: 50% 50% 0 0; background: #57a270; clip-path: polygon(0 0, 100% 0, 100% 100%, 72% 100%, 72% 54%, 65% 43%, 50% 39%, 35% 43%, 28% 54%, 28% 100%, 0 100%); }
.triangle { background: #8358ba; clip-path: polygon(50% 5%, 100% 95%, 0 95%); }
.square { background: #e4773a; border-radius: 10%; }
.hexagon { background: #218881; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
.cross { background: #cf4784; clip-path: polygon(34% 0, 66% 0, 66% 34%, 100% 34%, 100% 66%, 66% 66%, 66% 100%, 34% 100%, 34% 66%, 0 66%, 0 34%, 34% 34%); }
.tile:active { transform: translateY(3px); }
.colors .tile:nth-child(1), .sequence .tile:nth-child(1) { background: #fbe1e4; }
.colors .tile:nth-child(2), .sequence .tile:nth-child(2) { background: #e3edff; }
.colors .tile:nth-child(3), .sequence .tile:nth-child(3) { background: #fff1be; }
.colors .tile:nth-child(4), .sequence .tile:nth-child(4) { background: #e4f1da; }
.colors .tile.tapped, .sequence .tile.lit { border-color: var(--green); }
.sequence .tile.lit { transform: scale(.96); background: #e3cef8; box-shadow: inset 0 0 0 4px var(--green), 0 4px 0 #b997dc; }
.colors .tile.tapped .shape { animation: hop .47s ease-out; }
.burst { position: absolute; inset: 14%; pointer-events: none; border: 5px dotted #713a73; border-radius: 50%; opacity: 0; }
.tapped .burst { animation: burst .56s ease-out; }
@keyframes hop { 35% { transform: translateY(-7px) scale(1.12) rotate(-8deg); } }
@keyframes burst { from { opacity: .8; transform: scale(.58); } to { opacity: 0; transform: scale(1.18); } }
.memory .tile { aspect-ratio: 1; }
.memory .tile.covered { background: #e6d9f8; border-color: #c7b7e6; box-shadow: 0 4px 0 #c7b7e6; color: #5d408a; }
.memory .tile.covered i { display: grid; place-items: center; font: 850 clamp(1.5rem, 5vw, 3rem)/1 system-ui, sans-serif; font-style: normal; }
.memory .tile.matched { background: #eaf0d8; border-color: #789363; box-shadow: 0 4px 0 #c4d2a4; }
.matched::after { position: absolute; right: 6px; top: 2px; content: "✓"; font-weight: 900; color: #305830; }
.tictactoe .tile { aspect-ratio: 1; background: #f5f0ff; border-color: #83729f; box-shadow: 0 4px 0 #d7c9ea; font: 900 clamp(2rem, 10vw, 4rem)/1 system-ui, sans-serif; }
.tictactoe .tile.won { background: #e2efd5; border-color: #688650; box-shadow: inset 0 0 0 2px #688650, 0 4px 0 #b9cd9e; }
.feedback { min-height: 1.5em; margin-block: 14px 8px; font-weight: 770; font-size: clamp(1rem, 3.8vw, 1.4rem); }
.replay { margin: 0 auto 12px; }
dialog { margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 25px; color: var(--ink); background: var(--pale); width: min(100% - 28px, 490px); max-height: 90dvh; box-shadow: 0 18px 64px #18271a55; }
dialog::backdrop { background: #222e23a8; }
.sheet { padding: clamp(19px, 5vw, 30px); }
.sheet h2 { font-size: clamp(1.45rem, 6vw, 2rem); line-height: 1.15; letter-spacing: -.04em; }
.sheet h3 { margin-bottom: .25em; }
.sheet p { margin-block: .5em; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet label { display: block; font-weight: 720; margin-block: .7em .25em; }
.sheet input:not([type=checkbox]) { display: block; width: 100%; min-height: 48px; border: 1px solid #87967d; border-radius: 12px; background: #fff; padding: 8px 12px; color: var(--ink); font-size: 1.1rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.settings-part { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 13px; }
.pin-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pin-fields > div { min-width: 0; }
.sheet .check, summary { min-height: 44px; display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 720; margin: 0; }
.check input { width: 22px; height: 22px; accent-color: var(--green); }
summary::before { content: "›"; font-size: 1.5rem; line-height: 1; }
details[open] > summary::before { transform: rotate(90deg); }
.error { color: #9b2e1d; font-weight: 690; }
.settings-status { color: var(--green); }
.pip { border-radius: 50%; background: #22685d; aspect-ratio: 1; }
.stage { margin: .6rem auto; display: flex; width: fit-content; gap: .6em; align-items: center; font-size: .85rem; font-weight: 750; color: var(--muted); }
.stage progress { width: 64px; height: 8px; accent-color: #7350ac; }
.board.pattern, .board.dots, .board.maze { max-width: 570px; }
.pattern-track { position: relative; isolation: isolate; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; align-items: center; padding: 16px 5px 28px; border-radius: 16px; background: #ffecd2; }
.pattern-track::after { content: ""; position: absolute; inset: auto 3% 14px; border-top: 4px solid #946c51; }
.wagon { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: #fffaf0; border: 1px solid #d9ab7e; border-radius: 18%; }
.wagon::after, .wagon::before { content: ""; position: absolute; bottom: -5px; height: 7px; width: 7px; border-radius: 50%; background: #634c47; }
.wagon::after { right: 16%; }
.wagon::before { left: 16%; }
.wagon .shape { width: 70%; }
.wagon.gap { border: 2px dashed #845d40; font-size: clamp(1rem, 5vw, 2rem); font-weight: 900; }
.puzzle-answers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(7px, 2vw, 14px); }
.answer { background: #fffdf5; border-color: #a89373; max-height: 175px; }
.answer.tried { border-style: dashed; }
.answer.matched { border: 3px solid #567946; background: #ecf4de; }
.answer.matched .shape { animation: hop .4s ease-out; }
.dots .answer { aspect-ratio: .88; background: #e6f1e9; border-color: #749783; }
.dot-tray { width: 96%; max-width: 120px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(3px, 1vw, 7px); }
.dot-tray i { display: block; aspect-ratio: 1; }
.maze-map { display: grid; width: min(100%, 320px); margin-inline: auto; grid-template-columns: repeat(5, 1fr); overflow: hidden; background: #fff9e7; border: 4px solid #51476c; border-radius: 14px; }
.maze-map.cols-7 { grid-template-columns: repeat(7, 1fr); }
.maze-cell { aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.maze-cell.wall { background: repeating-linear-gradient(-45deg, #60547d 0 8px, #6b6086 8px 11px); }
.maze-cell.visited::before { content: ""; width: 15%; aspect-ratio: 1; border-radius: 50%; background: #ca967b; }
.maze-cell.player::before { content: ""; z-index: 1; width: 57%; aspect-ratio: 1; border-radius: 50%; background: #e8525c; border: 2px solid #982e47; box-shadow: inset 2px 3px 0 #ffa599; }
.maze-cell.goal::after { content: "★"; position: absolute; color: #9e6608; font-size: clamp(1.4rem, 6vw, 2.1rem); line-height: 1; }
.maze-cell.goal.player::after { z-index: 2; color: white; font-size: 1rem; }
.maze-pad { display: flex; justify-content: center; gap: 8px; }
.direction { width: clamp(48px, 13vw, 64px); height: 48px; border: 2px solid #8675a3; border-radius: 14px; background: #e9dff9; font-size: 1.5rem; font-weight: 800; }
.direction[aria-disabled="true"] { background: #f2eee3; border-color: #c5bdaa; color: #736b66; cursor: default; }
@media (orientation: landscape) and (max-height: 560px) {
  .board.maze { grid-template-columns: minmax(180px, 255px) auto; align-items: center; justify-content: center; }
  .maze-map { max-width: min(100%, 54dvh); }
  .maze-pad { display: grid; grid-template-columns: repeat(2, auto); }
}
@media (max-width: 800px) {
  .wrap { padding-inline: max(15px, env(safe-area-inset-left)) max(15px, env(safe-area-inset-right)); }
  .bar { padding-bottom: 13px; gap: 6px; }
  .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-copy > :last-child { font-size: .79rem; }
  .age-filter { margin-block: 14px; }
  .shelf-head .pill { padding-inline: .7em; }

}
@media (max-width: 390px) {
  .bar-actions, .brand { gap: 6px; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 34px; height: 34px; }
  .network { max-width: 11ch; font-size: .73rem; }
  .bar .pill { padding-inline: .65em; }
}
@media (max-width: 345px) {
  body.playing .network { display: none; }
  .brand img { width: 28px; height: 28px; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .bar { padding-block: max(4px, env(safe-area-inset-top)) 9px; }
  .board.colors, .board.sequence { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .board.tictactoe { max-width: clamp(182px, calc(100dvh - 155px), 430px); }
  .tictactoe .tile { font-size: clamp(1.75rem, 9dvh, 3.5rem); }
  .game-head { margin-bottom: 9px; }
  .game-head h1 { font-size: 2rem; }
  .feedback { margin-block: 8px 4px; }
}
@media (min-width: 600px) and (orientation: landscape) and (max-height: 560px) {
  .board.memory { max-width: 800px; grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .memory .tile { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.update-result { margin-top: 7px; color: var(--muted); }
.saber-preview { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #332658; color: #9fffea; font: 800 2rem/1 system-ui; }
.camera-lobby { width: min(100%, 470px); margin: 0 auto; padding: 22px; display: grid; justify-items: center; gap: 16px; border: 1px solid #cec3df; border-radius: 22px; background: #f1e9ff; }
.camera-lobby small { color: var(--muted); }
.board.camera { position: relative; }
.board.camera video, .board.camera canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.board.camera video { object-fit: cover; transform: scaleX(-1); }
.camera-playing .board.camera { position: fixed; inset: 0; z-index: 5; background: #191424; padding: 0; }
.camera-playing .board.camera video, .camera-playing .board.camera canvas { opacity: 1; }
.camera-playing .bar { position: fixed; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); width: auto; padding: 0; z-index: 7; }
.camera-playing .bar .brand, .camera-playing .bar .network { display: none; }
.camera-playing { overflow: hidden; }
.camera-hud { position: absolute; top: max(8px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); display: flex; gap: 7px; align-items: center; }
.camera-score, .camera-end, .camera-tracking, .camera-praise { border-radius: 18px; color: white; background: #28213dea; }
.camera-score { padding: 8px 12px; }
.camera-end { min-height: 44px; padding: 5px 10px; border: 1px solid #b4acc6; font-size: .85rem; }
.camera-tracking, .camera-praise { position: absolute; justify-self: center; bottom: max(16px, env(safe-area-inset-bottom)); padding: 7px 12px; max-width: 85%; text-align: center; }
.camera-praise { bottom: max(65px, 15%); color: #ffe5a6; font-weight: 800; }
@media (max-width: 480px) {
  .camera-hud { flex-direction: column; align-items: flex-start; }
}
