/* Kareli masa örtüsü: platformun imzası */
.gingham {
  background-color: rgb(var(--c-ortu,255 246 233));
  background-image:
    linear-gradient(90deg, rgb(var(--c-cay,224 65 47) / .55) 50%, transparent 50%),
    linear-gradient(rgb(var(--c-cay,224 65 47) / .55) 50%, transparent 50%);
  background-size: 22px 22px;
}

body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
body.has-timer #app { padding-top: calc(4.5rem + env(safe-area-inset-top, 0px)); }
#app { padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px)); }
#toasts { padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }

/* Sticker butonlar: basınca gölgeye oturur */
.btn { transition: transform .08s ease, box-shadow .08s ease; touch-action: manipulation; }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 0 rgb(var(--c-murekkep,18 14 34)); }
.btn:disabled { opacity: .55; }
:focus-visible { outline: 3px solid rgb(var(--c-limon,255 210 63)); outline-offset: 3px; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Çark */
.wheel {
  position: relative;
  width: min(78vw, 320px);
  aspect-ratio: 1;
  border-radius: 9999px;
  border: 6px solid rgb(var(--c-murekkep,18 14 34));
  box-shadow: 6px 6px 0 0 rgb(var(--c-murekkep,18 14 34));
  will-change: transform;
}
.wheel-pointer {
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid rgb(var(--c-murekkep,18 14 34));
  filter: drop-shadow(0 -3px 0 rgb(var(--c-ortu,255 246 233)));
}
.wheel-hub {
  position: absolute; inset: 50% auto auto 50%;
  width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; font-size: 1.6rem;
  border-radius: 9999px; background: rgb(var(--c-ortu,255 246 233)); border: 5px solid rgb(var(--c-murekkep,18 14 34));
}

.toast-in { animation: toast-in .22s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.pop-in { animation: pop-in .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop-in { from { opacity: 0; transform: scale(.8) rotate(-3deg); } }

@media (prefers-reduced-motion: reduce) {
  .pop-in, .toast-in { animation: none; }
  .animate-pulse { animation: none; }
}

/* yatay taşma koruması (çark köşeleri) */
html,body{overflow-x:clip}

#deco{position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.2;background-size:300px 300px;background-repeat:repeat}
#app{position:relative;z-index:1}
