/* Local UI candidate: retain the live onboarding, gift, ad and recovery controllers. */
body.ui-refresh .support-guide-message {
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  align-items:center;
  gap:16px;
  margin:24px 0;
  color:var(--ink,#152d31);
}
body.ui-refresh .support-guide-message > img {
  display:block;
  width:88px;
  height:auto;
  object-fit:contain;
}
body.ui-refresh .support-guide-message > p { margin:0; font-size:15px; line-height:1.8; font-weight:700; }

/* Seven illustrated lessons remain complete, with one idea leading each page. */
body.ui-refresh .onboarding-modal { align-items:center; }
body.ui-refresh .onboarding-modal .onboarding-card {
  width:min(600px,100%);
  max-height:calc(100dvh - 32px);
  padding:28px;
  color:var(--ink,#152d31);
  background:#fffdf7;
  text-align:left;
}
body.ui-refresh .onboarding-header { padding:0 64px 0 0; text-align:left; }
body.ui-refresh .onboarding-header h2 { font-size:19px; line-height:1.6; letter-spacing:0; }
body.ui-refresh .onboarding-header .section-kicker { font-size:12px; color:var(--muted,#596a6c); font-weight:500; margin:0 0 4px; }
body.ui-refresh .onboarding-title-sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
body.ui-refresh .onboarding-close-button { min-height:44px; font-size:12px; padding:8px; top:-8px; font-weight:500; }
body.ui-refresh .onboarding-slider { margin:12px 0 20px; }
body.ui-refresh .onboarding-comic {
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  gap:20px 16px;
  min-height:0;
  overflow:visible;
  border-radius:0;
  background:transparent;
  isolation:auto;
}
body.ui-refresh .onboarding-comic::before,
body.ui-refresh .onboarding-comic::after,
body.ui-refresh .onboarding-board-guide::before,
body.ui-refresh .onboarding-board-guide::after,
body.ui-refresh .onboarding-scene-number,
body.ui-refresh .onboarding-speech::before,
body.ui-refresh .onboarding-board-speech::after { display:none; }
body.ui-refresh .onboarding-gojuo-figure { grid-column:1; grid-row:1; position:relative; width:88px; height:auto; margin:0; align-self:center; }
body.ui-refresh .onboarding-gojuo { display:block; width:88px; height:auto; margin:0; filter:none; }
body.ui-refresh .onboarding-gojuo-figure .gojuo-name-tag { display:none; }
body.ui-refresh .onboarding-speech {
  grid-column:2;
  grid-row:1;
  width:auto;
  margin:0;
  padding:16px 18px;
  justify-self:stretch;
  background:#edf3ee;
  border-radius:16px;
  font-size:16px!important;
  font-weight:700!important;
  line-height:1.8!important;
  text-align:left;
}
body.ui-refresh .onboarding-speech br,
body.ui-refresh .onboarding-scene-copy h3 br,
body.ui-refresh .onboarding-board-content > h3 br,
body.ui-refresh .onboarding-board-speech br { display:none; }
body.ui-refresh .onboarding-comic .onboarding-scene-copy { grid-column:1/-1; grid-row:2; padding:0; width:100%; }
body.ui-refresh .onboarding-comic .onboarding-scene-copy h3,
body.ui-refresh .onboarding-board-content > h3 { font-size:clamp(24px,5.5vw,28px); line-height:1.6; letter-spacing:0; font-weight:700; margin:0 0 20px; max-width:none; padding:0; }
body.ui-refresh .onboarding-scene-copy > p { font-size:14px; font-weight:400; line-height:1.85; margin-top:20px; }
body.ui-refresh .onboarding-association-example { width:100%; gap:12px; }
body.ui-refresh .onboarding-example-topic,
body.ui-refresh .onboarding-example-answer { padding:14px 16px; border-radius:10px; background:#f0f2ec; }
body.ui-refresh .onboarding-example-topic { border:0; }
body.ui-refresh .onboarding-example-topic strong { font-size:20px; }
body.ui-refresh .onboarding-example-topic small { background:transparent; padding:0; color:var(--muted,#596a6c); font-size:12px; font-weight:500; }
body.ui-refresh .onboarding-example-answer b { font-size:17px; overflow:visible; white-space:normal; overflow-wrap:anywhere; }
body.ui-refresh .onboarding-example-answer span { font-size:12px; font-weight:600; }
body.ui-refresh .onboarding-example-answer.is-ng { background:#f9ece8; }
body.ui-refresh .onboarding-example-answer.is-ok { background:#edf3ee; }
body.ui-refresh .onboarding-scene-copy > .onboarding-ranking-note { margin-top:18px; font-size:14px; line-height:1.8; }
body.ui-refresh .onboarding-comic-word { justify-content:center; gap:8px; margin:24px 0 16px; }
body.ui-refresh .onboarding-comic-word b { width:50px; height:54px; font-size:30px; border-width:1px; }
body.ui-refresh .onboarding-score-pop { display:flex; justify-content:center; margin:16px 0 20px; transform:none; font-weight:500; }
body.ui-refresh .onboarding-score-pop strong { font-size:30px; }
body.ui-refresh .onboarding-zero-examples { width:100%; gap:10px; }
body.ui-refresh .onboarding-zero-example { grid-template-columns:50px auto minmax(0,1fr); padding:12px; background:#f1f2eb; }
body.ui-refresh .onboarding-zero-example > small,
body.ui-refresh .onboarding-zero-score { font-size:12px; font-weight:500; }
body.ui-refresh .onboarding-scene-copy > .onboarding-consumption-note { width:auto; padding:0; border:0; background:transparent; font-size:14px; line-height:1.8; margin-top:18px; white-space:normal; }
body.ui-refresh .onboarding-word-topic { display:flex; width:auto; margin:0 0 12px; padding:0; background:transparent; }
body.ui-refresh .onboarding-word-topic strong { font-size:17px!important; }
body.ui-refresh .onboarding-word-race { width:100%; gap:12px; }
body.ui-refresh .onboarding-word-race > span,
body.ui-refresh .onboarding-word-race > span.winner { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:16px; background:#f1f2eb; box-shadow:none; }
body.ui-refresh .onboarding-word-race > span.winner { background:#fff0bb; }
body.ui-refresh .onboarding-word-race b { font-size:clamp(19px,4.5vw,25px); white-space:normal; overflow-wrap:anywhere; }
body.ui-refresh .onboarding-word-race small,
body.ui-refresh .onboarding-word-race .winner small { font-size:20px; color:var(--accent,#12616c); font-weight:700; }
body.ui-refresh .onboarding-judge-examples { margin:24px 0; }
body.ui-refresh .onboarding-judge-topic { display:flex; align-items:baseline; gap:16px; margin:0 0 16px; padding:14px 18px; background:#f0f2ec; border-radius:10px; }
body.ui-refresh .onboarding-judge-topic > span { font-size:12px; color:var(--muted); }
body.ui-refresh .onboarding-judge-topic > strong { font-size:24px; }
body.ui-refresh .onboarding-judge-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
body.ui-refresh .onboarding-judge-answer { display:grid; gap:8px; padding:20px; border-radius:12px; background:#edf3ee; }
body.ui-refresh .onboarding-judge-answer.is-ng { background:#faeeee; }
body.ui-refresh .onboarding-judge-label { color:var(--accent); font-size:14px; font-weight:700; }
body.ui-refresh .onboarding-judge-answer.is-ng .onboarding-judge-label { color:var(--borrowed); }
body.ui-refresh .onboarding-judge-words { display:flex; flex-wrap:wrap; gap:8px; }
body.ui-refresh .onboarding-judge-words > strong { display:inline-block; margin:0; padding:6px 10px; border-radius:8px; background:rgba(255,255,255,.75); font-size:22px; line-height:1.5; color:var(--ink); }
body.ui-refresh .onboarding-judge-answer > p { margin:0; color:var(--muted); font-size:13px; line-height:1.7; }
body.ui-refresh .onboarding-board-guide { height:auto; min-height:0; overflow:visible; padding:0; background:transparent; border-radius:0; }
body.ui-refresh .onboarding-board-content { height:auto; padding:0; }
body.ui-refresh .onboarding-board-intro { max-width:none; margin:0 0 20px; font-size:14px; line-height:1.85; font-weight:400; }
body.ui-refresh .onboarding-board-visual,
body.ui-refresh .onboarding-chain-visual { display:flex; flex-direction:column; gap:24px; width:100%; margin:0; }
body.ui-refresh .onboarding-range-diagram { flex:none; width:min(100%,280px); height:224px; margin:0 auto; border-radius:12px; }
body.ui-refresh .onboarding-board-character { position:static; display:grid; grid-template-columns:88px minmax(0,1fr); gap:16px; align-items:center; width:100%; height:auto; margin:0 0 20px; }
body.ui-refresh .onboarding-board-character img { position:static; grid-column:1; grid-row:1; width:88px; height:auto; margin:0; filter:none; }
body.ui-refresh .onboarding-board-speech { position:static; grid-column:2; grid-row:1; width:auto; padding:16px 18px; margin:0; font-size:16px; line-height:1.8; background:#edf3ee; text-align:left; font-weight:700!important; }
body.ui-refresh .onboarding-board-speech b { font-size:18px; }
body.ui-refresh .onboarding-range-result,
body.ui-refresh .onboarding-yellow-result,
body.ui-refresh .onboarding-chain-result { position:static; width:100%; margin:22px 0 0; font-size:14px; line-height:1.8; font-weight:500; white-space:normal; }
body.ui-refresh .onboarding-range-result b,
body.ui-refresh .onboarding-yellow-result b,
body.ui-refresh .onboarding-chain-result b { font-size:20px; }
body.ui-refresh .onboarding-chain-example { width:100%; padding:20px; margin:0; border:0; background:#f1f2eb; }
body.ui-refresh .onboarding-chain-topic { font-size:16px; margin-bottom:20px; }
body.ui-refresh .onboarding-chain-word > b,
body.ui-refresh .onboarding-chain-pair > b { flex:0 0 44px; width:44px; height:44px; font-size:30px; font-weight:700; line-height:1; }
body.ui-refresh .onboarding-chain-row { display:flex; flex-wrap:wrap; gap:10px; }
body.ui-refresh .onboarding-chain-word { flex:1 0 auto; }
body.ui-refresh .onboarding-chain-badge { font-size:14px; padding:8px; }
body.ui-refresh .onboarding-dots { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; margin:8px 0 0; }
body.ui-refresh .onboarding-dots button { position:relative; width:100%; height:36px; min-height:36px; padding:0; border:0; background:transparent; border-radius:4px; transform:none; }
body.ui-refresh .onboarding-dots button::after { content:""; position:absolute; inset:16px 0; border-radius:4px; background:#d8ded8; }
body.ui-refresh .onboarding-dots button.is-complete::after { background:#8bb5ad; }
body.ui-refresh .onboarding-dots button.active::after { background:var(--accent,#12616c); }
body.ui-refresh .onboarding-dots button:hover::after { background:var(--accent,#12616c); }
body.ui-refresh .onboarding-details { border:0; border-top:1px solid #d8ded8; border-radius:0; background:transparent; margin:16px 0; }
body.ui-refresh .onboarding-details summary { padding:14px 0; min-height:44px; font-weight:500; font-size:14px; }
body.ui-refresh .onboarding-details ul { padding-left:20px; }
body.ui-refresh .onboarding-details li { font-size:13px; line-height:1.9; font-weight:400; margin-bottom:10px; }
body.ui-refresh .onboarding-actions { position:sticky; bottom:-28px; z-index:4; padding:16px 0 0; margin-top:16px; background:#fffdf7; border-top:1px solid #e0e4da; gap:12px; }
body.ui-refresh .onboarding-actions button { min-height:48px; font-size:15px; }
body.ui-refresh .onboarding-modal .onboarding-name-step { padding:0; min-height:0; background:transparent; border:0; }
body.ui-refresh .onboarding-name-step > .support-guide-message { margin:0 0 24px; }
body.ui-refresh .onboarding-name-step label { gap:12px; }
body.ui-refresh .onboarding-name-step label > span { font-size:14px; font-weight:600; }
body.ui-refresh .onboarding-name-step input { min-height:52px; padding:12px 16px; border-radius:10px; }
body.ui-refresh .onboarding-name-step > p { font-size:12px; line-height:1.8; font-weight:400; }

/* The live practice instructions follow the board without adding a second large heading. */
body.ui-refresh .tutorial-preview-panel { top:0; width:100%; padding:12px 0; margin-bottom:24px; border:0; border-bottom:1px solid #d5ddd5; border-radius:0; background:#fffdf7; box-shadow:0 6px 12px #253a3109; }
body.ui-refresh .tutorial-preview-header { margin-bottom:10px; }
body.ui-refresh .tutorial-preview-step { background:transparent; color:var(--muted,#596a6c); padding:0; font-size:12px; }
body.ui-refresh .tutorial-preview-guidance { display:grid; grid-template-columns:60px minmax(0,1fr); gap:4px 12px; }
body.ui-refresh .tutorial-guide-character { grid-column:1; grid-row:1/3; width:60px; height:auto; }
body.ui-refresh .tutorial-preview-topic,
body.ui-refresh .tutorial-preview-target { grid-column:2; }
body.ui-refresh .tutorial-preview-target { color:var(--accent,#12616c); font-size:14px; font-weight:700; }
body.ui-refresh .tutorial-preview-topic > strong { font-size:18px; }
body.ui-refresh.tutorial-preview-complete .tutorial-preview-guidance,
body.ui-refresh.tutorial-preview-complete .tutorial-preview-progress { display:none; }
body.ui-refresh.tutorial-preview-complete .tutorial-preview-panel { position:static; padding:16px 0; box-shadow:none; }
body.ui-refresh .tutorial-preview-completion > div { display:grid; grid-template-columns:1fr; gap:12px; }
body.ui-refresh .tutorial-preview-completion button { width:100%; min-height:48px; }
body.ui-refresh .tutorial-preview-feedback-card { width:min(520px,100%); padding:28px; text-align:left; }
body.ui-refresh .tutorial-preview-feedback-card .tutorial-preview-feedback-label { margin:0; color:var(--muted,#596a6c); font-size:12px; font-weight:500; }
body.ui-refresh .tutorial-feedback-message { grid-template-columns:100px minmax(0,1fr); gap:20px; margin:24px 0 28px; }
body.ui-refresh .tutorial-feedback-message > img { width:100px; }
body.ui-refresh .tutorial-preview-feedback-card h2 { margin:0; font-size:19px; line-height:1.8; text-align:left; font-weight:700; }
body.ui-refresh .tutorial-preview-feedback-card button { width:100%; min-height:50px; font-size:16px; }

/* Gifts: the next action and its price lead; full conditions remain available. */
body.ui-refresh .gift-sheet { width:min(620px,100%); padding:28px; background:#fffdf7; color:var(--ink,#152d31); }
body.ui-refresh .gift-sheet .my-note-heading { align-items:flex-start; gap:20px; margin-bottom:24px; }
body.ui-refresh .gift-sheet h2 { margin:0; font-size:24px; line-height:1.6; }
body.ui-refresh .gift-sheet h3 { font-size:19px; margin:28px 0 16px; }
body.ui-refresh .gift-sheet p { font-size:15px; line-height:1.85; }
body.ui-refresh .gift-sheet .note-caption { font-size:12px; color:var(--muted,#596a6c); line-height:1.9; }
body.ui-refresh .gift-type-options { gap:0; margin:0 0 28px; border-bottom:1px solid #bdcfca; }
body.ui-refresh .gift-type-options button { min-height:52px; border:0; border-bottom:3px solid transparent; border-radius:0; background:transparent; color:var(--muted,#596a6c); font-weight:500; padding:12px 8px; }
body.ui-refresh .gift-type-options button[aria-pressed="true"] { border-bottom-color:var(--accent,#12616c); color:var(--accent,#12616c); background:transparent; font-weight:700; }
body.ui-refresh .gift-remaining { display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin:20px 0 12px; padding:16px 0; border-block:1px solid #d8ded8; }
body.ui-refresh .gift-remaining > span { color:var(--muted,#596a6c); font-size:14px; }
body.ui-refresh .gift-remaining > strong { font-size:28px; font-variant-numeric:tabular-nums; }
body.ui-refresh .gift-remaining small { font-size:14px; font-weight:500; margin-left:6px; }
body.ui-refresh .gift-products { grid-template-columns:1fr; gap:16px; margin:24px 0; }
body.ui-refresh .gift-products .post-game-paypay-button { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; align-items:center; justify-items:stretch; padding:24px 20px; border:1px solid #c91f35; border-radius:14px; background:#e32940; color:#fff; box-shadow:none; text-align:left; }
body.ui-refresh .gift-products .post-game-paypay-copy { gap:8px; }
body.ui-refresh .gift-products .post-game-paypay-copy strong { font-size:23px; color:#fff; }
body.ui-refresh .gift-products .post-game-paypay-copy .gift-product-price { font-size:18px; color:#fff; }
body.ui-refresh .gift-products .post-game-paypay-copy small { color:#fff; font-size:12px; }
/* Official artwork keeps its own clear space, aspect ratio, color and border. */
body.ui-refresh .gift-products .post-game-paypay-mark { justify-self:center; width:min(100%,336px); height:auto; padding:0; border:0; border-radius:0; background:transparent; filter:none; opacity:1; box-shadow:none; transform:none; }
body.ui-refresh .gift-products .post-game-paypay-button:hover:not(:disabled),
body.ui-refresh #costProtectionPayPayButton:hover:not(:disabled) { border-color:#b3192e; background:#cf2238; filter:none; }
body.ui-refresh .gift-products .post-game-paypay-button:focus-visible,
body.ui-refresh #costProtectionPayPayButton:focus-visible { outline:3px solid var(--accent,#12616c); outline-offset:4px; }
body.ui-refresh .gift-products .post-game-paypay-button:hover:not(:disabled) .post-game-paypay-mark,
body.ui-refresh #costProtectionPayPayButton:hover:not(:disabled) .post-game-paypay-mark { box-shadow:none; transform:none; }
body.ui-refresh .gift-products .post-game-paypay-button:disabled,
body.ui-refresh #costProtectionPayPayButton:disabled { border-color:#a95d67; background:#a95d67; opacity:1; filter:none; cursor:default; }
body.ui-refresh #costProtectionPayPayButton { gap:16px; border:1px solid #c91f35; border-radius:14px; background:#e32940; color:#fff; padding:20px; }
body.ui-refresh #costProtectionPayPayButton .post-game-paypay-copy :is(strong,small) { color:#fff; opacity:1; }
body.ui-refresh #costProtectionPayPayButton .post-game-paypay-mark { width:min(100%,336px); height:auto; padding:0; border:0; border-radius:0; background:transparent; opacity:1; filter:none; box-shadow:none; transform:none; }
body.ui-refresh .gift-purchase-details { margin-top:28px; border-top:1px solid #d8ded8; }
body.ui-refresh .gift-purchase-details summary { padding:16px 0; min-height:44px; font-size:14px; cursor:pointer; color:var(--muted,#596a6c); }
body.ui-refresh .gift-conditions { margin:0 0 20px; font-size:13px; line-height:1.9; }
body.ui-refresh .gift-conditions li + li { margin-top:12px; }
body.ui-refresh .gift-sheet .gift-play-button { background:var(--accent,#12616c); border-color:var(--accent,#12616c); border-radius:14px; box-shadow:none; min-height:52px; font-size:16px; }
body.ui-refresh .gift-sheet .gift-play-button:disabled { background:#e4e8e6; border-color:#ccd4d1; color:#596a6c; }
body.ui-refresh .gift-reactions { grid-template-columns:1fr 1fr; gap:12px; margin:28px 0; }
body.ui-refresh .gift-reactions legend { font-size:16px; margin-bottom:8px; }
body.ui-refresh .gift-reaction-option span { display:flex; align-items:center; min-height:52px; padding:12px; border:1px solid #c9d5cd; border-radius:10px; color:var(--ink,#152d31); background:transparent; font-weight:500; font-size:14px; }
body.ui-refresh .gift-reaction-option input:checked + span { border-color:var(--accent,#12616c); background:#e8f2ef; color:var(--accent,#12616c); box-shadow:inset 0 0 0 1px var(--accent,#12616c); font-weight:700; }

/* Ad progress and recovery safety states use their existing authoritative state. */
body.ui-refresh .reward-ad-card { width:min(560px,100%); padding:28px; }
body.ui-refresh .reward-ad-card h2 { font-size:24px; line-height:1.6; margin:8px 0 20px; }
body.ui-refresh .support-ad-guide { grid-template-columns:72px minmax(0,1fr); margin:20px 0; }
body.ui-refresh .support-ad-guide > img { width:72px; }
body.ui-refresh .support-ad-guide > p { font-size:14px; }
body.ui-refresh .reward-ad-creative { display:grid; gap:12px; min-height:200px; align-content:center; padding:28px 24px; border-radius:16px; background:#edf3ee; text-align:center; margin:24px 0; }
body.ui-refresh .reward-ad-creative strong { font-size:24px; line-height:1.6; }
body.ui-refresh .reward-ad-creative p { font-size:14px; line-height:1.8; margin:0; }
body.ui-refresh .reward-ad-progress { height:8px; background:#e2e8e3; border-radius:8px; }
body.ui-refresh .reward-ad-progress span { background:var(--accent,#12616c); }
body.ui-refresh .reward-ad-countdown { margin:16px 0 8px; text-align:center; font-size:18px; font-variant-numeric:tabular-nums; }
body.ui-refresh .reward-ad-status { font-size:12px; line-height:1.8; color:var(--muted,#596a6c); }
body.ui-refresh .reward-ad-actions { gap:12px; margin-top:24px; }
body.ui-refresh .reward-ad-actions button { min-height:48px; font-size:14px; padding:12px 16px; }
body.ui-refresh .recovery-sheet { width:min(640px,100%); padding:28px; background:#fffdf7; color:var(--ink,#152d31); }
body.ui-refresh .recovery-heading { align-items:flex-start; margin-bottom:24px; }
body.ui-refresh .recovery-heading h2 { font-size:24px; line-height:1.6; }
body.ui-refresh .recovery-ui { font-family:inherit; color:var(--ink,#152d31); }
body.ui-refresh .recovery-ui section { padding:24px 0 4px; margin:24px 0; }
body.ui-refresh .recovery-ui h2 { font-size:20px; line-height:1.7; margin-bottom:16px; }
body.ui-refresh .recovery-profile { background:transparent; border:0; border-bottom:1px solid #d8ded8; padding:8px 0 20px; border-radius:0; margin-bottom:20px; }
body.ui-refresh .recovery-profile strong { color:var(--ink,#152d31); font-size:22px; }
body.ui-refresh .recovery-ui button { font-family:inherit; font-weight:600; border-radius:10px; }
body.ui-refresh .recovery-ui button.primary { background:var(--accent,#12616c); border-color:var(--accent,#12616c); }
body.ui-refresh .recovery-ui .recovery-warning { border-left:3px solid #dfc57b; border-radius:0 12px 12px 0; padding:20px; line-height:1.9; }
body.ui-refresh .recovery-private { padding:24px 16px; border:1px dashed #97aaa8; background:#f3f5f1; border-radius:14px; }
body.ui-refresh .recovery-receive-details { padding-top:16px; border-top:1px solid #d8ded8; margin:28px 0; }
body.ui-refresh .recovery-receive-details > summary { min-height:44px; padding:12px 0; cursor:pointer; font-size:16px; font-weight:600; }
body.ui-refresh .recovery-receive-details section { border-top:0; margin-top:0; }
body.ui-refresh .recovery-receive-details section > h2 { display:none; }

@media (max-width:600px) {
  body.ui-refresh .onboarding-modal .onboarding-card,
  body.ui-refresh .gift-sheet,
  body.ui-refresh .recovery-sheet,
  body.ui-refresh .reward-ad-card,
  body.ui-refresh .tutorial-preview-feedback-card { padding:24px 20px; }
  body.ui-refresh .onboarding-actions { bottom:-24px; }
  body.ui-refresh .onboarding-header h2 { font-size:17px; }
  body.ui-refresh .onboarding-example-answer { flex-wrap:wrap; gap:6px 12px; }
  body.ui-refresh .onboarding-word-race > span,
  body.ui-refresh .onboarding-word-race > span.winner { grid-template-columns:1fr; gap:6px; padding:14px; }
  body.ui-refresh .onboarding-word-race small { text-align:right; }
}
@media (max-width:480px) {
  body.ui-refresh .onboarding-judge-options { grid-template-columns:1fr; }
}
@media (max-width:359px) {
  body.ui-refresh .support-guide-message,
  body.ui-refresh .onboarding-comic,
  body.ui-refresh .onboarding-board-character { grid-template-columns:64px minmax(0,1fr); gap:12px; }
  body.ui-refresh .support-guide-message > img,
  body.ui-refresh .onboarding-gojuo-figure,
  body.ui-refresh .onboarding-gojuo,
  body.ui-refresh .onboarding-board-character img { width:64px; }
  body.ui-refresh .onboarding-speech,
  body.ui-refresh .onboarding-board-speech { padding:12px; font-size:14px!important; }
  body.ui-refresh .gift-reactions { grid-template-columns:1fr; }
  body.ui-refresh .tutorial-preview-feedback-card h2 { font-size:17px; }
  body.ui-refresh .onboarding-chain-example { padding:14px 10px; }
  body.ui-refresh .onboarding-chain-row { flex-wrap:wrap; }
}

/* Keep the repeat bonus with its example when a full horizontal row cannot fit. */
@media (max-width:480px) {
  body.ui-refresh .onboarding-chain-row.is-up { flex-direction:column; align-items:flex-start; gap:12px; }
  body.ui-refresh .onboarding-chain-row.is-up > i { display:none; }
  body.ui-refresh .onboarding-chain-row.is-up .onboarding-chain-word { flex:none; }
  body.ui-refresh .onboarding-chain-row.is-up .onboarding-chain-badge { align-self:flex-start; }
}
