/* The trio uses the approved photographs on Home and full transparent artwork in practice. */
.friends-home { display:none; }
.theme-choices .theme-choice.friends-choice {
  color:#593747; background:linear-gradient(125deg,#fff2dc,#f8e0e7 72%,#e2eddf)!important;
  border-color:#bf868e;
}
.theme-choice.friends-choice img { width:100%; height:auto; border-radius:12px; filter:none; }
.theme-choice.friends-choice b { font-size:clamp(21px,5.3vw,32px); }
[data-theme-choice="trio"] .theme-swatches i { background:#a94e67; }
[data-theme-choice="trio"] .theme-swatches i:nth-child(2) { background:#f5d596; }
[data-theme-choice="trio"] .theme-swatches i:nth-child(3) { background:#93b99b; }
:root[data-character="trio"] {
  --bg:#fff8ee;--card:#fffdf7;--text:#462f34;--muted:#745a5b;--line:#d5aaa0;
  --surface:#fffdf7;--surface-soft:#fff1e5;--accent:#a64261;--accent2:#657f6a;
  --accent-soft:#f9e3e7;--accent-line:#bd8490;--primary-bg:#97475f;--title-blue:#744154;
  --focus:#a44263;--hero-a:#fff1db;--hero-b:#fbe5e8;--hero-c:#fff6e9;
  --rose-a:#ffe5e9;--rose-b:#efd3de;--rose-line:#c2919e;--purple-a:#eee1ed;--purple-b:#e5d7e6;--purple-line:#b69cb8;
  --mint-a:#e7f0dd;--mint-b:#dce9d5;--mint-line:#9db296;--peach-a:#ffefce;--peach-b:#f5dbb6;--peach-line:#c9ab83;
  --nav-bg:#fff8f2;--violet-bg:#efdee9;--violet-text:#683d59;--progress-track:#f0e4db;
  --good:#315b44;--good-bg:#e2f1dd;--bad:#863b4a;--bad-bg:#f8e3e2;
  --paper-glow:#ffdfbd33;--sprite:url('assets/melody-icons.png');--peek:none;--poses:none;
}
@media(prefers-color-scheme:dark) {
  :root[data-character="trio"] {
    --bg:#2c2025;--card:#392b31;--text:#fff3dd;--muted:#decbc0;--line:#896c66;
    --surface:#3a2b32;--surface-soft:#48313a;--accent:#f39ab4;--accent2:#a8cfac;
    --accent-soft:#603c49;--accent-line:#b6808d;--primary-bg:#8b445e;--title-blue:#ffdeb4;
    --focus:#ffb5c9;--hero-a:#473630;--hero-b:#47323c;--hero-c:#3b2e30;
    --rose-a:#60414b;--rose-b:#573a46;--rose-line:#a67d88;--purple-a:#504054;--purple-b:#49394e;--purple-line:#928099;
    --mint-a:#435748;--mint-b:#384b40;--mint-line:#91aa92;--peach-a:#5d4836;--peach-b:#51402f;--peach-line:#ac8a64;
    --nav-bg:#30242a;--violet-bg:#594253;--violet-text:#ffe6ea;--progress-track:#55464d;
    --good:#baedc2;--good-bg:#344d40;--bad:#ffbdc9;--bad-bg:#5e3942;--paper-glow:#eb9a9b0a;
  }
  .theme-choices .theme-choice.friends-choice { background:linear-gradient(125deg,#593d3d,#52394c 70%,#384b40)!important;color:#fff2dc; }
}
:root[data-character="trio"] body { background-color:var(--bg)!important; }
:root[data-character="trio"] .app { padding-top:max(4px, env(safe-area-inset-top,0px)); }
:root[data-character="trio"] #screen-home>.welcome { display:none!important; }
:root[data-character="trio"] .friends-home {
  display:block; position:relative; isolation:isolate; width:100%; min-width:0; height:auto;
  align-self:start; grid-area:1/1; margin:12px 0 14px; padding:0; overflow:hidden;
  border:2px solid var(--accent-line); border-radius:clamp(16px,4cqw,24px); background:var(--surface-soft);
  box-shadow:0 3px 0 color-mix(in srgb,var(--line) 50%,transparent); cursor:pointer;
  touch-action:manipulation; transition:none; animation:none;
}
:root[data-character="trio"] .friends-home img { width:100%; height:auto; aspect-ratio:3/2; object-fit:contain; display:block; }
.friends-home:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
:root[data-character="trio"] .brand-decoration { display:none; }
:root[data-character="trio"] .brand-logo svg,
:root[data-character="trio"] .appearance-open .story-decor,
:root[data-character="trio"] .appearance-open>svg { display:none!important; }
:root[data-character="trio"] header .brand-logo::after { content:'✦'; color:#cc904a; font:850 clamp(23px,7cqw,37px)/1 sans-serif; }
:root[data-character="trio"] header .appearance-open { transform:none; width:44px;height:44px; min-width:44px;min-height:44px; }
:root[data-character="trio"] header .appearance-open::after { content:'✿'; color:var(--accent); font:800 30px/1 sans-serif; }
:root[data-character="trio"] .practice-decoration { display:none; }
:root[data-character="trio"] .quiz-card::after,
:root[data-character="trio"] .cloud-illustration::after,
:root[data-character="trio"] .modal-mascot.cloud-pose::after { content:none!important; }
:root[data-character="trio"] .theme-about img { object-fit:contain; }
:root[data-character="trio"] .review-hero, :root[data-character="trio"] .help-hero,
:root[data-character="trio"] .scope-page-intro, :root[data-character="trio"] .detail-toolbar,
:root[data-character="trio"] .parent-report>.section-title, :root[data-character="trio"] .cloud-illustration {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
:root[data-character="trio"] .review-hero .panel-mascot, :root[data-character="trio"] .help-hero img,
:root[data-character="trio"] .scope-page-intro img, :root[data-character="trio"] .detail-peek,
:root[data-character="trio"] .parent-report>.section-title .panel-mascot,
:root[data-character="trio"] .cloud-illustration .panel-mascot,
:root[data-character="trio"] .modal-mascot .panel-mascot {
  position:static; display:block; flex:0 1 auto; width:clamp(68px,24%,128px); height:auto;
  max-height:88px; inset:auto; margin:0; object-fit:contain; transform:none; pointer-events:none;
}
:root[data-character="trio"] .modal-mascot .panel-mascot { width:120px; max-width:100%; margin:auto; }
:root[data-character="trio"] .mastery-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(70px,26%); }
:root[data-character="trio"] .mastery-hero>h3,:root[data-character="trio"] .mastery-hero>p { grid-column:1; max-width:none; }
:root[data-character="trio"] .mastery-hero .panel-mascot { position:static; grid-area:1/2/3/3;align-self:center;width:100%;height:auto;object-fit:contain; }
:root[data-character="trio"] .mastery-hero .mastery-summary { grid-column:1/-1; }
:root[data-character="trio"] #screen-quiz .quiz-banner {
  display:grid;grid-template-columns:minmax(0,1fr) clamp(68px,23%,128px);grid-template-rows:auto auto;
  align-content:center;align-items:center;gap:3px 8px;min-height:0;padding:10px 12px;
}
:root[data-character="trio"] #screen-quiz .quiz-banner .toolbar h2 { min-width:0; flex:1; }
:root[data-character="trio"] #screen-quiz .quiz-banner .quiz-peek {
  display:block!important;position:static;grid-area:1/2/3/3;width:100%;height:auto;max-height:88px;
  margin:0;object-fit:contain;transform:none;pointer-events:none;
}
:root[data-character="trio"] .feedback-stage[data-theme="trio"] {
  display:grid;place-items:center;position:relative;inset:auto;width:100%;height:auto;
  min-height:0;margin:8px 0;background:none;overflow:visible;border:0;box-shadow:none;container-type:normal;
}
:root[data-character="trio"] .flashcard.expanded .feedback-stage,
:root[data-character="trio"] .flashcard:has(.card-voice-panel:not([hidden])) .feedback-stage,
:root[data-character="trio"] .quiz-card.finished>.feedback-stage,
:root[data-character="trio"] .feedback-stage[data-feedback-for="quiz"]:empty { display:none; }
.friends-scene { position:relative;width:100%;max-width:440px;aspect-ratio:3/2;isolation:isolate;overflow:hidden;container-type:inline-size; }
.friends-scene>img { display:block;width:100%;height:100%;object-fit:contain;max-width:none;margin:0;filter:none;transition:none;animation:none; }
.feedback-finish .friends-scene { max-width:450px; }
.friends-particles { position:absolute;inset:0;pointer-events:none;overflow:hidden; }
.friends-fleck,.friends-ring { position:absolute;left:50%;top:50%;opacity:0;pointer-events:none; }
.friends-fleck { font:900 1em/1 system-ui,sans-serif;font-size:calc(1cqw * var(--fleck-scale,7));font-style:normal;text-shadow:0 1px 3px #69424d55; }
.friends-ring { width:var(--fleck-size);aspect-ratio:1;border:2px solid #ffdd88;border-radius:50%;box-shadow:0 0 8px #ffe1a0; }
@media(min-width:900px) and (orientation:landscape) {
  :root[data-character="trio"] .friends-home { margin:0; }
}
@media(prefers-reduced-motion:reduce) { .friends-particles { display:none; } }
