/* Shared extras for the exported GTKEYS site */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
#app { min-height: 100vh; }

/* hide the horizontal scrollbar on the hero key line-up (it still swipes) */
[style*="scroll-snap-type"]::-webkit-scrollbar { display: none; }

/* demo toast */
#gtk-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid #ffffff;
  box-shadow: 0 16px 40px rgba(227, 58, 128, 0.22);
  color: #1a1420;
  font: 500 15px/1.45 'Barlow Condensed', system-ui, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}
#gtk-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* FAQ open/close sign */
.faq-sign::before { content: "+"; }
details[open] .faq-sign::before { content: "\2212"; }
summary::-webkit-details-marker { display: none; }

/* one shared page background: mostly white with soft radial pink and lavender, drifting gently */
body {
  background-color: #FFFFFF;
  background-image:
    radial-gradient(900px 700px at 85% 10%, rgba(255,190,220,0.45), rgba(255,190,220,0) 70%),
    radial-gradient(1000px 800px at 10% 90%, rgba(215,195,255,0.40), rgba(215,195,255,0) 70%),
    radial-gradient(700px 600px at 50% 55%, rgba(255,225,238,0.30), rgba(255,225,238,0) 70%);
  background-size: 140% 140%, 140% 140%, 140% 140%;
  background-attachment: fixed;
  animation: gtk-drift 30s ease-in-out infinite alternate;
}
@keyframes gtk-drift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 50%; }
  100% { background-position: 18% 10%, 82% 88%, 44% 58%; }
}
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

/* large soft palm shadows behind the whole site */
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  background: #3E1A63;
  -webkit-mask: url("images/palm.svg") no-repeat center / contain;
  mask: url("images/palm.svg") no-repeat center / contain;
  opacity: 0.025;
  filter: blur(4px);
  transform-origin: 50% 100%;
  animation: gtk-sway 9s ease-in-out infinite alternate;
}
body::before { left: -140px; bottom: -120px; width: 620px; height: 960px; }
body::after  { right: -170px; bottom: -200px; width: 720px; height: 1120px; transform: scaleX(-1); animation-name: gtk-sway-r; animation-duration: 11s; opacity: 0.022; }
@keyframes gtk-sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.4deg); } }
@keyframes gtk-sway-r { from { transform: scaleX(-1) rotate(-1.4deg); } to { transform: scaleX(-1) rotate(1.1deg); } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }

/* GTKEYS key card (design 2): one design for every key on the site */
.gk-shadow{position:relative}
.gk-shadow::before{content:"";position:absolute;inset:0;transform:translate(3px,4px);background:#F0B8D1;clip-path:polygon(22px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 22px);
 -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='8'%3E%3Crect width='34' height='8' rx='4'/%3E%3C/svg%3E"),linear-gradient(#000,#000);-webkit-mask-position:11px 10px,0 0;-webkit-mask-size:34px 8px,100% 100%;-webkit-mask-repeat:no-repeat;-webkit-mask-composite:xor;
 mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='8'%3E%3Crect width='34' height='8' rx='4'/%3E%3C/svg%3E"),linear-gradient(#000,#000);mask-position:11px 10px,0 0;mask-size:34px 8px,100% 100%;mask-repeat:no-repeat;mask-composite:exclude}
.gk-card{position:relative;background:#FFFFFF;padding:14px;display:flex;flex-direction:column;gap:10px;color:#1A1420;clip-path:polygon(22px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 22px);box-shadow:inset 0 0 0 1px #F5E3EC;
 -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='8'%3E%3Crect width='34' height='8' rx='4'/%3E%3C/svg%3E"),linear-gradient(#000,#000);-webkit-mask-position:14px 14px,0 0;-webkit-mask-size:34px 8px,100% 100%;-webkit-mask-repeat:no-repeat;-webkit-mask-composite:xor;
 mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='8'%3E%3Crect width='34' height='8' rx='4'/%3E%3C/svg%3E"),linear-gradient(#000,#000);mask-position:14px 14px,0 0;mask-size:34px 8px,100% 100%;mask-repeat:no-repeat;mask-composite:exclude}
.gk-serial{position:absolute;top:13px;right:18px;display:inline-flex;align-items:baseline;line-height:1;font:600 14px 'Barlow Condensed',sans-serif;letter-spacing:.08em;color:#1A1420}
.gk-head{display:flex;gap:10px;align-items:flex-start;margin-top:22px}
.gk-rating{display:flex;flex-direction:column;align-items:center;line-height:1;flex:none}
.gk-rating b{font:400 30px Anton,sans-serif;letter-spacing:.01em}
.gk-rating span{font:600 12px 'Barlow Condensed',sans-serif;letter-spacing:.14em;color:#E33A80;margin-top:3px}
.gk-who{display:flex;flex-direction:column;gap:2px;padding-top:2px;min-width:0}
.gk-name{font:400 16px/1.05 Anton,sans-serif;letter-spacing:.02em;text-transform:uppercase}
.gk-role{font:600 12px 'Barlow Condensed',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#7A6E78}
.gk-art{aspect-ratio:20/17;border-radius:10px;background:#FFFFFF;box-shadow:inset 0 0 0 1px #F5E3EC;overflow:hidden;
 clip-path:polygon(0 16px,16% 16px,16% 0,34% 0,34% 16px,calc(100% - 10px) 16px,100% 26px,100% 100%,0 100%)}
.gk-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.gk-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:14px;row-gap:6px;padding:2px 2px 0}
.gk-grid div{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid #EEDDE7;padding-bottom:4px}
.gk-grid span{font:600 12px 'Barlow Condensed',sans-serif;letter-spacing:.1em;color:#7A6E78}
.gk-grid b{font:700 16px 'Barlow Condensed',sans-serif;letter-spacing:.03em}
.gk-grid b.up{color:#E33A80}


body { letter-spacing: 0.01em; }

button, input, select, textarea { font-family: inherit; letter-spacing: inherit; }

/* key flip: picture on the front, stats on the back */
.gk-flip{position:relative;transform-style:preserve-3d;transition:transform .6s ease;cursor:pointer}
.gk-flip.is-flipped{transform:rotateY(180deg)}
.gk-face{backface-visibility:hidden;-webkit-backface-visibility:hidden}
.gk-face.gk-back{position:absolute;inset:0;transform:rotateY(180deg)}
.gk-back .gk-shadow,.gk-back .gk-card{height:100%}
.gk-back .gk-card{padding-top:34px}
.gk-stats{flex:1;border-radius:10px;background:#FFF0F6;padding:26px 14px 8px;display:flex;flex-direction:column;justify-content:space-between;
 clip-path:polygon(0 16px,16% 16px,16% 0,34% 0,34% 16px,calc(100% - 10px) 16px,100% 26px,100% 100%,0 100%)}
.gk-stats div{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid #F3D3E2;padding:5px 0}
.gk-stats div:last-child{border-bottom:0}
.gk-stats span{font:600 12px 'Barlow Condensed',sans-serif;letter-spacing:.12em;color:#7A6E78}
.gk-stats b{font:700 16px 'Barlow Condensed',sans-serif;letter-spacing:.03em}
.gk-stats b.up{color:#E33A80}
/* bigger key on a character page */
.gk-big .gk-rating b{font-size:40px}
.gk-big .gk-name{font-size:20px}
.gk-big .gk-role{font-size:13px}
.gk-big .gk-stats b{font-size:19px}
.gk-big .gk-stats span{font-size:13px}
/* front and back of a key are exactly the same size */
.gk-card{box-sizing:border-box}
.gk-back .gk-card{overflow:hidden}
.gk-stats{min-height:0;overflow:hidden}
.gk-stats div{padding:3px 0}
/* back of the key is the mirror of the front: hole and big corner on the right */
.gk-back .gk-card{
  clip-path:polygon(7px 0,calc(100% - 22px) 0,100% 22px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px);
  -webkit-mask-position:calc(100% - 48px) 14px,0 0;mask-position:calc(100% - 48px) 14px,0 0}
.gk-back .gk-shadow::before{
  clip-path:polygon(7px 0,calc(100% - 22px) 0,100% 22px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px);
  -webkit-mask-position:calc(100% - 51px) 10px,0 0;mask-position:calc(100% - 51px) 10px,0 0}
.gk-stats{clip-path:polygon(100% 16px,84% 16px,84% 0,66% 0,66% 16px,10px 16px,0 26px,0 100%,100% 100%)}
/* picture sits below the top notch line so heads are never clipped */
.gk-art{position:relative}
.gk-art img{position:absolute;left:0;right:0;top:16px;height:calc(100% - 16px)}
/* faint static shine across every key */
.gk-card::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:2;
  background:linear-gradient(118deg,rgba(255,255,255,0) 36%,rgba(255,255,255,0.38) 46%,rgba(255,255,255,0.16) 53%,rgba(255,255,255,0) 63%)}

.gk-back-flat{position:relative !important;inset:auto !important;transform:none !important;backface-visibility:visible}
/* soft, faint black shadow, like light falling on a real key */
.gk-shadow::before{display:none}
.gk-shadow{filter:drop-shadow(0 12px 16px rgba(0,0,0,0.08)) drop-shadow(0 2px 3px rgba(0,0,0,0.07))}
/* GTKEYS logo on every key: next to the number on the front, top left on the back */
.gk-serial{gap:6px;align-items:center}
.gk-serial::before{content:"";width:16px;height:16px;border-radius:4px;background:url("images/logo.svg") center/contain no-repeat;flex:none}
.gk-back .gk-card::before{content:"";position:absolute;top:12px;left:16px;width:18px;height:18px;border-radius:5px;background:url("images/logo.svg") center/contain no-repeat;z-index:3}
.gk-shadow{filter:drop-shadow(0 16px 18px rgba(0,0,0,0.20)) drop-shadow(0 3px 4px rgba(0,0,0,0.14))}
.gk-shadow{filter:drop-shadow(0 10px 9px rgba(0,0,0,0.24)) drop-shadow(0 2px 3px rgba(0,0,0,0.18))}
/* no hole: the logo takes its place, top left on the front, top right on the back */
.gk-card,.gk-back .gk-card{-webkit-mask:none;mask:none}
.gk-serial{gap:0}
.gk-serial::before{display:none}
.gk-card::before{content:"";position:absolute;top:11px;left:15px;width:20px;height:20px;border-radius:5px;background:url("images/logo.svg") center/contain no-repeat;z-index:3}
.gk-back .gk-card::before{left:auto;right:15px}
.gk-shadow{filter:drop-shadow(0 5px 5px rgba(0,0,0,0.22)) drop-shadow(0 1px 2px rgba(0,0,0,0.16))}
/* front: logo sits next to the key number again */
.gk-face:not(.gk-back) .gk-card::before{display:none}
.gk-serial{gap:6px}
.gk-serial::before{display:block;content:"";width:16px;height:16px;border-radius:4px;background:url("images/logo.svg") center/contain no-repeat;flex:none}
.gk-who{margin-left:auto;align-items:flex-end;text-align:right}
.gk-serial{left:15px;right:auto}
.gk-rating{flex-direction:row;align-items:baseline;gap:4px}.gk-rating span{margin-top:0}
/* back: logo and key number mirrored to the top right */
.gk-back .gk-card::before{display:none}
.gk-serial-back{left:auto !important;right:15px;flex-direction:row-reverse}
.gk-art{background-size:cover;background-position:center top;background-repeat:no-repeat}
.gk-shadow{filter:drop-shadow(5px 6px 5px rgba(0,0,0,0.22)) drop-shadow(1px 2px 2px rgba(0,0,0,0.14))}

/* "Flip to view stats" tag above two sided keys */
.gk-fliptag{display:inline-flex;align-items:center;gap:5px;font:700 11px 'Barlow Condensed',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#E33A80;background:#FFFFFF;border:1px solid #F5B5D0;border-radius:6px;padding:4px 8px;cursor:pointer;line-height:1}
.gk-fliptag:hover{background:#E33A80;color:#FFFFFF;border-color:#E33A80}
a[data-key-card] .gk-fliptag{position:absolute;right:0;top:-30px;z-index:6}
.gk-stats{justify-content:center;gap:2px}.gk-stats div{padding:7px 0}

/* lighter key shadow */
.gk-shadow{filter:drop-shadow(5px 6px 5px rgba(0,0,0,0.13)) drop-shadow(1px 2px 2px rgba(0,0,0,0.09))}
/* back stats: more breathing room */
.gk-stats{justify-content:space-evenly;gap:0}
.gk-stats div{padding:10px 0}
/* Character keys: smaller keys, every element scaled together */
#roster [data-key-card] .gk-flip{width:300px;zoom:0.8;margin:0 auto}
/* film grain over the whole site */
#app::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:.09;mix-blend-mode:multiply;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E")}

/* notification tag */
#gtk-toast{position:fixed;right:20px;bottom:20px;left:auto;transform:translateY(12px);max-width:320px;display:flex;align-items:center;gap:10px;padding:9px 10px 9px 14px;border-radius:8px;background:#FFFFFF;border:1px solid #F5B5D0;box-shadow:0 6px 18px rgba(0,0,0,.08);color:#1A1420;font:600 13px/1.35 'Barlow Condensed',sans-serif;letter-spacing:.02em;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;z-index:10000;-webkit-backdrop-filter:none;backdrop-filter:none}
#gtk-toast.show{opacity:1;transform:none;pointer-events:auto}
#gtk-toast button{flex:none;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:0;border-radius:5px;background:#FCEFF5;color:#E33A80;cursor:pointer;padding:0}
/* Character keys: buttons sit exactly under the key, two equal halves */
#roster [data-key-card] > div:last-child{width:240px;margin:0 auto;gap:8px}
#roster [data-key-card] > div:last-child > *{flex:1 1 0;min-width:0;padding:0;box-sizing:border-box}

/* main buttons: solid pink with a bright shine that swipes across, like Telegram buttons */
button[data-wallet], #app a[href="claim.html"]{position:relative;overflow:hidden;isolation:isolate;background:#E33A80 !important}
button[data-wallet]::after, #app a[href="claim.html"]::after{content:"";position:absolute;top:-20%;bottom:-20%;left:0;width:45%;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.28) 50%,rgba(255,255,255,0) 100%);
  transform:translateX(-160%) skewX(-20deg);animation:gtk-swipe 4s ease-in-out infinite}
@keyframes gtk-swipe{0%{transform:translateX(-160%) skewX(-20deg)}50%,100%{transform:translateX(330%) skewX(-20deg)}}
@media (prefers-reduced-motion: reduce){button[data-wallet]::after,#app a[href="claim.html"]::after{animation:none;opacity:0}}

/* keys never squish: every key is laid out at one design width (300px) and only ever scaled as a whole */
.gk-flip{width:300px;max-width:none}
#app [data-key-card] a > .gk-flip, .gk-flip{flex:none}
body:not(.home) .gk-flip{zoom:0.8}
.gk-big{zoom:1.07 !important}
#anat-keys .gk-flip{zoom:1}

/* give each key face its own 3D layer so pictures never drop out while the keys move */
.gk-face:not(.gk-back){transform:rotateY(0deg) translateZ(0.1px)}
.gk-face.gk-back{transform:rotateY(180deg) translateZ(0.1px)}
.gk-art img{backface-visibility:hidden;-webkit-backface-visibility:hidden}
