/* Álom Festő – „Álom-szigetek” megjelenés (az Adobe Aqua szellemében). Az összes többi stíluslap után töltődik. */
:root{
  --font-display:"Lexend","Nunito",system-ui,sans-serif;
  --font-body:"Lexend","Nunito",system-ui,sans-serif;
  --aq-ink:#2e2340;
  --aq-muted:#6b5d78;
  --aq-brand:#c2185b;
  --aq-brand-dark:#8e0f40;
  --aq-grad:linear-gradient(135deg,#ff4f8b,#b03cff);
  --aq-shadow:0 4px 14px rgba(94,16,48,.12);
  --aq-bg:#fdeaf2;
  --cur:#f02a7a;
}
/* Szigetenkénti háttér: halvány, egyszínű rajzocska-minta */
body.theme-pink{--aq-bg:#fdeaf2;--aq-line:#f5c3d7}
body.theme-blue{--aq-bg:#e4f2fd;--aq-line:#bcdcf5}
body.theme-green{--aq-bg:#e6f6ea;--aq-line:#bfe3c8}
body.aqua{background-color:var(--aq-bg);color:var(--aq-ink);font-family:var(--font-body);background-attachment:fixed}
body.theme-pink{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='none' stroke='%23f5c3d7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 22l5 10 11 1.5-8 7.5 2 11-10-5.5-10 5.5 2-11-8-7.5 11-1.5z'/%3E%3Cpath d='M120 40c-6-10-22-6-20 6 1 10 20 20 20 20s19-10 20-20c2-12-14-16-20-6z'/%3E%3Cpath d='M60 110q-14 0-12-12 2-10 13-8 4-12 18-10 12 2 12 14 12 0 11 9-1 7-10 7z'/%3E%3Cpath d='M150 112l14 14-22 22-14-14zM128 134l-6 18 18-6'/%3E%3Ccircle cx='20' cy='150' r='9'/%3E%3Cpath d='M95 160q10-10 20 0t20 0'/%3E%3C/g%3E%3C/svg%3E")}
body.theme-blue{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='none' stroke='%23bcdcf5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 40q12-12 24 0t24 0t24 0'/%3E%3Cpath d='M110 30q14-16 30 0q-16 16-30 0zM140 30l12-8v16z'/%3E%3Cpath d='M40 120q0-24 24-24t24 24'/%3E%3Cpath d='M48 120v-16M64 120V96M80 120v-16'/%3E%3Ccircle cx='150' cy='120' r='12'/%3E%3Ccircle cx='150' cy='120' r='4'/%3E%3Cpath d='M100 165q12-12 24 0t24 0'/%3E%3C/g%3E%3C/svg%3E")}
body.theme-green{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='none' stroke='%23bfe3c8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 70l30-44 30 44z'/%3E%3Cpath d='M40 26V8l16 6-16 6'/%3E%3Cpath d='M110 40l14-14 6 6-14 14-8 2z'/%3E%3Cpath d='M100 120q20-30 40 0q-20 30-40 0z'/%3E%3Cpath d='M30 140h40v24H30z'/%3E%3Cpath d='M30 148h40'/%3E%3Ccircle cx='160' cy='70' r='9'/%3E%3C/g%3E%3C/svg%3E")}

/* Közös fejléc a többi oldalon: fehér, letisztult sáv */
body.aqua .site-head{background:rgba(255,255,255,.82);backdrop-filter:blur(10px);color:var(--aq-ink);box-shadow:0 1px 0 rgba(94,16,48,.06)}
body.aqua .site-head::after{display:none}
body.aqua .site-nav .af-brand{color:var(--aq-ink)}
body.aqua .site-nav .af-logo{background:var(--aq-grad);box-shadow:none;width:48px;height:48px;border-radius:14px}
body.aqua .site-nav .af-logo svg path{stroke:#fff}
body.aqua .site-nav .af-brand .name,body.aqua .site-nav .af-brand h1{font-size:24px;font-weight:700;font-family:var(--font-display)}
body.aqua .site-nav .af-brand p{color:var(--aq-muted)}
body.aqua .nav-links a.lnk{color:var(--aq-ink);font-weight:600}
body.aqua .nav-links a.lnk:hover{background:rgba(194,24,91,.08)}
body.aqua .nav-cta{background:var(--aq-brand);color:#fff;box-shadow:0 4px 0 var(--aq-brand-dark)}
body.aqua .nav-cta svg path{fill:#ffd23f}
body.aqua h1,body.aqua h2,body.aqua h3{font-family:var(--font-display);letter-spacing:-.01em}
body.aqua .gal-head h1{font-weight:700}
body.aqua .card,body.aqua .step,body.aqua .stat,body.aqua .streak-card,body.aqua .level,body.aqua .level-tip{border:0;box-shadow:var(--aq-shadow)}
body.aqua .af-btn{font-family:var(--font-display);font-weight:600}
body.aqua .af-btn--primary{background:var(--aq-brand);box-shadow:0 5px 0 var(--aq-brand-dark)}
body.aqua .chip[aria-pressed="true"]{background:var(--aq-brand)}

/* ---------- Rajzoló ---------- */
body.drawing2{margin:0;min-height:100vh;overflow-x:hidden}
.aq-top{position:relative;z-index:5;display:flex;align-items:center;gap:12px;padding:16px 20px 8px}
.aq-left,.aq-right{display:flex;align-items:center;gap:10px}
.aq-right{margin-left:auto}
.aq-round{width:52px;height:52px;flex:none;border:0;border-radius:50%;background:#fff;box-shadow:var(--aq-shadow);display:grid;place-items:center;cursor:pointer;color:var(--aq-ink);text-decoration:none;list-style:none;transition:transform 150ms ease}
.aq-round svg{width:24px;height:24px}
.aq-round:hover{transform:scale(1.05)}
.aq-round:disabled{opacity:.45;cursor:default;transform:none}
.aq-round.who .who-av{width:auto;height:auto;background:none;font-size:24px}
.aq-pill{height:52px;padding:0 20px 0 16px;border:0;border-radius:999px;background:#fff;box-shadow:var(--aq-shadow);display:flex;align-items:center;gap:8px;font-family:var(--font-display);font-size:17px;font-weight:600;color:var(--aq-ink);cursor:pointer}
.aq-pill svg{width:22px;height:22px}
.aq-chip{height:44px;padding:0 14px;border-radius:999px;background:#fff;box-shadow:var(--aq-shadow);display:flex;align-items:center;gap:6px;font-weight:600;font-size:16px}
.aq-chip svg{width:20px;height:20px}
.aq-done{height:52px;padding:0 24px 0 16px;border:4px solid #fff;border-radius:999px;background:var(--aq-brand);color:#fff;box-shadow:var(--aq-shadow);display:flex;align-items:center;gap:8px;font-family:var(--font-display);font-size:18px;font-weight:600;cursor:pointer;transition:transform 150ms ease}
.aq-done svg{width:22px;height:22px}
.aq-done:hover{transform:scale(1.03)}
.aq-done:active{transform:scale(.97)}

/* Hangvezérlés: fehér pirula a fejléc közepén */
.aq-voice.af-prompt{flex:0 1 620px;min-width:0;margin:0 auto;height:56px;padding:0 6px;gap:10px;background:#fff;color:var(--aq-ink);border-radius:999px;box-shadow:var(--aq-shadow)}
.aq-voice .af-mic{width:44px;height:44px;border:0;background:var(--aq-grad);color:#fff}
.aq-voice .af-mic svg{width:22px;height:22px;stroke:#fff}
.aq-voice .af-mic[aria-pressed="true"]{box-shadow:0 0 0 4px #ffd23f}
.aq-voice .af-prompt-text{flex:1;min-width:0}
.aq-voice .af-prompt-text small{font-family:var(--font-body);font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--aq-muted)}
.aq-voice .af-prompt-text strong{font-family:var(--font-display);font-size:16px;line-height:20px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aq-voice .wave{color:var(--aq-brand);margin-left:0}
.aq-voice[data-state="error"]{background:#fff0f4}
.aq-voice[data-state="error"] .af-prompt-text strong{color:var(--aq-brand)}
.aq-go{height:44px;padding:0 16px;border:0;border-radius:999px;background:var(--aq-brand);color:#fff;display:flex;align-items:center;gap:6px;font-family:var(--font-display);font-size:15px;font-weight:600;cursor:pointer;flex:none}
.aq-go svg{width:16px;height:16px;color:#ffd23f}
.aq-go:disabled{opacity:.5}

/* Továbbiak menü */
.aq-more{position:relative}
.aq-more summary::-webkit-details-marker{display:none}
.aq-menu{position:absolute;right:0;top:60px;z-index:20;min-width:240px;padding:8px;background:#fff;border-radius:18px;box-shadow:0 18px 40px rgba(94,16,48,.18);display:flex;flex-direction:column}
.aq-menu button,.aq-menu a{display:flex;align-items:center;gap:12px;height:48px;padding:0 14px;border:0;border-radius:12px;background:none;color:var(--aq-ink);font-family:var(--font-body);font-size:16px;font-weight:500;text-decoration:none;cursor:pointer;text-align:left}
.aq-menu button:hover,.aq-menu a:hover{background:#fdeef4}
.aq-menu svg{width:22px;height:22px;color:var(--aq-brand)}

/* Színpad: méret – vászon – színek */
.aq-main{position:relative;padding:8px 20px 0}
body.drawing2 .story{margin:0 auto 12px}
.aq-stage{display:grid;grid-template-columns:72px minmax(0,1fr) 72px;gap:20px;align-items:center;height:calc(100vh - 220px);min-height:420px}
body.drawing2 .af-canvas{grid-column:auto;height:100%;max-height:none;aspect-ratio:auto;border:0;border-radius:4px;box-shadow:0 2px 4px rgba(94,16,48,.06),0 16px 40px rgba(94,16,48,.10);background:#fff}
body.drawing2 .af-canvas .empty .bubble{font-family:var(--font-display);font-weight:600}
body.drawing2 .zoom-ctl button{font-family:var(--font-display)}

/* Vastag, elvékonyodó méret-sín */
.aq-sizes.af-sizes{flex-direction:column;justify-self:center;gap:14px;padding:16px 0 26px;width:58px;background:#fff;border-radius:30px 30px 999px 999px;box-shadow:var(--aq-shadow);position:relative}
.aq-sizes .af-size{width:46px;height:46px}
.aq-sizes .af-size[aria-pressed="true"]{background:#fdeef4;box-shadow:inset 0 0 0 3px var(--cur)}

/* Színek: függőleges pöttyök */
.aq-colors{display:flex;flex-direction:column;align-items:center;gap:10px;justify-self:center;max-height:100%;overflow-y:auto;overflow-x:hidden;padding:6px}
.aq-wheel{position:relative;width:44px;height:44px;flex:none;border-radius:50%;border:3px solid #fff;background:conic-gradient(#ff4f4f,#ffb84f,#ffe44f,#5fd26b,#4fc3ff,#5b6cff,#c04fff,#ff4fa8,#ff4f4f);box-shadow:var(--aq-shadow);cursor:pointer}
.aq-wheel input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.aq-colors .af-palette{display:flex;flex-direction:column;flex-wrap:nowrap;gap:10px;padding:0;margin:0;background:none;box-shadow:none;border:0}
.aq-colors .af-crayon{width:44px;height:44px;padding:0;font-size:0;line-height:0;gap:0;border-radius:50%}
.aq-colors .af-crayon .stick{width:40px;height:40px;box-shadow:none}
.aq-colors .af-crayon .stick::after{display:none}
.aq-colors .af-crayon[aria-pressed="true"] .stick{transform:none;box-shadow:0 0 0 4px #fff,0 0 0 7px var(--c);animation:aqpop 260ms ease}
.aq-colors .af-crayon .stick.white{box-shadow:inset 0 0 0 3px #f06fa4}
.aq-colors .af-crayon[aria-pressed="true"] .stick.white{box-shadow:inset 0 0 0 3px #f06fa4,0 0 0 4px #fff,0 0 0 7px #f06fa4}
@keyframes aqpop{0%{transform:scale(.8)}60%{transform:scale(1.15)}100%{transform:scale(1)}}

/* Lépések bal alul */
.aq-history{position:fixed;left:20px;bottom:20px;z-index:6;display:flex;gap:10px}
.aq-history .aq-round{background:rgba(255,255,255,.85);color:var(--aq-muted)}

/* Illusztrált eszközök alul: a kiválasztott kiemelkedik */
.aq-tools.af-toolbar{position:fixed;left:50%;bottom:-8px;transform:translateX(-50%);z-index:6;display:flex;align-items:flex-end;gap:22px;height:120px;padding:0 10px}
.aq-tools .af-tool{width:auto;height:auto;padding:0;border:0;background:none;box-shadow:none;border-radius:0;display:flex;flex-direction:column;align-items:center;transform:translateY(14px);transition:transform 220ms cubic-bezier(.3,1.6,.5,1)}
.aq-tools .af-tool:hover{transform:translateY(4px);background:none}
.aq-tools .af-tool[aria-pressed="true"]{transform:translateY(-10px);background:none;box-shadow:none}
.aq-tools .af-tool svg{width:auto;stroke:none;filter:drop-shadow(0 4px 6px rgba(94,16,48,.18))}
.aq-tools .af-tool[aria-pressed="true"] svg{stroke:none}
.aq-tools .af-tool > span:not(.tool-emoji){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.aq-tools .tool-emoji{font-size:54px;line-height:96px;height:96px}
.tint{fill:var(--cur)}
@media (prefers-reduced-motion:reduce){.aq-tools .af-tool,.aq-colors .af-crayon .stick{transition:none;animation:none}}

/* Pötty a buborékban (értesítések) */
body.aqua .toast{display:flex;align-items:center;gap:12px;background:#fff;color:var(--aq-brand);font-family:var(--font-display);font-weight:600;font-size:19px;padding:10px 22px 10px 10px;box-shadow:0 14px 34px rgba(94,16,48,.2);bottom:140px}
body.aqua .toast::before{content:"";width:46px;height:48px;flex:none;background:url("../icons/mascot.svg") center/contain no-repeat}

/* Telefon */
@media (max-width:767px){
  .aq-top{flex-wrap:wrap;padding:12px 12px 6px;gap:8px}
  .aq-left{order:1}
  .aq-right{order:2;gap:6px}
  .aq-voice.af-prompt{order:3;flex:1 1 100%}
  .aq-round{width:44px;height:44px}
  .aq-pill{height:44px;padding:0 14px 0 12px;font-size:15px}
  .aq-chip{height:40px;padding:0 10px;font-size:14px}
  .aq-done{height:44px;padding:0 14px 0 10px;font-size:16px}
  .aq-done .lbl{position:static}
  .aq-voice .af-prompt-text small{display:none}
  .aq-go{padding:0 12px}
  .aq-main{padding:6px 12px 0}
  .aq-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;height:auto;gap:10px}
  body.drawing2 .af-canvas{order:1;height:auto;aspect-ratio:4/3}
  .aq-colors{order:2;flex-direction:row;justify-self:stretch;overflow-x:auto;overflow-y:hidden;padding:6px 4px}
  .aq-colors .af-palette{flex-direction:row}
  .aq-sizes.af-sizes{order:3;flex-direction:row;justify-self:start;width:auto;padding:4px 10px;border-radius:999px;margin-left:110px}
  .aq-sizes .af-size{width:40px;height:40px}
  .aq-history{bottom:auto;position:static;margin-top:-50px;margin-bottom:8px}
  .aq-tools.af-toolbar{gap:10px;height:104px}
  .aq-tools .af-tool svg{transform:scale(.8);transform-origin:bottom center}
  body.drawing2{padding-bottom:110px}
  body.aqua .toast{bottom:120px}
}
/* javítások: régi szabályok felülírása */
body.drawing2 .aq-right .af-stars{display:none!important}
.aq-chip{white-space:nowrap}
.aq-tools .af-tool svg{height:auto}
.aq-tools [data-tool="pencil"] svg{width:26px;height:110px}
.aq-tools [data-tool="brush"] svg{width:40px;height:124px}
.aq-tools [data-tool="fill"] svg{width:84px;height:88px}
.aq-tools [data-tool="eraser"] svg{width:58px;height:92px}
.aq-tools [data-tool="extra"] svg{width:62px;height:96px}
@media (max-width:1100px){.aq-voice .af-prompt-text small{display:none}}
@media (max-width:767px){
  .aq-right{flex:1;justify-content:flex-end}
  .aq-left .aq-pill span{display:none}
  .aq-left .aq-pill{padding:0 12px}
  .aq-chip{display:none}
  body.drawing2 .af-canvas{aspect-ratio:auto;height:max(280px,calc(100vh - 420px))}
  body.drawing2 .af-canvas .empty .mascot{width:90px}
  body.drawing2 .af-canvas .empty .bubble{font-size:17px;line-height:22px;padding:8px 14px}
}
@media (max-width:767px){
  .aq-top{column-gap:6px}
  .aq-left,.aq-right{gap:6px}
  .aq-round{width:40px;height:40px}
  .aq-round svg{width:20px;height:20px}
  .aq-round.who .who-av{font-size:20px}
  .aq-left .aq-pill{height:40px;padding:0 10px}
  .aq-done{height:40px;padding:0 12px 0 8px;font-size:15px;border-width:3px}
}
