/* Eggonomy: parlak, şeker renkli arayüz. Telefonda oyun her zaman yatay (dikey tutulursa body döndürülür, html.rot).
   Düzen sınıfları JS'ten gelir: html.land = kısa yatay ekran (telefon), html.port = dar dikey pencere (masaüstü). */
:root{
  --bg:#FFF4E2; --panel:#FFF8EE; --panel2:#FFEFD9; --card:#FFFFFF; --ink:#3B2F4A; --muted:#8A7B93; --line:#F1DFC6;
  --gold:#FFB800; --good:#25A55A; --bad:#E5484D; --warn:#F08A24; --gem:#18B39A;
  --sun1:#FFE15A; --sun2:#FFB300; --sun3:#E08A00; --mint1:#6BE39A; --mint2:#22B864; --mint3:#15904A;
  --sky1:#74D3FF; --sky2:#3AA4F4; --sky3:#2483D0; --pink:#FF7AA2; --blue:#5B8DEF; --purple:#8B6CF0;
  --f-display:"Fredoka","Figtree",system-ui,sans-serif;
  --f-body:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
  --dots:radial-gradient(#F6E2C6 1.2px,transparent 1.4px) 0 0/16px 16px;
  --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px);
  --panelw:400px; --bh:38px; --bh2:46px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 var(--f-body);overflow:hidden;-webkit-font-smoothing:antialiased;user-select:none;-webkit-user-select:none;font-feature-settings:"tnum" 1}
/* dikey telefonda her şey 90° döner: oyun yatay oynanır */
html.rot body{position:fixed;top:0;left:0;width:var(--aw);height:var(--ah);transform-origin:0 0;transform:rotate(90deg) translateY(-100%)}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--sky2);outline-offset:2px}
.ic{width:18px;height:18px;flex:none;display:inline-block;vertical-align:-4px}
.ic.lg{width:28px;height:28px}.ic.xl{width:44px;height:44px}

#app{height:100%;display:grid;grid-template-columns:minmax(0,1fr) var(--panelw);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"hud hud" "stage panel"}

/* ---- üst çubuk ---- */
.hud{grid-area:hud;display:flex;align-items:center;gap:10px;padding:calc(7px + var(--safe-t)) 12px 8px;background:linear-gradient(180deg,var(--sky1),var(--sky2));box-shadow:inset 0 -3px 0 var(--sky3),inset 0 2px 0 rgba(255,255,255,.45),0 6px 16px rgba(36,131,208,.25);color:#fff;position:relative;z-index:5}
.lv{display:flex;align-items:center;gap:8px;border:0;background:none;cursor:pointer;padding:0;min-width:0}
.lvn{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font:700 19px/1 var(--f-display);color:#7A4A00;background:radial-gradient(circle at 35% 28%,#FFF6BF,var(--sun1) 45%,var(--sun2) 80%);box-shadow:0 0 0 3px #fff,0 3px 0 3px var(--sun3),0 6px 10px rgba(0,0,0,.18);flex:none;position:relative}
.hud .xp{display:flex;flex-direction:column;gap:3px;width:116px}
.hud .xp i{display:block;height:12px;border-radius:12px;background:rgba(10,60,110,.35);box-shadow:inset 0 2px 3px rgba(0,0,0,.2),0 0 0 2px rgba(255,255,255,.7);position:relative;overflow:hidden}
.hud .xp i::before{content:"";position:absolute;inset:0;width:calc(var(--p,0)*100%);border-radius:inherit;background:linear-gradient(180deg,#B6F57A,#4CCB4C);box-shadow:inset 0 2px 0 rgba(255,255,255,.55);transition:width .4s cubic-bezier(.3,1.4,.5,1)}
.hud .xp i::after{content:"";position:absolute;top:0;bottom:0;width:30px;left:-40px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);animation:sweep 2.6s ease-in-out infinite}
.hud .xp small{font:600 11px var(--f-display);color:#fff;white-space:nowrap;text-shadow:0 1px 0 rgba(0,0,0,.2)}
.lv.near .lvn{animation:glowpulse 1.1s ease-in-out infinite}
.lv.near .xp i::before{background:linear-gradient(180deg,#FFF27A,#FFB800)}
@keyframes glowpulse{50%{box-shadow:0 0 0 3px #fff,0 3px 0 3px var(--sun3),0 0 22px 6px rgba(255,225,90,.95)}}
@keyframes sweep{0%,55%{left:-40px}100%{left:110%}}
/* sıradaki açılım */
.next{display:flex;align-items:center;gap:6px;height:34px;padding:0 10px 0 4px;border-radius:999px;border:0;background:rgba(255,255,255,.22);box-shadow:inset 0 0 0 2px rgba(255,255,255,.55);cursor:pointer;color:#fff;white-space:nowrap;min-width:0}
.next .nlv{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--sky3);font:700 13px/1 var(--f-display)}
.next .ic{width:22px;height:22px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
.next .ntx{display:flex;flex-direction:column;line-height:1.05;min-width:0}.next small{font:600 9.5px var(--f-body);opacity:.9;text-transform:uppercase;letter-spacing:.04em}.next b{font:600 12.5px var(--f-display);overflow:hidden;text-overflow:ellipsis;max-width:120px}
.pills{display:flex;gap:7px;flex:1;min-width:0;flex-wrap:wrap;justify-content:flex-end}
.pill{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px 0 4px;border-radius:999px;background:#fff;border:0;color:var(--ink);box-shadow:0 3px 0 rgba(10,70,130,.35),inset 0 -2px 0 rgba(0,0,0,.06);cursor:pointer;white-space:nowrap;position:relative}
.pill .ic{width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.2))}
.pill b{font:700 15px var(--f-display)}
.pill .plus{width:18px;height:18px;border-radius:50%;background:linear-gradient(180deg,var(--mint1),var(--mint2));color:#fff;font:800 14px/18px var(--f-body);text-align:center;margin-left:2px;box-shadow:0 2px 0 var(--mint3)}
.pill.warn{background:#FFE3E0;color:#B3261E;animation:wiggle .9s ease-in-out infinite}
.pill.gain{animation:gain .7s ease-out}
@keyframes gain{0%{box-shadow:0 3px 0 rgba(10,70,130,.35),0 0 0 0 rgba(255,225,90,.9)}30%{transform:scale(1.14);box-shadow:0 3px 0 rgba(10,70,130,.35),0 0 18px 6px rgba(255,225,90,.95)}100%{transform:scale(1)}}
.hud-r{display:flex;gap:6px}
.icon-btn{width:34px;height:34px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.25);border:0;box-shadow:inset 0 0 0 2px rgba(255,255,255,.55);color:#fff;cursor:pointer}
.icon-btn svg{width:18px;height:18px}
.icon-btn[aria-pressed="false"]{opacity:.55}
.bump{animation:bump .42s cubic-bezier(.3,1.6,.5,1)}
@keyframes bump{35%{transform:scale(1.2)}}
@keyframes wiggle{0%,100%{transform:rotate(0)}25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}}

/* ---- sahne ---- */
.stage{grid-area:stage;position:relative;min-width:0;min-height:0;overflow:hidden;background:#6BBA5A}
.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
#world{touch-action:none;cursor:grab}#world.hover{cursor:pointer}#world.dragging{cursor:grabbing}
.cam{position:absolute;right:12px;bottom:12px;display:flex;gap:6px}
.cam button{width:var(--bh2);height:var(--bh2);display:grid;place-items:center;border-radius:14px;border:0;background:#fff;color:var(--ink);cursor:pointer;box-shadow:0 4px 0 rgba(0,0,0,.18)}
.cam button:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(0,0,0,.18)}
.cam svg{width:18px;height:18px}
.boost{position:absolute;left:12px;top:12px;padding:7px 14px;border-radius:999px;background:linear-gradient(180deg,var(--mint1),var(--mint2));color:#fff;font:600 14px var(--f-display);box-shadow:0 4px 0 var(--mint3),0 8px 16px rgba(0,0,0,.2)}
.fab{position:absolute;left:12px;bottom:12px;display:flex;align-items:center;gap:10px;max-width:min(400px,calc(100% - 170px));padding:7px 8px 7px 10px;border-radius:18px;border:0;background:#fff;color:var(--ink);box-shadow:0 5px 0 rgba(0,0,0,.14),0 12px 24px rgba(0,0,0,.2);cursor:pointer;text-align:left;z-index:3}
.fab .ic{width:32px;height:32px}
.fab span{display:flex;flex-direction:column;min-width:0}
.fab b{font:600 14px/1.2 var(--f-display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fab small{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fab em{font-style:normal;font:600 14px var(--f-display);height:var(--bh);display:grid;place-items:center;padding:0 14px;border-radius:12px;background:linear-gradient(180deg,var(--sun1),var(--sun2));color:#6A3E00;box-shadow:inset 0 2px 0 rgba(255,255,255,.6),0 3px 0 var(--sun3);white-space:nowrap;position:relative;overflow:hidden}
.fab.go{animation:fabgo 1.6s ease-in-out infinite}
.fab.go em::after,.btn.shine::after{content:"";position:absolute;top:-10%;bottom:-10%;width:34%;left:-50%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.85),transparent);transform:skewX(-18deg);animation:sweep 2.2s ease-in-out infinite;pointer-events:none}
@keyframes fabgo{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.fab.warn{background:#FFE9E6}.fab.warn em{background:linear-gradient(180deg,#FF8A7A,#F0503F);color:#fff;box-shadow:inset 0 2px 0 rgba(255,255,255,.4),0 3px 0 #B9352A}
.toasts{position:absolute;top:12px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none;width:max-content;max-width:calc(100% - 24px);z-index:4}
.toast{background:#fff;color:var(--ink);padding:9px 16px;border-radius:999px;font:600 13.5px var(--f-display);box-shadow:0 4px 0 rgba(0,0,0,.12),0 10px 20px rgba(0,0,0,.18);animation:tin .35s cubic-bezier(.3,1.6,.5,1);text-align:center;display:flex;align-items:center;gap:6px}
.toast.warn{background:#FFE3E0;color:#B3261E}
.toast.out{opacity:0;transition:opacity .4s}
@keyframes tin{from{opacity:0;transform:translateY(-10px) scale(.85)}}

/* ---- panel ---- */
.panel{grid-area:panel;display:flex;flex-direction:column;min-height:0;background:var(--panel) var(--dots);box-shadow:-4px 0 0 rgba(255,255,255,.7),-10px 0 24px rgba(80,50,20,.12);position:relative;z-index:2}
.tabs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:8px 8px 0;flex:none}
.tab{display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 1px 6px;min-width:0;white-space:nowrap;border:0;border-radius:14px 14px 0 0;background:none;cursor:pointer;color:var(--muted);font:600 12px var(--f-display);position:relative}
.tab svg{width:24px;height:24px;stroke-width:2.2}
.tab:nth-child(1) svg{color:var(--mint2)}.tab:nth-child(2) svg{color:#FF8A3D}.tab:nth-child(3) svg{color:#F0503F}.tab:nth-child(4) svg{color:var(--pink)}.tab:nth-child(5) svg{color:var(--blue)}.tab:nth-child(6) svg{color:var(--sun2)}
.tab[aria-selected="true"]{background:#fff;color:var(--ink);box-shadow:0 -3px 8px rgba(80,50,20,.06)}
.tab[aria-selected="true"] svg{transform:scale(1.12);filter:drop-shadow(0 2px 0 rgba(0,0,0,.08))}
.tab.dotted::after{content:"";position:absolute;top:4px;left:calc(50% + 9px);width:12px;height:12px;border-radius:50%;background:#FF4D5E;border:2px solid #fff;animation:dot 1.2s ease-in-out infinite;box-shadow:0 0 0 0 rgba(255,77,94,.5)}
@keyframes dot{50%{transform:scale(1.25);box-shadow:0 0 0 5px rgba(255,77,94,0)}}
.body{flex:1;min-height:0;overflow-y:auto;padding:16px 16px 22px;display:flex;flex-direction:column;gap:18px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;overflow-x:hidden;background:#fff;border-radius:18px 18px 0 0;margin:0 6px}
.sec{display:flex;flex-direction:column;gap:10px}
.ph{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:2px}
.ph h2{margin:0;font:600 21px/1.15 var(--f-display);color:var(--ink)}
.ph h3{margin:0;font:600 17px/1.2 var(--f-display);display:flex;align-items:center;gap:6px}
h3.sub{margin:6px 0 0;font:600 16px var(--f-display)}
.meta{font:600 12.5px var(--f-body);color:var(--muted);white-space:nowrap}
.lead{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.tip{margin:0;font-size:12.5px;color:var(--muted)}
.bad{color:var(--bad)!important;font-weight:700}
.chip{padding:4px 10px;border-radius:999px;font:600 12px var(--f-display);background:#EAF8EF;color:var(--good);white-space:nowrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:var(--bh);min-height:var(--bh);min-width:72px;padding:0 14px;border-radius:12px;background:linear-gradient(180deg,#fff,#F4EEFA);border:0;color:var(--ink);cursor:pointer;font:600 14px/1.15 var(--f-display);text-align:center;box-shadow:inset 0 0 0 2px #EADFF3,0 3px 0 #DCCDE8;transition:transform .07s,box-shadow .07s;white-space:nowrap;position:relative;overflow:hidden}
.btn .ic{width:18px;height:18px}
.btn:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 0 0 2px #EADFF3,0 0 0 #DCCDE8}
.btn.primary{background:linear-gradient(180deg,var(--sun1),var(--sun2));color:#6A3E00;box-shadow:inset 0 2px 0 rgba(255,255,255,.6),0 3px 0 var(--sun3)}
.btn.primary:active:not(:disabled){box-shadow:inset 0 2px 0 rgba(255,255,255,.6),0 0 0 var(--sun3)}
.btn.ad{background:linear-gradient(180deg,var(--mint1),var(--mint2));color:#fff;box-shadow:inset 0 2px 0 rgba(255,255,255,.4),0 3px 0 var(--mint3);text-shadow:0 1px 0 rgba(0,0,0,.15)}
.btn.danger{background:linear-gradient(180deg,#FF8A7A,#F0503F);color:#fff;box-shadow:inset 0 2px 0 rgba(255,255,255,.35),0 3px 0 #B9352A}
.btn.sm{}
.btn.wide{width:100%;height:var(--bh2);min-height:var(--bh2);font-size:15.5px;border-radius:14px}
.btn:disabled{opacity:.45;box-shadow:inset 0 0 0 2px #EADFF3;transform:none;cursor:default;filter:saturate(.4)}
.btnrow{display:grid;grid-auto-columns:1fr;grid-auto-flow:column;gap:8px;align-items:center}
.btnrow .btn{width:100%;min-width:0}
.btnrow.wrap{display:flex;flex-wrap:wrap}.btnrow.wrap .btn{flex:1 1 30%}
.bar{display:block;height:10px;border-radius:999px;background:#F1E8F6;box-shadow:inset 0 2px 2px rgba(0,0,0,.08);overflow:hidden;flex:1;min-width:50px}
.bar.big{height:14px}
.bar>i{display:block;height:100%;width:calc(var(--p,0)*100%);background:repeating-linear-gradient(-45deg,rgba(255,255,255,.28) 0 6px,transparent 6px 12px),linear-gradient(180deg,var(--mint1),var(--mint2));background-size:17px 17px,100% 100%;border-radius:inherit;transition:width .25s linear;animation:stripes 1s linear infinite}
.bar.gold>i{background:repeating-linear-gradient(-45deg,rgba(255,255,255,.3) 0 6px,transparent 6px 12px),linear-gradient(180deg,var(--sun1),var(--sun2));background-size:17px 17px,100% 100%}
.bar.low>i{background:linear-gradient(180deg,#FF8A7A,#F0503F)}
@keyframes stripes{to{background-position:17px 0,0 0}}
.portrait{border-radius:14px;background:radial-gradient(circle at 50% 75%,#E9F9DF,#C6EBB0);display:block;flex:none}
.portrait.decor{background:radial-gradient(circle at 50% 75%,#E5F4FF,#BFE2FA)}
.lock{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:999px;background:#F3EEF7;font:600 12px var(--f-display);color:var(--muted);white-space:nowrap}
.lock svg{width:13px;height:13px}
.mult{font-weight:600;color:var(--muted);font-size:13px}

/* ambar ve hayvanlar */
.inv{display:grid;grid-template-columns:repeat(auto-fill,minmax(66px,1fr));gap:7px}
.it{display:inline-flex;align-items:center;gap:3px;font:600 13.5px var(--f-display)}
.it.big{flex-direction:column;gap:0;padding:7px 8px 6px;min-width:64px;border-radius:14px;background:#FFF9EC;border:0;box-shadow:inset 0 0 0 2px #FBE9C9,0 3px 0 #F3DDB4;cursor:pointer;color:inherit}
.it.big:active{transform:translateY(2px)}
.it.big .ic{width:30px;height:30px}.it.big b{font-size:16px}.it.big small{font:600 10.5px var(--f-body);color:var(--muted)}
.it.ok b{color:var(--good)}.it.no b{color:var(--bad)}
.rows{display:flex;flex-direction:column;gap:7px}
.row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:center;padding:6px 8px 6px 6px;border-radius:16px;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9}
.row>.btn,.up>.btn,.quest>.btn,.ach>.btn,.recipe>.btn,.chest>.btn{min-width:84px}
.row b{display:block;font:600 15px var(--f-display)}.row small{display:block;font-size:12px;color:var(--muted)}
.boostcard{flex-direction:row;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:18px;background:linear-gradient(135deg,#E3FFF0,#C9F5DC);box-shadow:inset 0 0 0 2px #B5EBCB}
.boostcard div{display:flex;flex-direction:column}.boostcard b{font:600 15px var(--f-display)}.boostcard small{font-size:12px;color:#4E7F63}
.boostcard.on{background:linear-gradient(135deg,#C9F5DC,#9BEBBE)}

/* siparişler */
.orders{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.order{min-width:0;display:flex;flex-direction:column;gap:8px;padding:12px 10px 10px;border-radius:18px;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9,0 3px 0 #F3DDB4;position:relative}
.order.ready{background:linear-gradient(180deg,#F1FFF4,#DDF8E5);box-shadow:inset 0 0 0 3px #6BE39A,0 3px 0 #22B864;animation:readyglow 1.6s ease-in-out infinite}
@keyframes readyglow{50%{box-shadow:inset 0 0 0 3px #6BE39A,0 3px 0 #22B864,0 0 18px 2px rgba(107,227,154,.75)}}
.order.near{box-shadow:inset 0 0 0 2px #FFC46B,0 3px 0 #F3C27A}
.ribbon{position:absolute;top:-9px;right:10px;padding:2px 9px;border-radius:999px;background:linear-gradient(180deg,var(--mint1),var(--mint2));color:#fff;font:700 11px var(--f-display);letter-spacing:.04em;box-shadow:0 2px 0 var(--mint3);animation:bump 1.6s ease-in-out infinite}
.ribbon.near{background:linear-gradient(180deg,#FFC46B,#FF9A2E);box-shadow:0 2px 0 #D2741A;animation:none}
.order header{display:flex;align-items:center;gap:6px;min-width:0}
.order header b{font:600 14px var(--f-display);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order .x{width:26px;height:26px;border:0;background:rgba(0,0,0,.04);color:var(--muted);cursor:pointer;display:grid;place-items:center;border-radius:50%}
.order .x svg{width:14px;height:14px}
.av{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font:700 11px var(--f-display);color:#fff;flex:none;box-shadow:0 0 0 2px #fff,0 2px 0 2px rgba(0,0,0,.08)}
.its{display:flex;flex-wrap:wrap;gap:4px 10px}
.its .ic{width:26px;height:26px}
.rws{display:flex;flex-wrap:wrap;gap:4px 10px}.rws.center{justify-content:center}
.rw{display:inline-flex;align-items:center;gap:3px;font:700 14px var(--f-display);color:#B26A00}
.rw.gem{color:#0E8F7B}.rw.xp{color:#6A55D8}
.order.wait{align-items:stretch;justify-content:center;background:repeating-linear-gradient(45deg,#FFF9EC,#FFF9EC 9px,#FFF1D9 9px,#FFF1D9 18px)}
.ow{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--muted);text-align:center}.ow svg{width:24px;height:24px}.ow b{font:600 13px var(--f-display);color:var(--ink)}

/* atölyeler */
.shops{display:flex;flex-direction:column;gap:12px}
.shop{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:18px;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9,0 3px 0 #F3DDB4}
.shop.locked{opacity:.75}
.shop header{display:flex;align-items:center;justify-content:space-between;gap:8px}.shop header b{font:600 17px var(--f-display)}
.outs{display:flex;gap:6px}.outs .ic{width:32px;height:32px}
.queue{display:flex;gap:7px;flex-wrap:wrap}
.slot{width:50px;height:50px;border-radius:14px;border:2px dashed #EBD7B6;background:#fff;display:grid;place-items:center;position:relative;overflow:hidden}
.slot .ic{width:32px;height:32px}
.slot.run{border:0;box-shadow:inset 0 0 0 3px var(--sun1);background:#FFF8DA}
.slot.run .ic{animation:bob 1s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-3px) rotate(-4deg)}}
.slot i{position:absolute;left:0;bottom:0;height:5px;width:calc(var(--p,0)*100%);background:var(--sun2)}
.slot.add{cursor:pointer;font:700 20px/1 var(--f-display);color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center}.slot.add small{font-size:9.5px}
.recipes{display:flex;flex-direction:column;gap:6px}
.recipe{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:7px 8px;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 2px #F6EBD8}
.recipe.locked{opacity:.65}
.recipe .out{display:flex;align-items:center;gap:5px;min-width:0}.recipe .out .ic{width:30px;height:30px}.recipe .out b{font:600 14px var(--f-display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recipe .ins{display:flex;gap:6px;flex-wrap:wrap}.recipe small{font-size:11.5px;color:var(--muted);white-space:nowrap}

/* mağaza */
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:4px;border-radius:999px;background:#F3EEF7}
.seg button{position:relative;height:var(--bh);border:0;border-radius:999px;background:none;cursor:pointer;font:600 13.5px var(--f-display);color:var(--muted)}
.seg button[aria-pressed="true"]{background:linear-gradient(180deg,var(--sky1),var(--sky2));color:#fff;box-shadow:0 3px 0 var(--sky3)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 7px 8px;border-radius:18px;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9,0 3px 0 #F3DDB4;text-align:center;min-width:0;transition:transform .15s}
.card:not(.locked):hover{transform:translateY(-2px)}
.card b{font:600 14px/1.2 var(--f-display)}.card small{font-size:11.5px;color:var(--muted);line-height:1.25}
.card .btn{width:100%;margin-top:auto}
.card.locked .portrait{filter:grayscale(.85) brightness(.9)}
.ups{display:flex;flex-direction:column;gap:7px}
.up{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:16px;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9}
.up b{font:600 15px var(--f-display)}.up small{display:block;font-size:12px;color:var(--muted)}.up small b{font-size:12.5px;color:var(--ink)}
.up.done{opacity:.7}
.pips{display:inline-flex;gap:3px;margin-left:6px;vertical-align:2px}.pips i{width:14px;height:7px;border-radius:4px;background:#EADFF3}.pips i.on{background:linear-gradient(180deg,var(--sun1),var(--sun2))}
.build{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:18px;background:#FFF8DA;box-shadow:inset 0 0 0 2px #FFE59A}
.beauty{display:flex;flex-direction:column;padding:12px 14px;border-radius:18px;background:linear-gradient(135deg,#FFE9F1,#FFD3E2);box-shadow:inset 0 0 0 2px #FFC0D6}.beauty b{font:600 19px var(--f-display);color:#C2386A}.beauty small{color:#9A5873}
.iaps{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.iap{position:relative;display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:18px;background:#F4F8FF;box-shadow:inset 0 0 0 2px #D8E6FF,0 3px 0 #C7D9FA}
.iap b{font:600 16px var(--f-display)}.iap small{font-size:12px;color:var(--muted)}.iap .btn{margin-top:6px}
.iap.hot{background:linear-gradient(180deg,#FFFBE6,#FFF0B8);box-shadow:inset 0 0 0 3px var(--sun1),0 3px 0 var(--sun3)}
.iap .tag{position:absolute;top:-9px;right:10px;padding:2px 10px;border-radius:999px;background:linear-gradient(180deg,#FF7A8A,#F0405A);color:#fff;font:700 11px var(--f-display);box-shadow:0 2px 0 #B82640}
.iap.free{flex-direction:row;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#E3FFF0,#C9F5DC);box-shadow:inset 0 0 0 2px #B5EBCB}.iap.free .btn{margin:0}
.hist{display:flex;flex-direction:column;gap:5px}.hist div{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 10px;border-radius:12px;background:#FFF9EC;font-size:13px}

/* görevler */
.days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.day{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;border-radius:14px;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9;font-size:11px;text-align:center}
.day .rw{flex-direction:column;font-size:12px}.day .ic{width:24px;height:24px}.day small{font:600 10px var(--f-display);color:var(--muted)}
.day.now{background:linear-gradient(180deg,#FFFBE0,#FFEDA0);box-shadow:inset 0 0 0 3px var(--sun1),0 0 14px rgba(255,200,40,.6);animation:bump 1.4s ease-in-out infinite}
.day.got{opacity:.45}
.quests,.achs{display:flex;flex-direction:column;gap:7px}
.quest,.ach{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9}
.quest>div,.ach>div{display:flex;flex-direction:column;gap:4px;min-width:0}.quest b,.ach b{font:600 14px var(--f-display)}.quest small,.ach small{font-size:11.5px;color:var(--muted)}
.quest.done{background:linear-gradient(180deg,#F1FFF4,#DDF8E5);box-shadow:inset 0 0 0 3px #6BE39A;animation:readyglow 1.6s ease-in-out infinite}.quest.claimed{opacity:.5}
.ach{grid-template-columns:auto minmax(0,1fr) auto}.ach.max{opacity:.6}
.stars{display:flex;gap:2px}.stars i{width:14px;height:14px;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);background:#EADFF3}.stars i.on{background:linear-gradient(180deg,var(--sun1),var(--sun2))}
.chest{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:16px;background:#F7F2FB;box-shadow:inset 0 0 0 2px #EADFF3}
.chest div{display:flex;flex-direction:column}.chest b{font:600 15px var(--f-display)}.chest small{font-size:12px;color:var(--muted)}
.chest.ready{background:linear-gradient(180deg,#FFFBE0,#FFEDA0);box-shadow:inset 0 0 0 3px var(--sun1);animation:wiggle .8s ease-in-out infinite}

/* pencereler */
.modal{position:fixed;inset:0;display:grid;place-items:center;padding:16px;background:rgba(40,30,70,.5);z-index:50;animation:fade .2s;backdrop-filter:blur(3px)}
@keyframes fade{from{opacity:0}}
.modal-card{width:min(430px,100%);max-height:calc(100% - 24px);overflow:auto;background:#fff;border-radius:26px;padding:22px;display:flex;flex-direction:column;gap:12px;box-shadow:0 0 0 5px rgba(255,255,255,.6),0 8px 0 rgba(0,0,0,.1),0 26px 60px rgba(30,20,60,.4);animation:pop .4s cubic-bezier(.2,1.5,.4,1)}
@keyframes pop{from{transform:scale(.7);opacity:0}}
.modal-card h2{margin:0;font:700 26px/1.1 var(--f-display);color:var(--ink)}
.kpis{display:grid;grid-template-columns:1fr 1fr;border-radius:16px;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9;overflow:hidden}
.kpis>div{padding:10px 12px;display:flex;flex-direction:column;gap:2px}.kpis>div+div{border-left:2px dashed #FBE9C9}
.kpis span{font-size:12px;color:var(--muted);font-weight:600}.kpis b{font:600 19px/1.2 var(--f-display);display:flex;align-items:center;gap:4px}
.lvlup{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;position:relative}
.lvlup h2{background:linear-gradient(180deg,#FFB800,#FF7A3D);-webkit-background-clip:text;background-clip:text;color:transparent!important;font-size:30px!important}
.lvbig{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;font:700 52px/1 var(--f-display);color:#7A4A00;background:radial-gradient(circle at 35% 28%,#FFF8C8,var(--sun1) 45%,var(--sun2) 85%);box-shadow:0 0 0 6px #fff,0 6px 0 6px var(--sun3),0 0 40px 10px rgba(255,210,60,.65);animation:pop .6s cubic-bezier(.2,1.7,.4,1),glowpulse 1.4s ease-in-out .6s infinite;position:relative;z-index:1}
.burst{position:absolute;top:-80px;left:50%;width:360px;height:360px;margin-left:-180px;background:repeating-conic-gradient(rgba(255,200,40,.35) 0 9deg,transparent 9deg 18deg);border-radius:50%;animation:spin 12s linear infinite;pointer-events:none;mask:radial-gradient(circle,#000 25%,transparent 68%);-webkit-mask:radial-gradient(circle,#000 25%,transparent 68%)}
@keyframes spin{to{transform:rotate(1turn)}}
.unlocks{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.unlocks div{display:flex;flex-direction:column;align-items:center;gap:3px;width:88px;padding:8px 4px;border-radius:16px;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9;animation:pop .5s cubic-bezier(.2,1.7,.4,1) backwards;animation-delay:calc(.35s + var(--i,0) * .14s)}.unlocks b{font:600 13px/1.2 var(--f-display)}.unlocks small{font-size:11px;color:var(--muted)}
.away{display:flex;flex-direction:column;gap:6px}
.away div{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:14px;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9;font-size:14px}

/* uçan simgeler, yazılar, yıldızlar, konfeti, reklam ekranı */
.fly{position:fixed;left:0;top:0;width:28px;height:28px;margin:-14px 0 0 -14px;pointer-events:none;z-index:70;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3))}
.float{position:fixed;pointer-events:none;z-index:71;font:700 17px var(--f-display);color:#fff;text-shadow:0 2px 0 rgba(60,40,80,.55),0 0 8px rgba(0,0,0,.3);white-space:nowrap;display:flex;align-items:center;gap:3px;-webkit-text-stroke:.5px rgba(60,40,80,.4)}
.float .ic{width:20px;height:20px}
.float.big{font-size:26px;color:#FFE15A;text-shadow:0 3px 0 #B86A00,0 0 14px rgba(255,180,0,.7)}.float.big .ic{width:28px;height:28px}
.float.combo{font-size:22px;color:#FF7AA2;text-shadow:0 3px 0 #A3305A,0 0 12px rgba(255,122,162,.7)}.float.combo small{font-size:14px;color:#fff}
.star{position:fixed;width:12px;height:12px;pointer-events:none;z-index:72;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}
.confetti{position:fixed;inset:0;pointer-events:none;z-index:60}
.adsim{position:fixed;inset:0;z-index:90;background:rgba(20,15,40,.85);display:grid;place-items:center;padding:20px}
.adsim-card{display:flex;flex-direction:column;align-items:center;gap:10px;padding:26px;border-radius:22px;background:#fff;color:var(--ink);text-align:center;max-width:320px}
.adsim-card small{color:var(--muted);font-weight:700}.adsim-n{font:700 44px var(--f-display);color:var(--sun2)}

/* ---- dar dikey pencere (masaüstünde küçültülmüş tarayıcı) ---- */
html.port #app{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"hud" "stage" "panel"}
html.port .panel{max-height:48vh;max-height:48dvh}
html.port .panel.collapsed .body{display:none}
html.port .tabs{order:2;padding:4px 6px calc(6px + var(--safe-b))}
html.port .tab{border-radius:0 0 14px 14px;font-size:11px}
html.port .body{order:1;border-radius:18px 18px 0 0;padding:14px 14px 18px}
html.port .hud{gap:6px;padding:calc(6px + var(--safe-t)) 8px 7px;flex-wrap:wrap}
html.port .hud .xp{width:72px}
html.port .next{display:none}
html.port .pills{order:3;flex-basis:100%;justify-content:space-between;gap:5px}
html.port .pill{flex:1;justify-content:center;padding:0 6px;height:30px}
html.port .hud-r{margin-left:auto}
html.port .cards{grid-template-columns:repeat(2,1fr)}
html.port .fab{max-width:calc(100% - 160px);bottom:10px}
html.port .fab small{display:none}
html.port .recipe{grid-template-columns:minmax(0,1fr) auto auto}
html.port .recipe .ins{grid-column:1/-1;order:5}

/* ---- telefon yatay (kısa ekran): sıkı düzen ---- */
html.land{--panelw:clamp(300px,40vw,380px)}
html.land .hud{gap:8px;padding:4px max(10px,env(safe-area-inset-left,0px)) 6px}
html.land .lvn{width:32px;height:32px;font-size:16px}
html.land .hud .xp{width:84px}html.land .hud .xp i{height:10px}html.land .hud .xp small{font-size:10px}
html.land .next{height:30px}html.land .next .nlv{width:22px;height:22px;font-size:12px}html.land .next b{max-width:86px;font-size:12px}
html.land .pill{height:28px;padding:0 10px 0 3px}html.land .pill .ic{width:21px;height:21px}html.land .pill b{font-size:14px}
html.land .icon-btn{width:30px;height:30px;border-radius:10px}
html.land .tabs{padding:5px 5px 0;gap:2px}
html.land .tab{flex-direction:row;justify-content:center;gap:4px;padding:6px 2px;font-size:0}
html.land .tab svg{width:22px;height:22px}
html.land .tab[aria-selected="true"]{font-size:0}
html.land .tab.dotted::after{top:3px;left:auto;right:3px;width:10px;height:10px}
html.land .body{padding:10px 10px 14px;gap:12px;margin:0 4px}
html.land .ph h2{font-size:18px}
html.land{--bh:34px;--bh2:40px}html.land .btn{padding:0 10px;font-size:13px}
html.land .cards{grid-template-columns:repeat(2,1fr);gap:7px}
html.land .orders{gap:8px}
html.land .order{padding:10px 8px 8px}html.land .order .btnrow .btn{padding:0 6px;font-size:12.5px}html.land .card{min-width:0}
html.land .recipe{grid-template-columns:minmax(0,1fr) auto auto}html.land .recipe .ins{grid-column:1/-1;order:5}
html.land .fab{left:8px;bottom:8px;padding:5px 6px 5px 8px;border-radius:15px;max-width:calc(100% - 150px)}
html.land .fab small{display:none}html.land .fab .ic{width:26px;height:26px}html.land .fab em{padding:0 11px;font-size:13px}
html.land .cam{right:8px;bottom:8px}html.land .cam button{border-radius:12px}
html.land .toasts{top:8px}
html.land .modal{padding:8px}
html.land .modal-card{width:min(560px,100%);padding:14px 18px;gap:8px;max-height:calc(100% - 8px)}
html.land .modal-card h2{font-size:21px}
html.land .lvbig{width:68px;height:68px;font-size:34px}
html.land .lvlup h2{font-size:24px!important}
html.land .burst{top:-90px}
html.land .unlocks div{width:78px;padding:5px 3px}

@media (prefers-reduced-motion:reduce){*{animation:none!important}.bar>i,.hud .xp i::before{transition:none}}

/* ---- köy dükkanı ---- */
.hero{display:flex;gap:12px;align-items:center;padding:14px;border-radius:20px;background:linear-gradient(135deg,#FFF1E0,#FFE0D6);box-shadow:inset 0 0 0 2px #FFD0C0}
.hero h2{margin:0 0 2px;font:600 20px/1.15 var(--f-display)}.hero p{margin:0;font-size:13px;color:#7A5F6E;line-height:1.4}
.hero-ic{width:64px;height:64px;flex:none;border-radius:18px;display:grid;place-items:center;background:#fff;box-shadow:0 3px 0 rgba(0,0,0,.08)}
.hero.fest{background:linear-gradient(135deg,#FFFBE6,color-mix(in srgb,var(--fc,#FFD23F) 35%,#fff));box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--fc,#FFD23F) 60%,#fff)}
.hero.fest .its{margin-top:6px}.hero.off{background:linear-gradient(135deg,#F4F1FF,#E6E0FF);box-shadow:inset 0 0 0 2px #D8CFFF}
.bullets{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.bullets li{display:flex;gap:8px;align-items:center;font-size:13px;padding:8px 10px;border-radius:12px;background:#FFF9EC}
.lvchip{padding:4px 12px;border-radius:999px;background:linear-gradient(180deg,var(--sky1),var(--sky2));color:#fff;font:600 13px var(--f-display);box-shadow:0 2px 0 var(--sky3)}
.prog{display:flex;flex-direction:column;gap:4px}.prog small{font-size:12px;color:var(--muted)}.prog small b{color:var(--ink);font:600 14px var(--f-display)}
.shelves{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:9px}
.shelf{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:132px;padding:12px 8px 10px;border-radius:18px;border:0;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9,0 3px 0 #F3DDB4;text-align:center;font:inherit;color:inherit}
.shelf b{font:600 13.5px/1.2 var(--f-display)}.shelf small{font-size:11px;color:var(--muted)}.shelf .bar{width:100%;flex:none;margin-top:4px}.shelf .t{font:600 12px var(--f-display);color:var(--ink)}
.shelf.empty{cursor:pointer;background:repeating-linear-gradient(45deg,#FFFDF7,#FFFDF7 9px,#FFF6E6 9px,#FFF6E6 18px);box-shadow:inset 0 0 0 2px #F3DDB4}
.shelf.empty .plus{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font:700 26px/1 var(--f-display);color:#fff;background:linear-gradient(180deg,var(--mint1),var(--mint2));box-shadow:0 3px 0 var(--mint3)}
.shelf.sold{cursor:pointer;background:linear-gradient(180deg,#FFFBE0,#FFEDA0);box-shadow:inset 0 0 0 3px var(--sun1),0 3px 0 var(--sun3);animation:readyglow 1.6s ease-in-out infinite}
.shelf.sold b{font-size:18px;color:#9A5A00}
.shelf .x{position:absolute;top:6px;right:6px;width:24px;height:24px;border:0;border-radius:50%;background:rgba(0,0,0,.05);color:var(--muted);display:grid;place-items:center;cursor:pointer}.shelf .x svg{width:13px;height:13px}
.pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(66px,1fr));gap:7px;max-height:180px;overflow:auto;padding:2px}
.it.big.sel{background:#E6F7FF;box-shadow:inset 0 0 0 3px var(--sky2),0 3px 0 var(--sky3)}
.qty{display:grid;grid-template-columns:1fr var(--bh) 48px var(--bh) auto;gap:6px;align-items:center}.qty span{font:600 14px var(--f-display)}.qty b{text-align:center;font:700 20px var(--f-display)}.qty .btn{min-width:0;padding:0}.qty .btn:last-child{padding:0 12px}
.tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.tier{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 4px;border-radius:16px;border:0;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9;cursor:pointer;font:inherit;color:inherit}
.tier b{font:600 14px var(--f-display)}.tier span{display:flex;align-items:center;gap:3px;font:700 16px var(--f-display);color:#9A5A00}.tier small{font-size:11px;color:var(--muted)}
.tier.sel{background:linear-gradient(180deg,#FFFBE0,#FFEDA0);box-shadow:inset 0 0 0 3px var(--sun1),0 3px 0 var(--sun3)}

/* ---- sevgi ---- */
.love{display:flex;align-items:center;gap:6px;margin:1px 0}.love em{font-style:normal;font:600 11px var(--f-display);color:#E0457A}

/* ---- festival ---- */
.festchip{position:absolute;left:12px;top:12px;display:flex;align-items:center;gap:8px;height:44px;padding:0 14px 0 8px;border:0;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 3px var(--fc,#FFD23F),0 4px 0 rgba(0,0,0,.12),0 8px 16px rgba(0,0,0,.15);cursor:pointer;z-index:3;text-align:left;color:var(--ink)}
.festchip .ic{width:28px;height:28px}.festchip span{display:flex;flex-direction:column;line-height:1.1}.festchip b{font:600 14px var(--f-display)}.festchip small{font-size:11px;color:var(--muted)}
.festchip.gain{animation:gain .7s ease-out}
.boost:not([hidden])~.festchip{top:56px}
.fsteps{display:flex;flex-direction:column;gap:7px}
.fstep{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 10px;border-radius:16px;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9}
.fstep .fnum{height:30px;border-radius:999px;display:grid;place-items:center;font:700 13px var(--f-display);background:#F3EEF7;color:var(--muted)}
.fstep .rws{align-items:center}.fstep .rws b{font:600 13px var(--f-display)}.fstep .portrait{width:44px;height:44px}
.fstep.ready{background:linear-gradient(180deg,#FFFBE0,#FFEDA0);box-shadow:inset 0 0 0 3px var(--sun1);animation:readyglow 1.6s ease-in-out infinite}.fstep.ready .fnum,.fstep.got .fnum{background:linear-gradient(180deg,var(--sun1),var(--sun2));color:#6A3E00}
.fstep.got{opacity:.6}.fstep>.btn,.fstep>.chip{min-width:84px;text-align:center}
.card.fest{background:linear-gradient(180deg,#FFFBE6,#FFEFC2);box-shadow:inset 0 0 0 2px #FFE08A}.card.fest .lock{margin-top:auto;color:#9A5A00;background:#FFF1C6}

/* ---- albüm ---- */
.sets{display:flex;flex-direction:column;gap:10px}
.set{display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:18px;background:#F7F2FF;box-shadow:inset 0 0 0 2px #E6DCFA,0 3px 0 #DCCFF5}
.set header{display:flex;justify-content:space-between;align-items:center;gap:8px}.set header b{font:600 16px var(--f-display)}
.set.done{background:linear-gradient(180deg,#FFFBE0,#FFEDA0);box-shadow:inset 0 0 0 3px var(--sun1),0 3px 0 var(--sun3)}
.set.locked{opacity:.6}
.pieces{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.piece{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 4px 6px;border-radius:14px;background:#fff;text-align:center}
.piece .ic{width:34px;height:34px;filter:grayscale(1) brightness(1.5) opacity(.35)}.piece small{font-size:10.5px;line-height:1.15;color:var(--muted)}
.piece.have .ic{filter:drop-shadow(0 2px 2px rgba(0,0,0,.15))}.piece.have small{color:var(--ink);font-weight:600}
.piece em{position:absolute;top:4px;right:5px;font:700 10.5px var(--f-display);font-style:normal;color:#fff;background:var(--purple);border-radius:999px;padding:1px 6px}
.setfoot{display:flex;justify-content:space-between;align-items:center;gap:10px}.setfoot .btn{min-width:110px}
.seg button.dotted::after{content:"";position:absolute;top:5px;right:10px;width:9px;height:9px;border-radius:50%;background:#FF4D5E;border:2px solid #fff}
.float.soft{font-size:14px;color:#FFE0EA;text-shadow:0 1px 0 rgba(120,30,60,.6)}
html.land .shelves{grid-template-columns:repeat(2,1fr)}html.land .shelf{min-height:118px}
html.land .festchip{height:38px;top:8px;left:8px}html.land .festchip small{display:none}
html.land .hero{padding:10px}html.land .hero-ic{width:48px;height:48px}html.land .hero-ic .ic{width:34px;height:34px}

/* ---- sipariş ritmi ---- */
.rushbar{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;background:#F3F7FF;box-shadow:inset 0 0 0 2px #DCE6FA}
.rushbar>div{flex:1;display:flex;flex-direction:column;min-width:0}.rushbar b{font:600 15px var(--f-display)}.rushbar small{font-size:12px;color:var(--muted)}
.rushbar.on{background:linear-gradient(135deg,#FFF3C4,#FFD98A);box-shadow:inset 0 0 0 3px var(--sun1),0 3px 0 var(--sun3);animation:readyglow 1.6s ease-in-out infinite}.rushbar.on .ic{width:30px;height:30px}.rushbar.on small{color:#8A5A10}
.timer{flex:none;padding:3px 9px;border-radius:999px;background:#FFE3E0;color:#C2281E;font:700 12.5px var(--f-display);font-variant-numeric:tabular-nums}
.rushbar.on .timer{background:#fff;color:#9A5A00}
.order.urgent:not(.ready){box-shadow:inset 0 0 0 2px #FF9A8A,0 3px 0 #F0A090}
.ribbon.hot{background:linear-gradient(180deg,#FF8A7A,#F0503F);box-shadow:0 2px 0 #B9352A}
.order header .timer{padding:2px 7px;font-size:11.5px}
.bonus{padding:1px 7px;border-radius:999px;background:linear-gradient(180deg,var(--sun1),var(--sun2));color:#6A3E00;font:700 11.5px var(--f-display);align-self:center}.bonus.hot{background:linear-gradient(180deg,#FF8A7A,#F0503F);color:#fff}
.bigorder{padding:14px;border-radius:20px;background:linear-gradient(135deg,#F4EEFF,#E3D8FF);box-shadow:inset 0 0 0 3px #C9B6FF,0 4px 0 #B39DF5;gap:10px}
.bigorder>header{display:flex;align-items:center;gap:10px}.bigorder>header>div{flex:1;min-width:0}.bigorder header small{font:700 10.5px var(--f-display);letter-spacing:.08em;color:var(--purple)}.bigorder h2{margin:0;font:600 19px/1.15 var(--f-display)}
.bigorder .av{width:38px;height:38px;font-size:13px}
.bigrows{display:flex;flex-direction:column;gap:7px}
.bigrow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 10px;border-radius:14px;background:#fff}
.bigrow>div{display:flex;flex-direction:column;gap:3px;min-width:0}.bigrow b{font:600 14px var(--f-display)}.bigrow small{font-size:11.5px;color:var(--muted)}.bigrow>.btn,.bigrow>.chip{min-width:72px;text-align:center}
.rushchip{--fc:#FFB800}.rushchip.below{top:62px}html.land .rushchip.below{top:52px}

/* ---- balık göleti ---- */
.nets{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:9px}
.net{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:110px;padding:10px 8px;border-radius:18px;border:0;background:#EEF8FF;box-shadow:inset 0 0 0 2px #CFE8FA,0 3px 0 #BFDDF3;text-align:center;font:inherit;color:inherit}
.net b{font:600 13.5px var(--f-display)}.net small{display:flex;align-items:center;gap:3px;font-size:11.5px;color:var(--muted)}.net .bar{width:100%;flex:none;margin-top:3px}
.net.empty{cursor:pointer}.net.empty:active{transform:translateY(2px)}
.net.ready{cursor:pointer;background:linear-gradient(180deg,#E6FAFF,#BDEBFA);box-shadow:inset 0 0 0 3px #6FC8E8,0 3px 0 #3A9BC9;animation:readyglow 1.6s ease-in-out infinite}

/* ---- ömür ---- */
.life{display:flex;align-items:center;gap:6px;margin:1px 0}.life .bar{flex:0 0 64px;height:6px}.life .bar>i{background:linear-gradient(180deg,#9FD8FF,#5B8DEF);animation:none}
.life em{font-style:normal;font:600 11px var(--f-display);color:#5B7DBF}.life.low em{color:var(--bad)}.life.low .bar>i{background:linear-gradient(180deg,#FFB0A0,#F0503F)}

/* ---- köylü arazileri ---- */
.up.vl{justify-content:flex-start}.up.vl>div{flex:1;min-width:0}.up.vl .av{width:34px;height:34px}
.bonus-t{color:#2E7A4F!important;font-weight:600}
.vlhead{display:flex;gap:12px;align-items:center}.vlhead .av{width:52px;height:52px;font-size:17px}.vlhead h2{font-size:22px!important}
.vlbonus{display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:16px;background:linear-gradient(135deg,#E3FFF0,#C9F5DC);box-shadow:inset 0 0 0 2px #B5EBCB}
.vlbonus div{display:flex;flex-direction:column}.vlbonus small{font-size:12px;color:#4E7F63}.vlbonus b{font:600 16px var(--f-display);color:#1F6B44}

.inv>.tip{grid-column:1/-1}

/* ---- kapıdaki müşteriler ---- */
.visitors{display:flex;flex-direction:column;gap:8px}
.visitor{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border-radius:18px;background:#FFF9EC;box-shadow:inset 0 0 0 2px #FBE9C9,0 3px 0 #F3DDB4}
.visitor>div{display:flex;flex-direction:column;gap:3px;min-width:0}.visitor b{font:600 14px var(--f-display)}.visitor .av{width:36px;height:36px}
.visitor.ready{background:linear-gradient(180deg,#F1FFF4,#DDF8E5);box-shadow:inset 0 0 0 3px #6BE39A,0 3px 0 #22B864}
.visitor .vbtns{display:flex;flex-direction:column;gap:6px}.visitor .vbtns .btn{min-width:76px}
/* ---- kazı ---- */
.digbar{display:flex;justify-content:space-between;align-items:center;gap:10px}
.pickc{display:flex;align-items:center;gap:6px}.pickc b{font:700 22px var(--f-display)}.pickc small{font-size:11.5px;color:var(--muted)}
.digboard{position:relative;display:grid;grid-template-columns:repeat(var(--w),1fr);grid-template-rows:repeat(var(--h),1fr);gap:0;padding:6px;border-radius:18px;background:#7A5236;box-shadow:inset 0 3px 8px rgba(0,0,0,.35),0 3px 0 #5A3A24;aspect-ratio:7/5}
.dig-it{display:grid;place-items:center;border-radius:12px;background:radial-gradient(circle,#8E6440,#6E4A2E);z-index:0;transition:transform .3s}
.dig-it .ic{filter:drop-shadow(0 2px 2px rgba(0,0,0,.4))}.dig-it.got{opacity:.25;filter:grayscale(1)}
.dig-it.t-chest:not(.got){background:radial-gradient(circle,#B98A5A,#7A5236)}
.dig-t{z-index:1;border:0;border-radius:9px;cursor:pointer;padding:0;box-shadow:inset 0 0 0 1.5px rgba(70,40,20,.55),inset 0 3px 0 rgba(255,255,255,.22),inset 0 -4px 0 rgba(0,0,0,.25);transition:transform .08s}
.dig-t:active:not(:disabled){transform:scale(.9)}
.dig-t.d3{background:radial-gradient(circle at 35% 30%,#8A6A4A,#5E4028)}.dig-t.d2{background:radial-gradient(circle at 35% 30%,#B08A60,#7E5A3A)}.dig-t.d1{background:radial-gradient(circle at 35% 30%,#D9B98A,#A88A5E)}
.dig-t.d0{background:transparent;box-shadow:none;cursor:default;pointer-events:none}

/* ================= harita önde: sağda ince sekme şeridi, panel haritanın üstüne kayan çekmece ================= */
:root{--railw:74px}
html.land{--railw:60px}
html:not(.port) #app{grid-template-columns:minmax(0,1fr);grid-template-areas:"hud" "stage"}
html:not(.port) .panel{grid-area:stage;justify-self:end;align-self:stretch;width:calc(var(--panelw) + var(--railw));flex-direction:row;background:none;box-shadow:none;z-index:6;pointer-events:none;transform:translateX(var(--panelw));transition:transform .34s cubic-bezier(.3,1.15,.5,1)}
html:not(.port) .panel.open{transform:none}
html:not(.port) .tabs{pointer-events:auto;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:8px 0;width:var(--railw);flex:none}
html:not(.port) .tab{flex:none;width:54px;height:54px;border-radius:18px;padding:0;gap:0;justify-content:center;font-size:0;background:#fff;color:var(--ink);box-shadow:0 4px 0 rgba(30,40,70,.18),0 8px 18px rgba(30,40,70,.18);transition:transform .12s}
html:not(.port) .tab:active{transform:translateY(3px)}
html:not(.port) .tab svg{width:27px;height:27px;transform:none;filter:none}
html:not(.port) .tab[aria-selected="true"]{background:linear-gradient(180deg,var(--sun1),var(--sun2));box-shadow:0 4px 0 var(--sun3),0 8px 18px rgba(30,40,70,.2)}
html:not(.port) .tab[aria-selected="true"] svg{color:#6A3E00}
html:not(.port) .tab.dotted::after{top:-4px;right:-4px;left:auto;width:14px;height:14px}
html:not(.port) .body{pointer-events:auto;width:var(--panelw);flex:none;margin:10px 0;border-radius:24px 0 0 24px;padding-top:18px;box-shadow:-10px 0 34px rgba(30,30,70,.28),inset 0 0 0 2px #fff;background:#fff}
html:not(.port) .pclose{position:absolute;top:18px;right:14px;z-index:2}
.pclose{pointer-events:auto;width:34px;height:34px;border:0;border-radius:50%;display:grid;place-items:center;background:#F3EEF7;color:var(--muted);cursor:pointer}
.pclose svg{width:16px;height:16px}
.panel:not(.open) .pclose{display:none}
html:not(.port) .body>.sec:first-child>.ph,html:not(.port) .body>.seg:first-child,html:not(.port) .body>section:first-child{margin-right:40px}
html:not(.port) .cam{right:calc(var(--railw) + 4px)}
html.land .tab{width:46px;height:46px;border-radius:15px}html.land .tab svg{width:23px;height:23px}html.land .tabs{gap:5px}
html.land .body{margin:6px 0;border-radius:20px 0 0 20px;padding-top:12px}html.land .pclose{top:10px;right:10px;width:30px;height:30px}
/* dar dikey pencere: panel alttan, kapalıyken yalnız sekmeler */
html.port .panel:not(.open) .body{display:none}
html.port .pclose{position:absolute;right:12px;top:-44px}

/* ---- eğitim ---- */
.coach{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:10px;width:min(460px,calc(100% - 200px));padding:10px 10px 10px 12px;border-radius:20px;background:#fff;box-shadow:0 5px 0 rgba(0,0,0,.12),0 14px 30px rgba(30,30,70,.28),inset 0 0 0 3px var(--sun1)}
.coach.pop{animation:tin .45s cubic-bezier(.3,1.6,.5,1)}
.coach .av{width:42px;height:42px;font-size:14px}
.coach>div{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}.coach small{font:600 11px var(--f-display);color:var(--muted)}.coach b{font:600 14.5px/1.25 var(--f-display)}
.tdots{display:flex;gap:4px}.tdots i{width:16px;height:5px;border-radius:3px;background:#EADFF3}.tdots i.on{background:var(--sun2)}.tdots i.ok{background:var(--mint2)}
.tskip{border:0;background:none;color:var(--muted);font:600 12.5px var(--f-display);cursor:pointer;padding:6px;align-self:flex-start}
.tuthand{position:fixed;left:0;top:0;width:44px;height:44px;margin:4px 0 0 -6px;z-index:80;pointer-events:none;animation:tap 1s ease-in-out infinite;filter:drop-shadow(0 3px 3px rgba(0,0,0,.35))}
.tuthand svg{width:100%;height:100%}
@keyframes tap{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(4px,8px) scale(.9)}}
.tut-glow{position:relative;z-index:3;animation:tutglow 1.1s ease-in-out infinite!important}
@keyframes tutglow{0%,100%{box-shadow:0 0 0 3px #FFE15A,0 0 0 0 rgba(255,200,40,.7)}50%{box-shadow:0 0 0 4px #FFB800,0 0 18px 8px rgba(255,200,40,.75)}}
html.land .coach{bottom:8px;width:min(420px,calc(100% - 170px));padding:7px 8px}html.land .coach b{font-size:13px}html.land .coach .av{width:34px;height:34px}

/* panel açıkken rehber kartı haritada kalan alana ortalanır */
html:not(.port) #app:has(.panel.open) .coach{left:calc((100% - var(--panelw) - var(--railw)) / 2);width:min(440px,calc(100% - var(--panelw) - var(--railw) - 24px))}

.hero-ic.sm{width:44px;height:44px;border-radius:14px;flex:none;display:grid;place-items:center;background:#FFF1E0}

/* sahnenin sol üstündeki rozetler alt alta dizilir */
.chips{position:absolute;left:12px;top:12px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;z-index:3;pointer-events:none}
.chips>*{position:static!important;pointer-events:auto}
.newbchip{--fc:#8FD3FF;cursor:default}
html.land .chips{left:8px;top:8px;gap:6px}

/* eğitim: hedef düğme ve rehber kartı daha belirgin */
.tut-glow{animation:tutglow2 1s ease-in-out infinite!important;outline:3px solid #fff;outline-offset:2px}
@keyframes tutglow2{0%,100%{box-shadow:0 0 0 4px #FF6B3D,0 0 0 9px rgba(255,107,61,.35),0 0 22px 8px rgba(255,80,140,.55);transform:scale(1)}50%{box-shadow:0 0 0 5px #FF3D7F,0 0 0 13px rgba(255,61,127,.28),0 0 30px 12px rgba(255,170,40,.7);transform:scale(1.06)}}
.coach{background:linear-gradient(180deg,#FFF6C8,#FFE07A);box-shadow:0 5px 0 #E0A000,0 14px 30px rgba(30,30,70,.3),inset 0 0 0 3px #fff}
.coach b{color:#3B2600}.coach small{color:#8A6200}
.tdots i{background:rgba(255,255,255,.7)}.tdots i.on{background:#FF6B3D}
.tskip{background:#fff;border-radius:999px;padding:6px 12px;color:#8A6200;box-shadow:0 2px 0 rgba(0,0,0,.12)}
.tuthand{width:56px;height:56px;margin:6px 0 0 -8px}
.tuthand svg path{fill:#FFFFFF;stroke:#FF3D7F;stroke-width:1.8}

.coach.good{background:linear-gradient(180deg,#E3FFEC,#9BEBBE);box-shadow:0 5px 0 #22B864,0 14px 30px rgba(30,30,70,.3),inset 0 0 0 3px #fff}
.coach.good b{color:#14663A;font-size:17px}

/* ---- ağaç "Kes" düğmesi ---- */
.treepop{position:fixed;left:0;top:0;transform:translate(-50%,-100%);z-index:40;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px;border-radius:16px;background:#fff;box-shadow:0 4px 0 rgba(0,0,0,.12),0 10px 24px rgba(30,30,70,.3);pointer-events:auto;animation:tin .25s cubic-bezier(.3,1.6,.5,1)}
.treepop::after{content:"";position:absolute;bottom:-7px;left:50%;margin-left:-7px;border:7px solid transparent;border-bottom:0;border-top-color:#fff}
.treepop .btn{white-space:nowrap}.treepop small{font:600 11px var(--f-display);color:var(--muted);white-space:nowrap}.treepop b{font:600 13px var(--f-display);padding:4px 8px}
/* ---- yeni açılan tanıtımı ---- */
.intro{display:flex;gap:14px;align-items:flex-start}.intro .ic.xl{width:56px;height:56px;flex:none;padding:6px;border-radius:16px;background:#FFF6D8}
.intro small{font:700 11px var(--f-display);letter-spacing:.08em;color:#FF6B3D}.intro h2{margin:2px 0 6px!important;font-size:22px!important}
.unlocks em{font-style:normal;font-size:10.5px;line-height:1.25;color:#2E7A4F;font-weight:600}
.unlocks div{width:104px}

body:has(.modal:not([hidden])) .treepop{display:none}

/* ---- yem şeridi ---- */
.feedbar{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:10px;max-width:min(520px,calc(100% - 300px));padding:8px 8px 8px 12px;border-radius:18px;background:linear-gradient(180deg,#FFF6D8,#FFE59A);box-shadow:0 4px 0 #E0A000,0 10px 22px rgba(0,0,0,.2);animation:tin .35s cubic-bezier(.3,1.6,.5,1)}
.feedbar.out{background:linear-gradient(180deg,#FFE9E6,#FFC2B8);box-shadow:0 4px 0 #D9483A,0 10px 22px rgba(0,0,0,.2)}
.feedbar>div{display:flex;flex-direction:column;min-width:0}.feedbar b{font:600 14px var(--f-display)}.feedbar small{font-size:11.5px;color:#7A5A3A}
.stage:has(#feedbar:not([hidden])) .toasts{top:74px}
html.land .feedbar{top:8px;max-width:calc(100% - 240px);padding:5px 6px 5px 10px}html.land .feedbar small{display:none}
/* ---- hedef ---- */
.goalchip{--fc:#8B6CF0;max-width:300px}
.goalchip span{min-width:0}.goalchip b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.goalchip small{font:700 9.5px var(--f-display)!important;letter-spacing:.05em;color:#6A55D8!important}
.goalchip em{font-style:normal;display:flex;align-items:center;margin-left:4px}.goalchip em .rw{font-size:12px}
.goalchip.done{--fc:#22B864;animation:readyglow 1.6s ease-in-out infinite}.goalchip.done small{color:#14663A!important}
html.land .goalchip{max-width:230px}html.land .goalchip em{display:none}
/* ---- yeni açılan kartı ---- */
.introcard{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:12px;width:min(520px,calc(100% - 190px));padding:12px 12px 12px 14px;border-radius:20px;background:#fff;box-shadow:0 5px 0 rgba(0,0,0,.12),0 14px 30px rgba(30,30,70,.28),inset 0 0 0 3px #FFB800;animation:tin .4s cubic-bezier(.3,1.6,.5,1)}
.introcard.out{opacity:0;transform:translate(-50%,12px);transition:all .3s}
.introcard .ic.xl{width:46px;height:46px;flex:none}
.introcard>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.introcard small{font:700 10.5px var(--f-display);letter-spacing:.08em;color:#FF6B3D}.introcard b{font:600 16px var(--f-display)}.introcard p{margin:0;font-size:12.5px;line-height:1.35;color:var(--muted)}
html:not(.port) #app:has(.panel.open) .introcard{left:calc((100% - var(--panelw) - var(--railw)) / 2);width:min(460px,calc(100% - var(--panelw) - var(--railw) - 24px))}
html.land .introcard{bottom:8px;padding:8px 10px}html.land .introcard p{font-size:11.5px}
/* ---- rehber ---- */
.guide{display:flex;flex-direction:column;gap:6px;max-height:min(52vh,440px);overflow:auto;padding-right:4px}
.gitem{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border-radius:14px;background:#FFF9EC}
.gitem .ic.lg{flex:none;margin-top:2px}.gitem div{display:flex;flex-direction:column;gap:2px}.gitem b{font:600 14px var(--f-display);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.gitem small{font-size:12px;line-height:1.35;color:var(--muted)}
.gitem.locked{opacity:.6}.gitem .lock{padding:2px 7px;font-size:10.5px}
/* tanıtım kartı görünürken ipucu kartı gizlenir, kart kamera düğmelerine binmez */
.stage:has(#introcard) .fab{display:none}
html:not(.port) .introcard{max-width:calc(100% - 2 * (var(--railw) + 140px))}
html.land .introcard{width:min(440px,calc(100% - 330px))}

/* ================= cilalama: yazı taşmasın, kırpılmasın, üst üste binmesin ================= */
/* butonlar: sığmayan yazı iki satıra iner, asla kesilmez */
.btn{white-space:normal;height:auto;line-height:1.1;padding-top:5px;padding-bottom:5px;min-width:0;max-width:100%;overflow-wrap:normal;hyphens:none}
.btn.wide{height:auto}
.row>.btn,.up>.btn,.quest>.btn,.ach>.btn,.recipe>.btn,.chest>.btn{flex:none}
/* sipariş kartları: yer yoksa tek sütun, butonlarda ana iş geniş, ikinci iş dar */
.orders{grid-template-columns:repeat(auto-fill,minmax(158px,1fr))}
.order .btnrow{grid-template-columns:minmax(0,1fr) auto;grid-auto-flow:row}
.order .btnrow .btn:not(:first-child){min-width:52px;padding-left:10px;padding-right:10px}
.order .btnrow .btn:only-child{grid-column:1/-1}
/* ücretsiz elmas, hızlı üretim, pazar saati şeritleri: dar yerde alt alta */
.iap.free,.boostcard,.rushbar{flex-wrap:wrap;gap:8px 10px}
.iap.free>div,.boostcard>div{flex:1 1 150px;min-width:0}
.iap.free>.btn,.boostcard>.btn{flex:0 0 auto;margin-left:auto}
.rushbar>div{flex:1 1 150px}.rushbar>.meta{white-space:normal;text-align:right;margin-left:auto}
/* bölüm sekmeleri */
.seg button{min-width:0;padding:0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.land .seg button{font-size:12.5px}
/* bildirim yazıları: sol kartların ve açık panelin üstüne binmesin, uzun metin satıra insin */
.toast{white-space:normal;border-radius:18px;max-width:100%;line-height:1.25}
html:not(.port) .toasts{--l:188px;--r:calc(var(--railw) + 8px);left:calc(var(--l) + (100% - var(--l) - var(--r)) / 2);max-width:calc(100% - var(--l) - var(--r) - 12px)}
html:not(.port) body:has(#panel.open) .toasts{top:auto;bottom:70px;--l:8px;--r:calc(var(--railw) + var(--panelw) + 8px)}
/* üst çubuk: dar ekranda "sıradaki" yalnız simge, ses düğmeleri Ayarlar'da */
@media (max-width:900px){html:not(.port) .next .ntx{display:none}html:not(.port) .next{padding:0 4px}}
@media (max-width:820px){#mus-btn,#snd-btn{display:none}}
.pills{flex-wrap:nowrap}
/* eğitim kartı varken kamera düğmeleri gizli: üst üste binmesin */
body:has(#coach) .cam{display:none}
html:not(.port) .coach{width:min(480px,calc(100% - var(--railw) - 40px))}
/* kısa ekranda pencere satırları sıkı, hepsi görünür */
html.land .modal-card .up{padding-top:6px;padding-bottom:6px}
html.land .modal-card .ups{gap:5px}
/* ağaç "Kes" penceresi ağacın altına da açılabilir */
.treepop.below{transform:translate(-50%,0)}
/* bölüm sekmeleri yazının uzunluğuna göre paylaşır: kısaltma olmaz */
.seg{display:flex}.seg button{flex:1 1 auto;padding:0 8px;text-overflow:clip}
/* elmas→altın gibi çok parçalı düğmeler içeriği kadar genişler */
.btnrow.wrap .btn{flex:1 1 auto}
.btn{line-height:1.2}
/* kısa yatay ekranda panel açıkken sol kartlar çekilir, bildirimler oraya gelir; "Yeni açıldı" kartıyla çakışmaz */
html.land body:has(#panel.open) .chips{opacity:0;pointer-events:none;transition:opacity .2s}
html:not(.port) body:has(#panel.open) .toasts{top:12px;bottom:auto}
html.land body:has(#panel.open) .toasts{--l:8px}
html:not(.land):not(.port) body:has(#panel.open) .toasts{--l:188px}
/* ayarlar kısa ekranda iki sütun: hepsi tek bakışta görünür */
html.land .ups.set{display:grid;grid-template-columns:1fr 1fr}
html.land .ups.set>.up:nth-child(n+4){grid-column:1/-1}
html.land .seg button{padding:0 5px}html.land .seg{gap:2px}

/* ===== Açılış animasyonu (#intro, js/intro.js) ===== */
#intro{position:fixed;inset:0;z-index:9999;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:min(3vh,18px);background:linear-gradient(180deg,#7CCBFF 0%,#BDE8FF 48%,#FFF1C2 100%);-webkit-user-select:none;user-select:none;touch-action:none;--ew:clamp(96px,min(31vh,40vw),190px)}
html.intro-on,html.intro-on body{overflow:hidden}
#intro .i-sun{position:absolute;left:9%;top:9%;width:min(16vh,90px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#FFF6A8 0 45%,#FFD54A 46% 60%,rgba(255,213,74,0) 61%)}
#intro .i-sun::before{content:"";position:absolute;inset:-55%;border-radius:50%;background:repeating-conic-gradient(rgba(255,226,120,.55) 0 10deg,rgba(255,226,120,0) 10deg 30deg);-webkit-mask:radial-gradient(circle,transparent 30%,#000 32%,transparent 70%);mask:radial-gradient(circle,transparent 30%,#000 32%,transparent 70%);animation:i-spin 14s linear infinite}
#intro .i-cloud{position:absolute;width:120px;height:34px;border-radius:30px;background:#fff;opacity:.92;filter:drop-shadow(0 4px 0 rgba(120,170,210,.25))}
#intro .i-cloud::before,#intro .i-cloud::after{content:"";position:absolute;background:#fff;border-radius:50%}
#intro .i-cloud::before{width:50px;height:50px;left:18px;top:-24px}
#intro .i-cloud::after{width:38px;height:38px;left:58px;top:-16px}
#intro .c1{top:14%;left:62%;animation:i-drift 16s linear infinite}
#intro .c2{top:30%;left:20%;transform:scale(.7);opacity:.75;animation:i-drift2 22s linear infinite}
#intro .c3{top:8%;left:36%;transform:scale(.5);opacity:.6;animation:i-drift2 26s linear infinite reverse}
#intro .i-hills{position:absolute;left:0;bottom:0;width:100%;height:50%}
#intro .i-egg{position:relative;width:var(--ew);aspect-ratio:120/150;transform:translateY(-120vh)}
#intro .i-eggsvg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;transform-origin:50% 96%}
#intro .i-shadow{position:absolute;left:14%;right:14%;bottom:-4%;height:12%;border-radius:50%;background:rgba(40,90,30,.28);transform:scale(0)}
#intro .i-chick{transform:translateY(70px)}
#intro .i-top,#intro .i-chick,#intro .i-eyes,#intro .i-wl,#intro .i-wr{transform-box:fill-box;transform-origin:50% 50%}
#intro .i-wl{transform-origin:80% 20%;transform:rotate(25deg)}#intro .i-wr{transform-origin:20% 20%;transform:rotate(-25deg)}
#intro .i-crack{stroke-dasharray:1;stroke-dashoffset:1}
#intro .i-fx{position:absolute;left:50%;top:45%;width:0;height:0}
#intro .i-fx i{position:absolute;left:-6px;top:-6px;width:12px;height:12px;background:#FFD23F;border-radius:3px;transform:rotate(45deg) scale(0);box-shadow:0 0 0 2px #fff}
#intro .i-fx i:nth-child(even){background:#FF8FB1;border-radius:50%;width:10px;height:10px}
#intro .i-fx i:nth-child(1){--x:-90px;--y:-40px}#intro .i-fx i:nth-child(2){--x:90px;--y:-46px}
#intro .i-fx i:nth-child(3){--x:-60px;--y:-95px}#intro .i-fx i:nth-child(4){--x:64px;--y:-100px}
#intro .i-fx i:nth-child(5){--x:0px;--y:-120px}#intro .i-fx i:nth-child(6){--x:-112px;--y:10px}
#intro .i-fx i:nth-child(7){--x:110px;--y:6px}#intro .i-fx i:nth-child(8){--x:30px;--y:-130px}
#intro .i-title{position:relative;text-align:center;line-height:1}
#intro .i-name{margin:0;font:700 clamp(40px,min(15vh,13vw),96px)/1 'Fredoka',sans-serif;color:#fff;letter-spacing:.5px;white-space:nowrap}
#intro .i-name span{display:inline-block;opacity:0;text-shadow:0 .06em 0 #D07A00,0 .1em .2em rgba(150,80,0,.35);-webkit-text-stroke:.03em #E08A00;paint-order:stroke fill}
#intro .i-sub{margin:.35em 0 0;font:600 clamp(16px,min(5.5vh,5vw),32px)/1 'Fredoka',sans-serif;color:#2F6B1F;background:rgba(255,255,255,.82);display:inline-block;padding:.3em .9em;border-radius:99px;box-shadow:0 3px 0 rgba(47,107,31,.25);opacity:0}

#intro.go .i-egg{animation:i-drop .95s cubic-bezier(.5,0,.75,.2) .2s forwards,i-squash .9s 1.15s forwards}
#intro.go .i-shadow{animation:i-shadow .95s ease-in .2s forwards}
#intro.go .i-eggsvg{animation:i-wobble 1.15s ease-in-out 1.55s both}
#intro.go .i-crack{animation:i-crack .5s steps(5,end) 2.05s forwards,i-hide .01s 2.6s forwards}
#intro.go .i-whole{animation:i-hide .01s 2.58s forwards}
#intro.go .i-top{animation:i-pop .8s cubic-bezier(.2,.6,.4,1) 2.6s forwards}
#intro.go .i-chick{animation:i-rise .55s cubic-bezier(.3,1.6,.5,1) 2.62s forwards,i-hop .5s ease-out 4.4s,i-hop .5s ease-out 4.95s}
#intro.go .i-eyes{animation:i-blink .22s 3.6s,i-blink .22s 5.3s}
#intro.go .i-wl{animation:i-flapl .18s ease-in-out 4.4s 6 alternate}
#intro.go .i-wr{animation:i-flapr .18s ease-in-out 4.4s 6 alternate}
#intro.go .i-fx i{animation:i-burst .9s cubic-bezier(.2,.7,.3,1) 2.65s forwards}
#intro.go .i-name span{animation:i-letter .55s cubic-bezier(.3,1.7,.5,1) calc(3.05s + var(--i) * .07s) forwards}
#intro.go .i-sub{animation:i-fadeup .5s ease-out 3.85s forwards}
#intro.calm .i-egg,#intro.calm .i-shadow{transform:none}
#intro.calm .i-top,#intro.calm .i-crack{opacity:0}
#intro.calm .i-chick{transform:translateY(-24px)}
#intro.calm .i-whole{opacity:0}
#intro.calm .i-name span,#intro.calm .i-sub{opacity:1}
#intro.out{animation:i-out .38s ease-in forwards;pointer-events:none}

@keyframes i-spin{to{transform:rotate(360deg)}}
@keyframes i-drift{from{translate:0}to{translate:-75vw}}
@keyframes i-drift2{from{translate:0}to{translate:45vw}}
@keyframes i-drop{to{transform:translateY(0)}}
@keyframes i-squash{0%{transform:scale(1.18,.8)}25%{transform:translateY(-14%) scale(.94,1.07)}45%{transform:scale(1.07,.94)}62%{transform:translateY(-4%) scale(.98,1.02)}80%,100%{transform:none}}
@keyframes i-shadow{0%{transform:scale(.2);opacity:.2}100%{transform:scale(1);opacity:1}}
@keyframes i-wobble{0%,100%{transform:none}12%{transform:rotate(-7deg)}26%{transform:rotate(6deg)}38%{transform:none}52%{transform:rotate(-11deg)}64%{transform:rotate(10deg)}76%{transform:rotate(-6deg)}88%{transform:rotate(3deg)}}
@keyframes i-crack{to{stroke-dashoffset:0}}
@keyframes i-hide{to{opacity:0}}
@keyframes i-pop{0%{transform:none;opacity:1}100%{transform:translate(70px,-150px) rotate(70deg);opacity:0}}
@keyframes i-rise{from{transform:translateY(70px)}to{transform:translateY(-24px)}}
@keyframes i-hop{0%,100%{transform:translateY(-24px)}40%{transform:translateY(-40px) scale(1.04,.97)}}
@keyframes i-blink{50%{transform:scaleY(.1)}}
@keyframes i-flapl{from{transform:rotate(25deg)}to{transform:rotate(-15deg)}}
@keyframes i-flapr{from{transform:rotate(-25deg)}to{transform:rotate(15deg)}}
@keyframes i-burst{0%{transform:translate(0,0) rotate(45deg) scale(0)}30%{transform:translate(calc(var(--x)*.6),calc(var(--y)*.6)) rotate(140deg) scale(1.2)}100%{transform:translate(var(--x),var(--y)) rotate(260deg) scale(0)}}
@keyframes i-letter{0%{opacity:0;transform:translateY(.6em) scale(.3)}100%{opacity:1;transform:none}}
@keyframes i-fadeup{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes i-out{to{opacity:0;transform:scale(1.08)}}
