/* "Kasa sistemi nedir?" page: the jeton machine from the modernize branch, pinned and driven by scroll (js/kasa.js). */
@font-face {
  font-family: 'Pixelify';
  src: url('/fonts/pixelify-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Pixelify';
  src: url('/fonts/pixelify-sans-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20BA, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --pixel: 'Pixelify', 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --scan: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px);
  --night: #0D0C13; --night-2: #1A1924; --night-line: #34334A;
  --bone: #F2EBDD; --bone-2: #B9B2A6; --lamp: #FFC23D;
}

/* ---------- Intro ---------- */
.kasa-intro p { max-width: 70ch; font-size: 16.5px; }
.kasa-facts { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kasa-facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 6px; }
.kasa-facts b { font: 700 28px/1 var(--pixel); color: var(--signal-ink); }
.kasa-facts span { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 760px) { .kasa-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Pinning: the section is tall, the stage sticks under the header while it plays ---------- */
.vault { position: relative; }
.vault-stage { position: relative; overflow: hidden; }
.js .vault { height: 440vh; }
.js .vault-stage { position: sticky; top: var(--hh, 70px); height: calc(100svh - var(--hh, 70px)); }
.m-pool-label { position: absolute; left: 0; right: 0; top: 12px; z-index: 8; text-align: center; font: 600 12px/1 var(--pixel); letter-spacing: .12em; text-transform: uppercase; color: rgba(242, 235, 221, .45); }

.vault-stage {
  background: radial-gradient(70% 60% at 50% 45%, #1C1A27, var(--night) 70%); color: var(--bone);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: clamp(22px, 5vh, 56px) 0 clamp(16px, 3vh, 30px);
}
.vault-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--scan); opacity: .25; }
.vault-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; position: relative; z-index: 2; }
.vault-head h2 { font: 700 clamp(34px, 4.6vw, 64px)/1 var(--pixel); color: #FFE9C9; letter-spacing: -0.015em; text-shadow: 3px 3px 0 rgba(0, 0, 0, .5); }
.vault-head p { margin-top: 12px; color: var(--bone-2); max-width: 62ch; font-size: 15px; }
.vault-head p b { color: var(--bone); font-weight: 650; }

.vault-switch {
  flex-shrink: 0; display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 6px;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--night-line); background: #15141E; color: var(--bone-2); cursor: pointer; font: 600 14px/1 var(--pixel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -3px 0 rgba(0, 0, 0, .4);
}
.vault-switch:hover { border-color: #55536E; }
.vs-label { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #8D877D; }
.vs-off { grid-column: 1; grid-row: 2; }
.vs-track { grid-column: 2; grid-row: 2; position: relative; width: 52px; height: 28px; border-radius: 6px; background: #0A0910; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6); }
.vs-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 4px; background: linear-gradient(#6BC48D, #3E8C5C); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 3px rgba(0, 0, 0, .5); transition: transform .22s var(--ease-out), background .22s; }
.vs-on { grid-column: 3; grid-row: 2; }
.vault-switch[aria-checked="false"] .vs-off, .vault-switch[aria-checked="true"] .vs-on { color: var(--bone); }
.vault-switch[aria-checked="true"] .vs-knob { transform: translateX(24px); background: linear-gradient(#FF7B6E, #C6402F); }

.machine {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 1.2fr) minmax(0, 1fr);
  gap: clamp(14px, 2.6vw, 40px); align-items: stretch; min-height: 0; padding-top: clamp(14px, 3vh, 30px); padding-bottom: clamp(10px, 2.4vh, 24px);
}
.m-side, .m-core {
  position: relative; border-radius: 18px 18px 10px 10px; border: 1px solid var(--night-line);
  background: linear-gradient(#24232F, #191823); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 22px 44px -22px rgba(0, 0, 0, .9);
}
.m-side { display: grid; grid-template-rows: auto minmax(60px, 1fr) auto auto; justify-items: center; gap: 12px; padding: 16px 14px 14px; }
.m-tag { justify-self: start; font: 700 16px/1 var(--pixel); text-transform: uppercase; letter-spacing: .05em; color: var(--lamp); }
.m-seller .m-tag { color: #5FD3C6; }
.m-anchor { width: 1px; height: 1px; align-self: center; }
.m-btn { position: relative; display: grid; justify-items: center; gap: 8px; }
.m-btn i {
  width: clamp(52px, 5vw, 72px); aspect-ratio: 1; border-radius: 50%; display: block;
  background: radial-gradient(circle at 40% 32%, #9BE7B6, #3E9C63 60%, #23633C); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .35), 0 6px 0 #10301E, 0 10px 18px rgba(0, 0, 0, .5);
  transition: transform .12s var(--ease-out), box-shadow .12s;
}
.m-btn b { font: 700 14px/1 var(--pixel); text-transform: uppercase; letter-spacing: .05em; color: var(--bone-2); }
.m-btn-no { display: none; }
[data-route="dispute"] .m-btn i { background: radial-gradient(circle at 40% 32%, #FFB1A6, #D9493A 60%, #8E2418); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .35), 0 6px 0 #4A120B, 0 10px 18px rgba(0, 0, 0, .5); }
[data-route="dispute"] .m-btn-ok { display: none; }
[data-route="dispute"] .m-btn-no { display: block; }
.machine.is-pressed .m-btn i { transform: translateY(5px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35), 0 1px 0 #10301E, 0 4px 8px rgba(0, 0, 0, .5); }
.machine.is-pressed .m-btn b { color: var(--bone); }
.m-tray {
  position: relative; width: 100%; height: clamp(64px, 9vh, 88px); border-radius: 10px; display: grid; place-items: end center; padding-bottom: 8px;
  background: linear-gradient(#0B0A10, #15141D); box-shadow: inset 0 6px 12px rgba(0, 0, 0, .7), inset 0 -1px 0 rgba(255, 255, 255, .05);
}
.m-tray small, .m-house small { font: 500 12px/1 var(--pixel); text-transform: uppercase; letter-spacing: .05em; color: #8D877D; }
.m-core { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; justify-items: center; gap: 12px; padding: 18px 16px 14px; border-radius: 26px 26px 12px 12px; background: linear-gradient(#2B2A38, #1C1B26); }
.m-slot { position: relative; width: 96px; height: 16px; border-radius: 8px; background: #050409; box-shadow: inset 0 3px 4px rgba(0, 0, 0, .9), 0 0 0 4px #3A3950, 0 0 0 5px #FF6A3D; }
.m-pool {
  position: relative; width: min(100%, 250px, 30svh); aspect-ratio: 1 / 1.04; border-radius: 22px; align-self: center;
  background: radial-gradient(80% 70% at 50% 40%, #232233, #111018); border: 2px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .02), inset 0 -20px 40px rgba(0, 0, 0, .5); transition: box-shadow .3s var(--ease-out), border-color .3s;
}
.m-glass { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 7; background: linear-gradient(125deg, rgba(255, 255, 255, .12) 0 12%, transparent 12% 22%, rgba(255, 255, 255, .06) 22% 26%, transparent 26%); }
.machine.is-locked .m-pool { border-color: rgba(255, 194, 61, .55); box-shadow: inset 0 0 46px rgba(255, 194, 61, .2), inset 0 -20px 40px rgba(0, 0, 0, .5); }
.m-lock { position: absolute; left: 50%; bottom: -16px; z-index: 8; width: 46px; height: 38px; translate: -50% 0; border-radius: 7px; background: linear-gradient(#FFD36B, #D9961B); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25), 0 4px 10px rgba(0, 0, 0, .5); }
.m-lock::after { content: ''; position: absolute; left: 50%; top: 12px; width: 7px; height: 12px; translate: -50% 0; border-radius: 3px; background: #6B4A00; }
.m-lock i { position: absolute; left: 50%; bottom: 30px; width: 30px; height: 26px; translate: -50% 0; border: 6px solid #C9CDD6; border-bottom: 0; border-radius: 16px 16px 0 0; transform: translateY(-12px); transition: transform .25s var(--ease-out); }
.machine.is-locked .m-lock i { transform: translateY(0); }
.m-frost { position: absolute; inset: 0; z-index: 6; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: repeating-linear-gradient(60deg, rgba(160, 220, 255, .14) 0 2px, transparent 2px 14px), repeating-linear-gradient(-60deg, rgba(160, 220, 255, .1) 0 2px, transparent 2px 18px), rgba(95, 170, 220, .14); }
.machine.is-frozen .m-frost { opacity: 1; }
.machine.is-frozen .m-pool { border-color: rgba(140, 200, 240, .6); }
.m-lcd { width: 100%; min-height: 56px; display: grid; place-items: center; padding: 10px 12px; border-radius: 8px; text-align: center; background: #140F05; color: var(--lamp); font: 600 15px/1.25 var(--pixel); text-transform: uppercase; letter-spacing: .03em; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8), 0 0 0 1px #3A2E10; position: relative; overflow: hidden; }
.m-lcd::after { content: ''; position: absolute; inset: 0; background: var(--scan); opacity: .6; pointer-events: none; }
.m-lcd.is-ok { color: #8FE3AE; } .m-lcd.is-bad { color: #FF9A8D; }
.m-house { width: 100%; height: 46px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(#0B0A10, #15141D); box-shadow: inset 0 4px 10px rgba(0, 0, 0, .7); }

.m-coin { position: absolute; left: 0; top: 0; z-index: 5; width: clamp(64px, 6.2vw, 92px); pointer-events: none; transform: translate3d(var(--x, -200px), var(--y, -200px), 0) translate(-50%, -50%) scale(var(--s, 1)); will-change: transform; }
.m-coin img { width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }
/* The amount rides under the coin as a lit price tag. */
.m-coin b { position: absolute; left: 50%; top: calc(100% - 4px); translate: -50% 0; white-space: nowrap; padding: 4px 7px; border-radius: 4px; background: #140F05; color: var(--lamp); font: 500 16px/1 var(--pixel); box-shadow: 0 0 0 1px #3A2E10, 0 3px 6px rgba(0, 0, 0, .5); }
.m-coin--fee { width: clamp(46px, 4.4vw, 64px); opacity: var(--o, 0); }
.m-coin--fee b { font-size: 14px; }
.m-cart {
  position: absolute; left: 0; top: 0; z-index: 4; width: clamp(62px, 5.4vw, 80px); aspect-ratio: 1 / .82; pointer-events: none; display: grid; place-items: end center; padding-bottom: 8%;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) translate(-50%, -100%); will-change: transform;
  border-radius: 8px 8px 4px 4px; background: linear-gradient(#FF7A4D, #D44A1E); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -4px 0 rgba(0, 0, 0, .25), 0 8px 14px rgba(0, 0, 0, .5);
}
.m-cart::before { content: ''; position: absolute; top: 4px; left: 26%; right: 26%; height: 4px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .35) 0 2px, transparent 2px 5px); }
.m-cart i { position: absolute; left: 14%; right: 14%; top: 22%; bottom: 36%; border-radius: 3px; background: #F2EBDD; }
.m-cart b { position: relative; font: 700 12px/1 var(--pixel); color: #fff; text-transform: uppercase; }
.machine.is-faulty .m-cart { background: linear-gradient(#8A8594, #5C5866); }
.machine.is-faulty .m-cart i { background: repeating-linear-gradient(-45deg, #F2EBDD 0 6px, #FF7B6E 6px 9px); }
.machine.is-faulty .m-cart::after { content: '!'; position: absolute; right: -10px; top: -12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #E5483A; color: #fff; font: 700 16px/1 var(--pixel); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }

.vault-steps { position: relative; z-index: 2; }
.vault-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.vault-steps li { padding-top: 10px; border-top: 3px solid #2E2D3E; font-size: 13.5px; line-height: 1.45; color: #8D877D; transition: color .2s, border-color .2s; }
.vault-steps li b { color: inherit; font-weight: 700; }
.vault-steps li.is-done { border-top-color: #6B5A3A; color: #B9B2A6; }
.vault-steps li.is-on { border-top-color: var(--signal); color: var(--bone); }

@media (max-width: 860px) {
  .vault-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .vault-head p { font-size: 14px; margin-top: 8px; }
  .machine { grid-template-columns: 1fr 1fr; grid-template-areas: "core core" "buyer seller"; gap: 12px; padding-top: 14px; }
  .m-core { grid-area: core; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 10px; align-items: center; padding: 14px; }
  .m-slot { grid-column: 1; grid-row: 1; justify-self: center; }
  .m-pool { grid-column: 1; grid-row: 2; width: min(100%, 22svh); }
  .m-lcd { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; font-size: 14px; }
  .m-house { grid-column: 1 / -1; grid-row: 3; height: 38px; }
  .m-buyer { grid-area: buyer; } .m-seller { grid-area: seller; }
  .m-side { grid-template-rows: auto 0 58px auto auto; padding: 12px; gap: 8px; }
  .m-note { display: none; }
  .m-tag { font-size: 16px; }
  .m-tray { height: 54px; }
  .m-btn i { width: 46px; }
  .vault-steps ol { display: block; min-height: 3.2em; }
  .vault-steps li { display: none; }
  .vault-steps li.is-on { display: block; }
}
@media (max-width: 860px) and (max-height: 720px) {
  .vault-head p { display: none; }
}
.vault-steps ol[hidden] { display: none; }

/* ---------- Written explanation ---------- */
.kasa-text { display: grid; gap: 40px; padding-top: 56px; max-width: 980px; }
.kasa-text h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.kasa-text p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 10px; }
.kasa-steps { margin: 0; padding: 0; list-style: none; counter-reset: k; display: grid; gap: 10px; }
.kasa-steps li { counter-increment: k; position: relative; padding: 14px 16px 14px 58px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-2); }
.kasa-steps li::before { content: counter(k, decimal-leading-zero); position: absolute; left: 16px; top: 13px; font: 700 20px/1 var(--pixel); color: var(--signal-ink); }
.kasa-steps b { color: var(--ink); }
.kasa-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .kasa-cols { grid-template-columns: 1fr; } }
.kasa-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Phones: the site header stays visible, so the machine is compacted to fit the remaining height. */
@media (max-width: 860px) {
  .js .vault-stage { padding-top: 14px; padding-bottom: 10px; }
  .vault-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .vault-head h2 { font-size: 30px; }
  .vault-head p { display: none; }
  .vault-switch { padding: 7px 9px; column-gap: 6px; font-size: 12px; }
  .vs-label { display: none; }
  .vs-track { width: 40px; height: 22px; }
  .vs-knob { width: 16px; height: 16px; }
  .vault-switch[aria-checked="true"] .vs-knob { transform: translateX(18px); }
  .machine { padding-top: 10px; padding-bottom: 8px; gap: 10px; }
  .m-core { padding: 10px; row-gap: 8px; }
  .m-pool { width: min(100%, 17svh); }
  .m-lcd { font-size: 13px; min-height: 0; }
  .m-house { height: 30px; }
  .m-side { grid-template-rows: auto 0 auto auto; align-content: space-between; padding: 10px; gap: 6px; }
  .vault-head h2 { font-size: 26px; }
  .m-btn i { width: 38px; }
  .m-btn b { font-size: 12px; }
  .m-tray { height: 40px; padding-bottom: 5px; }
  .m-coin { width: 54px; }
  .m-coin b { font-size: 13px; }
  .m-cart { width: 50px; }
  .vault-steps li { font-size: 13px; }
}
