/* The head script sets this class before the first paint on a new visit. */
html.shop-entering { background: #08090b; }
html.shop-entering body { visibility: hidden; }
html.shop-intro-playing { overflow: hidden; }
.shop-intro {
  position: fixed; z-index: 2147483000; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; outline: 0;
  display: grid; place-items: center; overflow: hidden; user-select: none;
  background: radial-gradient(ellipse 43% 30% at 50% 50%, #191c23, #0c0d11 65%, #08090b);
  animation: shop-curtain .54s ease-in-out 3.53s both;
}
.shop-intro::backdrop { background: transparent; }
.shop-intro-line {
  position: relative; display: grid; place-items: center; width: min(94vw, 120vh, 46rem);
  aspect-ratio: 520 / 220; color: #f6f4f1;
  font: 500 min(13vw, 16.6vh, 6.35rem)/1 "Segoe UI", system-ui, sans-serif;
  font-kerning: normal; white-space: nowrap;
}
.shop-intro-words {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: .16em;
  animation: shop-wordmark-out .52s cubic-bezier(.48,.02,.64,.84) 2.15s both;
}
.shop-intro-word { display: block; }
.shop-intro-word > span { display: inline-block; animation: shop-word-in .44s cubic-bezier(.16,.7,.26,1) both; }
.shop-intro-word:first-child, .shop-intro-word:last-child {
  color: #c4c8d0; font-size: .59em; font-weight: 550; letter-spacing: -.048em;
}
.shop-intro-word:first-child { text-align: right; transform: rotate(-7deg) skewX(8deg); }
.shop-intro-word:first-child > span { --word-x: -.28em; animation-delay: .09s; }
.shop-intro-word:nth-child(2) {
  font: 400 1em/1 Georgia, "Times New Roman", serif; letter-spacing: -.065em;
}
.shop-intro-word:nth-child(2) > span { animation-delay: .42s; }
.shop-intro-word:last-child { transform: rotate(7deg) skewX(-8deg); }
.shop-intro-word:last-child > span { --word-x: .28em; animation-delay: .75s; }
.shop-intro-orbit {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; stroke-linecap: round;
}
/* Logo coordinates are shop-mark.svg at 3×, centered on the 520×220 viewBox. */
.intro-mark {
  transform-box: view-box; transform-origin: center;
  animation: shop-mark-tilt .9s cubic-bezier(.52,.02,.2,1) 2.15s both;
}
.intro-rim, .intro-echo {
  --outline: shop-mark-shape .9s cubic-bezier(.52,.02,.2,1) 2.15s both;
}
.intro-rim {
  --logo-x: 221px; --logo-y: 71px; fill: #0d0f13; stroke: #f1f3f5;
  stroke-dasharray: 1 1;
  animation: shop-outline-draw .99s cubic-bezier(.38,.04,.26,.99) 1.1s both, var(--outline);
}
.intro-echo {
  --logo-x: 233px; --logo-y: 83px; fill: none; stroke: #a8b3c1;
  animation: shop-echo-in .68s ease-in-out 2.33s both, var(--outline);
}
.intro-leading-edge {
  fill: none; stroke: #fff; stroke-width: 2.4; stroke-dasharray: .055 1;
  animation: shop-outline-glint .99s cubic-bezier(.38,.04,.26,.99) 1.1s both;
}
.shop-intro-playing main > .panel {
  animation: shop-panel-in .54s cubic-bezier(.2,.68,.25,1) 3.53s both;
}
@keyframes shop-word-in {
  from { opacity: 0; transform: translate(var(--word-x, 0), .14em); }
  to { opacity: 1; transform: translate(0, 0); }
}
@keyframes shop-wordmark-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(.76); }
}
@keyframes shop-outline-draw {
  from { opacity: 0; stroke-dashoffset: 1; }
  4% { opacity: .78; }
  to { opacity: 1; stroke-dashoffset: 0; }
}
@keyframes shop-outline-glint {
  from { opacity: 0; stroke-dashoffset: .055; }
  10%, 80% { opacity: .95; }
  to { opacity: 0; stroke-dashoffset: -.945; }
}
@keyframes shop-mark-shape {
  from { x: 18px; y: 35px; width: 484px; height: 150px; rx: 242px; ry: 75px; stroke-width: 1.25; fill-opacity: 0; }
  to { x: var(--logo-x); y: var(--logo-y); width: 66px; height: 66px; rx: 21px; ry: 21px; stroke-width: 6.75; fill-opacity: 1; }
}
@keyframes shop-mark-tilt {
  from { transform: rotate(-4deg); }
  to { transform: rotate(-15deg); }
}
@keyframes shop-echo-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes shop-curtain { from { opacity: 1; } to { opacity: 0; } }
@keyframes shop-panel-in {
  from { opacity: 0; transform: translateY(.8rem) scale(.985); }
  to { opacity: 1; transform: none; }
}

button[data-shop-locale] {
  display: inline-grid; grid-template-columns: 1.8rem .6rem 1.8rem;
  align-items: center; justify-items: center; flex-shrink: 0;
  min-height: 2.3rem; padding: .22rem; position: relative; isolation: isolate;
  border: 1px solid rgba(255,255,255,.25); border-radius: 9999px;
  background: linear-gradient(145deg,#32363cb5,#121419ce);
  box-shadow: inset 0 1px 1px #ffffff21;
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  color: #a4acb7; font: 650 .69rem/1 "Segoe UI",system-ui,sans-serif; letter-spacing: .04em;
  cursor: pointer;
}
button[data-shop-locale]::before {
  content: ""; position: absolute; z-index: -1; inset: .22rem auto .22rem .22rem;
  width: 1.8rem; border-radius: 9999px; background: #e4e9f0;
  box-shadow: inset 0 1px 0 #fff,0 1px 6px #0005;
  transition: transform 320ms cubic-bezier(.22,.8,.2,1);
}
button[data-shop-locale][data-active="en"]::before { transform: translateX(2.4rem); }
button[data-shop-locale] span { transition: color .22s; }
button[data-shop-locale][data-active="tr"] span:first-child,
button[data-shop-locale][data-active="en"] span:last-child { color: #14171b; }
button[data-shop-locale] b { color: #78818c; font-weight: 450; }
button.shop-locale-fixed { position: fixed; inset: 1rem 1rem auto auto; z-index: 105; }
a.shop-discord {
  position: fixed; z-index: 90; left: max(1.25rem, env(safe-area-inset-left));
  bottom: max(1.25rem, env(safe-area-inset-bottom)); display: inline-flex;
  align-items: center; min-height: 2.5rem; gap: .6rem; padding: .35rem .75rem .35rem .55rem;
  color: #fff; border: 1px solid #dbe1ea30; border-radius: 9999px;
  background: #111419ec;
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 #ffffff1c,0 3px 15px #0003;
  font: 500 .83rem/1 "Segoe UI",system-ui,sans-serif; letter-spacing: -.025em; text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.shop-discord svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
.shop-discord-type { color: inherit; white-space: nowrap; letter-spacing: 0; }
.shop-discord-type strong { font-weight: 700; }
a.shop-discord:hover { transform: translateY(-2px); border-color: #dbe1ea70; }
a.shop-discord:focus-visible, button[data-shop-locale]:focus-visible { outline: 2px solid #dceaff; outline-offset: 3px; }
.shop-switching :is(.panel h1,.panel .subtitle,.hero-title,.section-title) { animation: shop-copy-in 340ms ease-out; }
@keyframes shop-copy-in { from { opacity: .55; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 540px) {
  a.shop-discord { left: max(.75rem,env(safe-area-inset-left)); bottom: max(.75rem,env(safe-area-inset-bottom)); font-size: .76rem; gap: .4rem; }
}
@media (forced-colors: active) {
  button[data-shop-locale]::before { border: 1px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-intro-playing main > .panel, .shop-intro, .shop-intro-words,
  .shop-intro-word > span { animation: none; }
  .shop-intro-orbit { display: none; }
  a.shop-discord, a.shop-discord *, button[data-shop-locale]::before, button[data-shop-locale] span { animation: none !important; transition: none; }
  a.shop-discord:hover { transform: none; }
}
