/* The "A day with DS" consistency game.
   Lifted from ds-day-3d.html unchanged except for scoping: the prototype was a
   standalone page, so its :root/html/body/.page rules are folded into #g3 or
   dropped. Every other selector is already .g3-* and unique to the game.

   Regenerate by re-running the transform in the integration commit, or diff
   against the prototype's <style> block. */

@property --bg1 { syntax: '<color>'; inherits: true; initial-value: #F7C9A6; }
@property --bg2 { syntax: '<color>'; inherits: true; initial-value: #9DB9E0; }

/* Was :root. box-sizing must be declared HERE, not only on the descendants:
   the prototype pairs :root{border-box} with *{inherit}, so without a source
   on #g3 the children would inherit whatever the site computes.
   The typography line is lifted from the prototype's body{} — .g3 does not
   redeclare it, so dropping body outright would hand the game Poppins.
   Deliberately NOT taken from body: margin:0 (kills .g3's `margin: 0 auto`)
   and background (would override .g3's frame colour — #g3 and .g3 are the
   same element and the id wins). */
#g3 {
  box-sizing: border-box;
  box-sizing: border-box;
  --page: #EEF2EA; --ink: #14150F; --ink-soft: #50564A; --muted: #858B7B;
  --panel: #FFFFFF; --panel-2: #F3F6EF; --line: #DCE3D5;
  --leaf: #2E5B3B; --leaf-hover: #264C31; --leaf-shadow: #1B3724; --leaf-ink: #FFFFFF;
  --leaf-tint: #E4EFE0; --leaf-text: #2E5B3B;
  --turmeric: #E9A83A; --turmeric-deep: #9A6408; --chilli: #C9503A;
  --gold-bg: #FFF1D6; --gold-line: #F0CC86; --gold-ink: #7A4E00;
  --glass: rgba(255,255,255,.86); --glass-line: rgba(255,255,255,.75);
  --shadow: 0 30px 60px -30px rgba(20,21,15,.45);
  --display: 'Baloo 2', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
#g3 *, #g3 *::before, #g3 *::after { box-sizing: inherit; }

/* static/css/mobile.css:34 puts min-height:44px on every bare <button> under
   768px. .g3-mute sets height:34px but no min-height, so the site's rule wins
   and inflates the HUD's circular mute button exactly where the game switches
   to its 3:4 phone layout. The larger option buttons keep the 44px target. */
#g3 .g3-mute { min-height: 0; }

/* Prototype bug, only visible below ~435px. .g3 pairs aspect-ratio:3/4 with
   min-height:580px, so the browser derives WIDTH from the height — 580 * 3/4 =
   435px — and the frame overflows any narrower viewport. It does not scroll,
   because index.html sets overflow-x:clip on html/body, so it simply clips the
   title card off the right edge on a 390px phone.

   max-width:100% is the smaller correction: it discards no value the designer
   chose, where min-height:0 would. The frame becomes 390x580 instead of
   390x520, so it is a touch taller than 3:4 on the narrowest phones and keeps
   the 580px floor that the option buttons need.

   min(1120px, 100%) rather than a breakpoint: the same trap exists ABOVE 760px
   too, where aspect-ratio:16/9 with min-height:520px derives 924px of width and
   clips every viewport between 761 and 924px. The min() keeps the designer's
   1120px cap on desktop while never exceeding the container at any width. */
#g3 { max-width: min(1120px, 100%); }

/* Dark palette, re-keyed from :root to the site's attribute: data-theme lives
   on <body> here, so :root[data-theme=...] would never match and the
   explicit-light escape hatch would be dead. */
@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) #g3 {
    --page: #14150F; --ink: #EEF1E7; --ink-soft: #AEB4A3; --muted: #858B7B;
    --panel: #1D1F17; --panel-2: #262920; --line: #363B2E;
    --leaf: #3F7A50; --leaf-hover: #4A8B5C; --leaf-shadow: #20402A; --leaf-ink: #FFFFFF;
    --leaf-tint: #22331F; --leaf-text: #8CC79A;
    --turmeric: #F0B44C; --turmeric-deep: #F0B44C; --chilli: #E2735C;
    --gold-bg: #3A2E14; --gold-line: #6B5321; --gold-ink: #F6CF83;
    --glass: rgba(29,31,23,.86); --glass-line: rgba(255,255,255,.08);
    --shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  }
}
body[data-theme="dark"] #g3 {
  --page: #14150F; --ink: #EEF1E7; --ink-soft: #AEB4A3; --muted: #858B7B;
  --panel: #1D1F17; --panel-2: #262920; --line: #363B2E;
  --leaf: #3F7A50; --leaf-hover: #4A8B5C; --leaf-shadow: #20402A; --leaf-ink: #FFFFFF;
  --leaf-tint: #22331F; --leaf-text: #8CC79A;
  --turmeric: #F0B44C; --turmeric-deep: #F0B44C; --chilli: #E2735C;
  --gold-bg: #3A2E14; --gold-line: #6B5321; --gold-ink: #F6CF83;
  --glass: rgba(29,31,23,.86); --glass-line: rgba(255,255,255,.08);
  --shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}

.g3 {
  position: relative; max-width: 1120px; margin: 0 auto; aspect-ratio: 16 / 9; min-height: 520px;
  border-radius: 26px; overflow: hidden; isolation: isolate; box-shadow: var(--shadow);
  background: #1A1E14; color: var(--ink); user-select: none; -webkit-user-select: none;
}
.g3-bg { position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 0%, var(--bg1) 0%, var(--bg2) 100%); }
.g3-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: filter .6s ease; }
.g3-canvas.grey { filter: grayscale(.9) brightness(.92); }

.g3-lb { position: absolute; left: 0; right: 0; height: 8%; background: #000; z-index: 6; transition: transform .6s cubic-bezier(.6,0,.3,1); }
.g3-lb.top { top: 0; transform: translateY(-101%); }
.g3-lb.bot { bottom: 0; transform: translateY(101%); }
.g3.cinema .g3-lb { transform: none; }

.g3-pill {
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.45);
}
.g3-hud {
  position: absolute; top: 14px; left: 14px; right: 14px; z-index: 10;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  transition: opacity .4s ease, transform .4s ease;
}
.g3.cinema .g3-hud, .g3.title .g3-hud, .g3.results .g3-hud { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.g3-clock { border-radius: 16px; padding: 8px 14px 7px; line-height: 1.1; }
.g3-clock b { display: block; font-family: var(--display); font-weight: 800; font-size: 21px; font-variant-numeric: tabular-nums; }
.g3-clock span { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.g3-track { list-style: none; margin: 0; padding: 8px 12px; border-radius: 999px; display: flex; gap: 8px; align-items: center; }
.g3-track li { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); display: grid; place-items: center; font-size: 14px; transition: border-color .3s ease, box-shadow .3s ease; }
.g3-track li.now { border-color: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-tint); }
.g3-track li.top { border-color: var(--leaf); background: var(--leaf-tint); }
.g3-track li.mid { border-color: var(--turmeric); }
.g3-track li.low, .g3-track li.miss { border-color: var(--muted); }
.g3-stats { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border-radius: 999px; }
.g3-energy { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.g3-bar { width: 84px; height: 10px; border-radius: 99px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.g3-bar i { display: block; height: 100%; width: 55%; border-radius: inherit; background: var(--leaf); transition: width .6s ease, background-color .6s ease; }
.g3-streak { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1; opacity: .45; transition: opacity .3s ease; }
.g3-streak.hot { opacity: 1; color: var(--turmeric-deep); }
.g3-score { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g3-score small { font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-left: 3px; }
.g3-mute { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--ink); font-size: 15px; cursor: pointer; display: grid; place-items: center; }
.g3-mute:focus-visible, .g3-skip:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }

.g3-card { position: absolute; inset: 0; z-index: 8; display: grid; place-content: center; text-align: center; color: #fff; pointer-events: none; opacity: 0; }
.g3-card b { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 9vw, 108px); line-height: .9; letter-spacing: -.01em; text-shadow: 0 6px 0 rgba(0,0,0,.22), 0 0 40px rgba(0,0,0,.3); }
.g3-card span { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2.6vw, 30px); margin-top: 8px; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.g3-card.show { animation: g3-card 2.1s ease both; }

.g3-skip {
  position: absolute; right: 16px; bottom: calc(8% + 12px); z-index: 9; border: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.35);
  padding: 7px 14px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.g3.cinema .g3-skip { opacity: 1; pointer-events: auto; }

.g3-bubble {
  position: absolute; left: 0; top: 0; z-index: 12; display: flex; align-items: center; gap: 9px;
  width: max-content; max-width: 250px; padding: 8px 13px 8px 8px; border-radius: 18px 18px 18px 5px;
  background: #FFFFFF; color: #14150F; font-size: 14px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.5); pointer-events: none;
  opacity: 0; transform: translate(-12%, -100%) scale(.5); transform-origin: 12% 100%;
  transition: opacity .25s ease, transform .35s cubic-bezier(.3,1.6,.5,1);
}
.g3-bubble.on { opacity: 1; transform: translate(-12%, -100%) scale(1); }
.g3-bubble p { margin: 0; }

.g3-ds { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--leaf); color: #fff; font-family: var(--display); font-weight: 800; font-size: 14px; line-height: 1; padding-top: 2px; }
.g3-ds.sm { width: 20px; height: 20px; font-size: 9px; }
.g3-bubble .g3-ds { background: #2E5B3B; }

/* ---- Bottom panel (question + feedback) ---- */
.g3-panel {
  position: absolute; left: 50%; bottom: 18px; z-index: 20; width: min(820px, calc(100% - 28px));
  border-radius: 24px; padding: 16px 18px 18px; transform: translate(-50%, 0);
  transition: opacity .35s ease, transform .4s cubic-bezier(.3,1.3,.5,1);
}
.g3-panel.hide { opacity: 0; transform: translate(-50%, 30px); pointer-events: none; }
.g3-qhead { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.g3-ring { position: relative; flex: none; width: 50px; height: 50px; }
.g3-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.g3-ring .bg { fill: var(--panel); stroke: var(--line); stroke-width: 4; }
.g3-ring .fg { fill: none; stroke: var(--leaf); stroke-width: 4; stroke-linecap: round; }
.g3-ring.hurry .fg { stroke: var(--chilli); }
.g3-ring.hurry { animation: g3-pulse .5s ease-in-out infinite alternate; }
.g3-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 19px; padding-top: 2px; }
.g3-prompt { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.15; margin: 0; outline: none; }
.g3-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g3-opt {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 9px 11px 9px 9px; border-radius: 16px; border: 2px solid var(--line);
  background: var(--panel); color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; line-height: 1.25;
  cursor: pointer; box-shadow: 0 3px 0 var(--line);
  transition: transform .1s ease, border-color .15s ease, background-color .15s ease, opacity .25s ease, box-shadow .1s ease;
  animation: g3-rise .35s ease both;
}
.g3-opt:nth-child(2) { animation-delay: .07s; }
.g3-opt:nth-child(3) { animation-delay: .14s; }
.g3-opt:hover { border-color: var(--leaf); }
.g3-opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.g3-opt:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.g3-opt[disabled] { cursor: default; }
.g3-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; font-size: 24px; }
.g3-opt-t { flex: 1; }
.g3-key { flex: none; font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
@media (hover: none) { .g3-key { display: none; } }
.g3-opts.locked .g3-opt:not(.picked) { opacity: .3; }
.g3-opt.picked { border-color: var(--leaf); background: var(--leaf-tint); }

.g3-fbtop { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 6px; }
.g3-verdict { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.05; margin: 0; }
.g3-verdict.top { color: var(--leaf-text); }
.g3-verdict.mid { color: var(--turmeric-deep); }
.g3-verdict.low, .g3-verdict.miss { color: var(--ink-soft); }
.g3-chose { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.g3-outcome { margin: 0 0 10px; font-size: 15.5px; }
.g3-tip { display: flex; gap: 11px; align-items: flex-start; padding: 11px 14px; margin: 0 0 12px; border-radius: 16px; background: var(--leaf-tint); }
.g3-tip strong { display: block; font-size: 13px; color: var(--leaf-text); }
.g3-tip p { margin: 0; font-size: 15px; }
.g3-fbfoot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.g3-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.g3-chip { font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 1; padding: 6px 10px 4px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); animation: g3-pop .35s ease both; }
.g3-chip.gold { background: var(--gold-bg); border-color: var(--gold-line); color: var(--gold-ink); }

.g3-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 16px; border: 0; font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .1s ease, background-color .15s ease, box-shadow .1s ease;
}
.g3-btn:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.g3-btn > span { position: relative; }
.g3-btn-primary { background: var(--leaf); color: var(--leaf-ink); box-shadow: 0 4px 0 var(--leaf-shadow); }
.g3-btn-primary:hover { background: var(--leaf-hover); }
.g3-btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--leaf-shadow); }
.g3-btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.g3-btn-ghost:hover { border-color: var(--leaf); }
.g3-btn .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,.2); pointer-events: none; }
.g3-wide { width: 100%; }

/* ---- Start and results cards ---- */
.g3-overlay { position: absolute; inset: 0; z-index: 25; pointer-events: none; }
.g3-sheet {
  position: absolute; pointer-events: auto; border-radius: 24px; padding: 22px 22px 20px;
  animation: g3-rise .5s ease both;
}
.g3-start { left: 28px; top: 50%; transform: translateY(-50%); width: min(400px, 42%); animation-name: g3-fade; }
.g3-start h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; margin: 0 0 8px; }
.g3-start p { margin: 0 0 14px; color: var(--ink-soft); }
.g3-rules { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.g3-rules li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.g3-rules span { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; font-size: 18px; }
.g3-best { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.g3-result { right: 18px; top: 18px; bottom: 18px; width: min(420px, 46%); overflow-y: auto; text-align: center; overscroll-behavior: contain; }
.g3-medal { width: 70px; height: 70px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; background: radial-gradient(circle at 35% 30%, #FFF4D4, #F2C56B 78%); box-shadow: 0 0 0 6px var(--panel-2), 0 12px 24px -10px rgba(154,100,8,.55); animation: g3-pop .6s ease both; }
.g3-rank { font-family: var(--display); font-weight: 800; font-size: 1.85rem; line-height: 1; margin: 0; outline: none; }
.g3-total { font-family: var(--display); font-weight: 800; font-size: 2.9rem; line-height: 1; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.g3-total small { font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); }
.g3-newbest { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--gold-bg); color: var(--gold-ink); border: 1px solid var(--gold-line); }
.g3-msg { color: var(--ink-soft); margin: 6px auto 10px; max-width: 34ch; font-size: 15px; }
.g3-stats3 { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.g3-stats3 div { padding: 9px 4px; }
.g3-stats3 div + div { border-left: 1px solid var(--line); }
.g3-stats3 b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.1; }
.g3-stats3 span { font-size: 12px; color: var(--ink-soft); }
.g3-recap { list-style: none; margin: 0 0 4px; padding: 0; text-align: left; }
.g3-recap li { display: grid; grid-template-columns: 46px 26px 1fr auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.g3-recap time { font-size: 12px; font-weight: 600; color: var(--muted); }
.g3-recap .i { font-size: 17px; display: grid; place-items: center; }
.g3-recap .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g3-recap .p { font-family: var(--display); font-weight: 700; }
.g3-recap .p.top { color: var(--leaf-text); }
.g3-pitch { font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.28; margin: 0 0 12px; }
.g3-actions { display: grid; gap: 10px; }

.g3-float { position: absolute; z-index: 30; pointer-events: none; font-family: var(--display); font-weight: 800; font-size: 26px; color: #FFD166; text-shadow: 0 2px 0 rgba(0,0,0,.35); animation: g3-float 1.1s ease-out forwards; }
.g3-confetti { position: absolute; inset: 0; z-index: 35; pointer-events: none; }

.g3-iris {
  position: absolute; left: 50%; top: 50%; width: var(--d, 3000px); height: var(--d, 3000px);
  transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 300vmax #10120C;
  z-index: 40; pointer-events: none;
  transition: width .55s cubic-bezier(.7,0,.3,1), height .55s cubic-bezier(.7,0,.3,1);
}
.g3-iris.closed { width: 0; height: 0; }

.g3-loading { position: absolute; inset: 0; z-index: 45; display: grid; place-items: center; color: #F4F1E6; font-family: var(--display); font-weight: 700; font-size: 18px; pointer-events: none; transition: opacity .4s ease; }
.g3.ready .g3-loading { opacity: 0; }
.g3-fallback { display: none; position: absolute; inset: 0; z-index: 50; place-content: center; text-align: center; padding: 28px; background: var(--panel); color: var(--ink); }
.g3-fallback h2 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin: 0 0 6px; }
.g3-fallback p { margin: 0 auto 16px; max-width: 40ch; color: var(--ink-soft); }
.g3.no-gl .g3-fallback { display: grid; }
.g3-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes g3-card { 0% { opacity: 0; transform: scale(1.1); } 14% { opacity: 1; transform: none; } 74% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes g3-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes g3-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes g3-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes g3-pulse { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes g3-float { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -64px); } }

@media (max-width: 760px) {
  .g3 { aspect-ratio: 3 / 4; min-height: 580px; border-radius: 20px; }
  .g3-hud { flex-wrap: wrap; top: 10px; left: 10px; right: 10px; gap: 8px; }
  .g3-track { display: none; }
  .g3-clock b { font-size: 18px; }
  .g3-bar { width: 56px; }
  .g3-stats { gap: 9px; padding-left: 12px; }
  .g3-panel { bottom: 10px; width: calc(100% - 20px); padding: 14px 14px 14px; border-radius: 20px; }
  .g3-opts { grid-template-columns: 1fr; gap: 8px; }
  .g3-ico { width: 40px; height: 40px; font-size: 22px; }
  .g3-ring { width: 44px; height: 44px; }
  .g3-fbfoot .g3-btn { width: 100%; }
  .g3-start { left: 10px; right: 10px; top: auto; bottom: 10px; transform: none; width: auto; padding: 18px; }
  .g3-start p { font-size: 15px; }
  .g3-result { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; max-height: 72%; }
  .g3-skip { bottom: calc(8% + 10px); right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .g3 *, .g3 *::before, .g3 *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
