/* =====================================================================
   Ana sayfa: maskot + başlık, vitrin rafı, Günün Deal'i, teslimat şeridi,
   nasıl çalışır, günlük fiş, kod bileti
   ===================================================================== */

/* --- Tanıtım ------------------------------------------------------------ */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.hero-in { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.hero-mascot { width: 132px; height: 132px; margin-bottom: 8px; animation: hop 2.8s ease-in-out infinite; transform-origin: 50% 90%; }
/* Fırından yeni çıkmış: maskotun üstünden buhar yükselir */
.hero-mascot-wrap { position: relative; display: grid; justify-items: center; margin-bottom: 8px; }
.hero-mascot-wrap .hero-mascot { margin-bottom: 0; }
.steam {
    position: absolute;
    top: -30px;
    width: 14px;
    height: 38px;
    background: var(--steam);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 38'%3E%3Cpath d='M7 35c-6-5 6-9 0-15s6-10 0-17' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 38'%3E%3Cpath d='M7 35c-6-5 6-9 0-15s6-10 0-17' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0;
    animation: steam 2.7s ease-in-out infinite;
    pointer-events: none;
}
.steam.s1 { left: calc(50% - 34px); }
.steam.s2 { left: calc(50% - 7px); top: -40px; animation-delay: .9s; }
.steam.s3 { left: calc(50% + 20px); animation-delay: 1.8s; }
@keyframes steam {
    0% { opacity: 0; transform: translateY(12px) scaleY(.7); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px) scaleY(1.15); }
}
@keyframes hop {
    0%, 100% { transform: translateY(0) rotate(0); }
    40% { transform: translateY(-12px) rotate(-5deg); }
    60% { transform: translateY(-12px) rotate(4deg); }
}
.hero .display-title { max-width: 15ch; font-size: clamp(42px, 6.4vw, 78px); margin-bottom: 18px; }
.hero .lead { color: var(--ink-2); font-size: 19px; max-width: 58ch; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Kenarlarda süzülen donutlar */
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
/* Fare hareket edince derinliğe göre kayarlar (fx.js --mx/--my verir) */
.deco {
    position: absolute;
    width: 110px;
    height: 110px;
    opacity: .95;
    animation: float 7s ease-in-out infinite;
    transform: translate(calc(var(--mx, 0) * var(--z, 1) * -26px), calc(var(--my, 0) * var(--z, 1) * -18px)) rotate(var(--rot, 0deg));
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.deco svg { width: 100%; height: 100%; }
.d1 { left: 4%; top: 70px; --rot: -14deg; --z: 1.3; }
.d2 { right: 5%; top: 40px; width: 92px; height: 92px; animation-delay: -2s; --z: .8; }
.d3 { left: 9%; top: 300px; width: 78px; height: 78px; animation-delay: -4s; --z: 1.7; }
.d4 { right: 9%; top: 290px; width: 86px; height: 86px; animation-delay: -1s; --z: 1.1; }
@keyframes float { 50% { translate: 0 -14px; rotate: 8deg; } }

/* --- Vitrin rafı -------------------------------------------------------- */
.case { margin-top: 46px; }
.case-glass {
    position: relative;
    padding: 26px 18px 0;
    background: linear-gradient(180deg, var(--case-1), var(--case-2));
    border: var(--edge);
    border-bottom: 0;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
}
/* Cam yansıması */
.case-glass::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 12%;
    width: 70px;
    height: 180%;
    background: var(--case-shine);
    transform: rotate(18deg);
    pointer-events: none;
}
.case-shelf {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 6px;
    min-height: 220px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 14px;
}
.case-shelf::-webkit-scrollbar { display: none; }
.case-base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 14px 22px;
    background: var(--choco);
    color: var(--on-ink);
    border: var(--edge);
    border-radius: 0 0 30px 30px;
    box-shadow: var(--pop-lg);
    font-weight: 700;
    font-size: 15px;
}
.case-base a { color: var(--lemon); font-family: var(--display); font-weight: 600; text-decoration: none; }
.case-base a:hover { text-decoration: underline; }

.treat {
    position: relative;
    flex: 0 0 164px;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 4px 6px 0;
    scroll-snap-align: center;
    text-align: center;
    color: var(--text);
    text-decoration: none;
}
.treat .donut { width: 128px; height: 128px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), translate .3s ease-out; }
/* Raf dolunca donutlar sırayla zıplayarak yerleşir */
.treat { animation: pop-in .6s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 75ms + 120ms); }
@keyframes pop-in { from { opacity: 0; transform: translateY(22px) scale(.6); } }
.treat:hover .donut, .treat:focus-within .donut { transform: translateY(-8px) rotate(-8deg) scale(1.05); }
.tag {
    position: relative;
    display: grid;
    justify-items: center;
    min-width: 108px;
    margin-top: -4px;
    padding: 8px 12px 9px;
    background: var(--field);
    border: 2px solid var(--ink);
    border-radius: 10px 10px 14px 14px;
    transform: rotate(-3deg);
}
.treat:nth-child(even) .tag { transform: rotate(2.5deg); }
.tag::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: var(--cream);
}
.tag-amount { margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.tag-flavor { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .4px; }
.tag-price { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--berry-dk); }
.tag-price s { color: var(--ink-3); font-size: 13px; font-weight: 600; margin-right: 4px; }
.treat-add {
    position: absolute;
    right: 18px;
    top: 82px;
    width: 40px;
    height: 40px;
    padding: 0;
    min-height: 0;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
}
.treat.deal-on .tag { background: var(--lemon-lt); }
.treat .ribbon {
    position: absolute;
    top: 0;
    left: 6px;
    z-index: 1;
    transform: rotate(-12deg);
}
.shelf-skeleton { display: grid; place-items: center; width: 100%; color: var(--ink-3); font-weight: 700; }

/* --- Günün Deal'i ------------------------------------------------------- */
.deal {
    position: relative;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    padding: 26px 30px;
    background: var(--paper);
    border: var(--edge);
    border-radius: var(--r-lg);
    box-shadow: var(--pop-lg);
    overflow: hidden;
}
.deal-art { position: relative; display: grid; place-items: center; height: 230px; }
.deal-art::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: var(--edge);
    background: repeating-conic-gradient(var(--lemon) 0 12deg, #ffe680 12deg 24deg);
    animation: turn 30s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }
.deal-art .donut { position: relative; width: 200px; height: 200px; animation: hop 3.4s ease-in-out infinite; transition: translate .3s ease-out; }
.deal-ribbon {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 14px;
    color: var(--ink);
    background: var(--berry);
    border: var(--edge);
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .6px;
    text-transform: uppercase;
    transform: rotate(-2deg);
}
.deal h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.6px; }
.deal-sub { margin: 0 0 14px; color: var(--ink-2); font-weight: 700; }
.deal-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.deal-price b { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1; color: var(--berry-dk); }
.deal-price s { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink-3); }
.deal-price .chip { font-size: 14px; background: var(--mint-lt); }
.deal-side { display: grid; justify-items: center; gap: 14px; }
.deal-clock-label { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.clock { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 700; font-size: 30px; }
.clock span {
    display: grid;
    place-items: center;
    min-width: 54px;
    height: 58px;
    background: var(--ink);
    color: var(--on-ink);
    border-radius: 12px;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35);
}
.clock i { font-style: normal; color: var(--text); }

/* --- Teslimat şeridi ---------------------------------------------------- */
.ticker-section { padding-bottom: 64px; }
.ticker-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 4px; }
.ticker-head .section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ticker-head p { margin: 0 0 10px; }
.live-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: none;
    border-radius: 50%;
    background: #ff5a3c;
    border: 2px solid var(--ink);
    animation: live 1.4s ease-in-out infinite;
}
@keyframes live { 50% { box-shadow: 0 0 0 6px rgba(255, 90, 60, .25); } }
.ticker {
    overflow: hidden;
    padding: 16px 0;
    background: var(--cream-2);
    border-top: var(--edge);
    border-bottom: var(--edge);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; gap: 14px; width: max-content; padding-left: 14px; animation: marquee var(--dur, 40s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tk {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    background: var(--field);
    border: 2px solid var(--ink);
    border-radius: 999px;
    white-space: nowrap;
}
.tk .face { --s: 4px; border-radius: 50%; }
.tk-name { font-family: var(--display); font-weight: 600; }
.tk-amt { font-family: var(--display); font-weight: 700; color: var(--money); }
.tk-ago { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.tk.fresh { background: var(--lemon-lt); }
.tk-empty { padding: 4px 20px; color: var(--ink-2); font-weight: 700; }

/* --- Nasıl çalışır ------------------------------------------------------ */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; counter-reset: how; }
.how-step {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    padding: 30px 22px 24px;
    text-align: center;
    background: var(--paper);
    border: var(--edge);
    border-radius: var(--r-lg);
    box-shadow: var(--pop-lg);
}
.how-step:nth-child(1) { transform: rotate(-1.2deg); }
.how-step:nth-child(3) { transform: rotate(1.2deg); }
.how-n {
    position: absolute;
    top: -18px;
    left: 22px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--ink);
    background: var(--berry);
    border: var(--edge);
    font-family: var(--display);
    font-weight: 700;
    font-size: 21px;
}
.how-art { width: 96px; height: 96px; margin-bottom: 6px; }
.how-coins { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 4px; width: 132px; }
.how-coins .coin { margin: -2px; }
.how-step h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 23px; }
.how-step p { margin: 0; color: var(--ink-2); }

/* --- Günlük fiş + neden biz ------------------------------------------- */
.bake { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 44px; align-items: start; }
.receipt {
    position: relative;
    margin-top: 10px;
    padding: 26px 24px 30px;
    background: var(--field);
    border: var(--edge);
    border-radius: 6px;
    box-shadow: var(--pop-lg);
    font-family: var(--mono);
    font-size: 15px;
    transform: rotate(-2deg);
}
/* Yırtık kenar */
.receipt::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -11px;
    height: 20px;
    background: radial-gradient(circle at 11px 0, var(--cream) 8px, transparent 8.5px) 0 0 / 22px 20px repeat-x;
}
.r-head { display: grid; justify-items: center; gap: 2px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 2px dashed var(--ink-3); text-align: center; }
.r-head b { font-family: var(--display); font-weight: 700; font-size: 22px; }
.r-head span { font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 1px; }
.r-line { display: flex; align-items: baseline; gap: 8px; margin: 9px 0; }
.r-line::after { content: ''; order: 1; flex: 1; border-bottom: 2px dotted var(--ink-3); transform: translateY(-4px); }
.r-line span { order: 0; }
.r-line b { order: 2; font-size: 17px; }
.r-foot { margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--ink-3); text-align: center; font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .6px; }

.perk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.perk { padding: 20px; border: var(--edge); border-radius: var(--r); background: var(--paper); }
.perk img { image-rendering: pixelated; }
.perk h3 { margin: 8px 0 4px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.perk p { margin: 0; color: var(--ink-2); font-size: 15px; }
.p1 { background: var(--berry-lt); }
.p2 { background: var(--lemon-lt); }
.p3 { background: var(--mint-lt); }
.p4 { background: var(--blue-lt); }

/* --- Kod bileti ve casino --------------------------------------------- */
.tickets { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.ticket-band {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px 24px 22px 0;
    background: var(--paper);
    border: var(--edge);
    border-radius: var(--r);
    box-shadow: var(--pop-lg);
    color: var(--text);
    text-decoration: none;
    transition: transform .15s;
}
.ticket-band:hover { transform: rotate(-.6deg) translateY(-2px); }
/* Bilet çentikleri */
.ticket-band::before, .ticket-band::after {
    content: '';
    position: absolute;
    left: 86px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cream);
    border: var(--edge);
}
.ticket-band::before { top: -15px; }
.ticket-band::after { bottom: -15px; }
.tb-stub {
    display: grid;
    place-items: center;
    align-self: stretch;
    width: 99px;
    margin: -22px 0;
    border-right: 3px dashed var(--ink);
    background: var(--berry-lt);
    border-radius: var(--r) 0 0 var(--r);
}
.tb-stub img { image-rendering: pixelated; }
.tb-body { display: grid; gap: 4px; }
.tb-body b { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.tb-body span { color: var(--ink-2); }
.casino-teaser {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 6px;
    padding: 22px 24px;
    background: url(/img/sprinkles.svg) 0 0 / 240px 240px, var(--ink);
    color: var(--on-ink);
    border: var(--edge);
    border-radius: var(--r);
    box-shadow: var(--pop-lg);
    text-decoration: none;
}
.casino-teaser b { font-family: var(--display); font-weight: 700; font-size: 26px; }
.casino-teaser span:not(.chip) { color: #c4c8e6; font-size: 15px; }
.casino-teaser:not(.is-soon) .chip { display: none; }

/* --- Mobil -------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hero-deco { display: none; }
}
@media (max-width: 960px) {
    .deal { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 18px 26px; }
    .deal-price { justify-content: center; }
    .deal-art { height: 210px; }
    .how { grid-template-columns: 1fr; gap: 30px; }
    .how-step:nth-child(n) { transform: none; }
    .bake { grid-template-columns: 1fr; gap: 30px; }
    .receipt { max-width: 380px; margin: 10px auto 0; }
    .tickets { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hero { padding-top: 46px; }
    .hero-mascot { width: 104px; height: 104px; }
    .hero .lead { font-size: 17px; }
    .hero-cta { display: grid; width: 100%; }
    .case-shelf { justify-content: flex-start; }
    .treat { flex-basis: 150px; }
    .deal-art::before { width: 210px; height: 210px; }
    .deal-art .donut { width: 170px; height: 170px; }
    .deal-price b { font-size: 40px; }
    .clock { font-size: 24px; }
    .clock span { min-width: 46px; height: 50px; }
    .perk-grid { grid-template-columns: 1fr; }
    .ticket-band { grid-template-columns: auto minmax(0, 1fr); padding-right: 16px; }
    .ticket-band > .btn { grid-column: 1 / -1; margin: 0 0 0 16px; }
    .tb-stub { width: 70px; }
    .ticket-band::before, .ticket-band::after { left: 57px; }
}
@media (prefers-reduced-motion: reduce) {
    .ticker { overflow-x: auto; }
    .ticker-track { animation: none; }
}
