:root {
  --bg: #ffffff;
  --ink: #111214;
  --muted: rgba(17, 18, 20, 0.62);   
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}
:root {
  --chain-w: clamp(98px, 9.6vw, 150px);   
  --chain-x: calc(var(--chain-w) * -0.33);
  --chain-in: calc(var(--chain-w) + var(--chain-x));   
}
.chain {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--chain-w);
  z-index: 1;
  pointer-events: none;
  background: url("../assets/retez.png") repeat-y center top;
  background-size: 100% auto;
}
.chain-l { left: var(--chain-x); }
.chain-r { right: var(--chain-x); transform: scaleX(-1); background-position: center -41vh; }
@media (max-width: 640px) {
  :root { --chain-w: 60px; --chain-x: -24px; }
}
.nav {
  display: flex;
  justify-content: flex-end;
  padding: 12px calc(var(--chain-in) + 10px) 0;
  position: relative;
  z-index: 3;
}
.nav-link {
  display: block;
  line-height: 0;
  padding: 6px 4px;
  border-radius: 6px;
  transition: transform 0.18s ease;
}
.nav-link img {
  height: clamp(17px, 2.1vw, 22px);
  width: auto;
  filter: drop-shadow(0 0 0.6px rgba(8, 10, 14, 0.85)) drop-shadow(0 0 0.6px rgba(8, 10, 14, 0.55))
          drop-shadow(0 3px 5px rgba(8, 10, 14, 0.16));
}
.nav-link:hover { transform: translateY(-1px) scale(1.04); }
.nav-link-left { margin-right: auto; }
.nav-link:focus-visible, .social:focus-visible, .logo-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media (min-width: 1160px) {
  .nav { margin-bottom: -46px; }
  .top .logo { width: min(48vw, 860px); }
  .top .worn-img { width: min(33vw, 540px); }      
}
.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 0;                      
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.logo {
  display: block;
  width: min(88vw, 860px);
  height: auto;
  filter: drop-shadow(0 0 0.7px rgba(8, 10, 14, 0.85)) drop-shadow(0 0 0.7px rgba(8, 10, 14, 0.6))
          drop-shadow(0 7px 12px rgba(8, 10, 14, 0.2));
  user-select: none;
  -webkit-user-drag: none;
}
.stage {
  position: relative;
  min-height: 0;
}
.shirts {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  width: min(100%, 1100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.shirt-view {
  position: relative;
  min-width: 0;
}
.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.9s ease;
  cursor: grab;
  touch-action: none;
  outline: none;
}
.scene.ready { opacity: 1; }
.scene:active { cursor: grabbing; }
.fallback {
  position: absolute;
  inset: 4% 0 8%;
  margin: auto;
  max-width: 92%;
  max-height: 84%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(8, 10, 14, 0.22));
}
.loader {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(60%, 180px);
  height: 2px;
  transform: translateX(-50%);
  background: rgba(17, 18, 20, 0.1);
  overflow: hidden;
  border-radius: 2px;
}
.loader span {
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, #111214, transparent);
  animation: sweep 1.25s ease-in-out infinite;
}
.loader.done { opacity: 0; visibility: hidden; transition: opacity 0.15s ease, visibility 0s 0.15s; }
@keyframes sweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(270%); }
}
.foot {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 16px max(var(--edge-b, 7px), env(safe-area-inset-bottom));
  pointer-events: none;
}
.drop, .worn {
  margin: 0;
  line-height: 0;
}
.drop-img, .worn-img {
  display: inline-block;
  height: auto;
  filter: drop-shadow(0 0 0.7px rgba(8, 10, 14, 0.85)) drop-shadow(0 0 0.7px rgba(8, 10, 14, 0.6))
          drop-shadow(0 6px 10px rgba(8, 10, 14, 0.18));
  user-select: none;
  -webkit-user-drag: none;
}
.drop-img { width: min(78vw, 520px); }
.worn { margin-top: clamp(6px, 1.2vh, 12px); }
.worn-img { width: min(88vw, 540px); }
.count {
  --h: clamp(18px, 5.6vw, 38px);
  font-size: var(--h);
  line-height: 1;
  margin-top: clamp(8px, 1.4vh, 14px);
}
.count[hidden] { display: none; }
.count-row {
  display: inline-flex;
  align-items: flex-start;
  transform: translateX(-0.27em);          
}
.grp { display: flex; flex-direction: column; align-items: center; }
.digits { display: flex; }
.cell {
  position: relative;
  display: block;
  height: 1em;
  margin-right: 0.08em;
  flex: none;
}
.cell.colon { margin: 0 0.30em 0 0.22em; }
.cell img {
  position: absolute;
  top: -0.1em;
  height: 1.2em;
  max-width: none;
  filter: drop-shadow(0 0 0.7px rgba(8, 10, 14, 0.85)) drop-shadow(0 0 0.7px rgba(8, 10, 14, 0.6))
          drop-shadow(0 4px 7px rgba(8, 10, 14, 0.16));
  user-select: none;
  -webkit-user-drag: none;
}
.lab {
  display: block;
  margin-top: 0.75em;
  padding-left: 0.53em;                      
  font-size: max(8px, 0.24em);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2px, 0.8vh, 8px);
  margin: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hint.show { opacity: 1; }
@media (max-width: 1159px) {
  .logo { width: min(100vw - 2 * var(--chain-in) - 8px, 860px); }
  .worn-img { width: min(100vw - 2 * var(--chain-in) - 28px, 540px); }
  .drop-img { width: min(100vw - 2 * var(--chain-in) - 24px, 520px); }
}
@media (max-width: 640px) {
  .count { --h: clamp(15px, 5.2vw, 38px); }
  .hint { font-size: 10px; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .shirts {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    left: calc(var(--chain-in) - 6px);
    right: calc(var(--chain-in) - 6px);
    width: auto;
  }
}
.legal-links {
  display: flex;
  justify-content: center;
  gap: 2.2em;
  margin-top: clamp(6px, 1vh, 10px);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  pointer-events: auto;
}
.legal-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0 4px 0.3em;               
  border-radius: 4px;
}
.legal-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-links a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; color: var(--ink); }
.legal-links a[aria-current="page"] { color: var(--ink); }
.foot-page { padding-top: 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.page-socials { overflow: auto; grid-template-rows: auto auto 1fr auto; }
.page-socials .top { pointer-events: auto; }
.logo-link { display: block; line-height: 0; border-radius: 8px; }
.socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;                
  padding: clamp(24px, 5vh, 56px) 16px clamp(60px, 14vh, 150px);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.social img {
  width: auto;
  filter: drop-shadow(0 0 0.7px rgba(8, 10, 14, 0.85)) drop-shadow(0 0 0.7px rgba(8, 10, 14, 0.6))
          drop-shadow(0 6px 10px rgba(8, 10, 14, 0.18));
}
.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 4.4vh, 40px);
}
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  line-height: 0;
  transition: transform 0.2s ease;
}
.social img { height: clamp(24px, 7.1vw, 58px); }
.social:not(.soon):hover { transform: translateY(-2px) scale(1.03); }
.social.soon { cursor: default; }
.social-note {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
@font-face {
  font-family: "GC Archivo Black";
  src: url("../assets/fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "GC Barlow";
  src: url("../assets/fonts/Barlow-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
.info {
  width: min(100% - 2 * var(--chain-in) - 24px, 560px);
  margin: 0 auto;
  align-self: center;
  padding: clamp(28px, 6vh, 64px) 0 clamp(48px, 10vh, 110px);
  text-align: center;
  font-family: "GC Barlow", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.info p { margin: 0 0 18px; text-wrap: pretty; }   
.info-title {
  display: inline-block;
  margin: 0 0 26px;
  font-family: "GC Archivo Black", "Arial Black", sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: skewX(-14deg);                 
}
.info-end { margin-top: 30px; }
.info-welcome { margin: 4px 0 0; font-size: clamp(20px, 3.2vw, 28px); }
@media (max-width: 640px) {
  .info { font-size: 15.5px; }
}
.legal {
  width: min(100% - 2 * var(--chain-in) - 24px, 680px);
  margin: clamp(28px, 6vh, 64px) auto 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.legal h1 {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.legal .updated { margin: 0 0 28px; font-size: 12px; color: var(--muted); }
.legal h2 {
  margin: 34px 0 8px;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal a { color: inherit; text-underline-offset: 3px; }
.legal a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.legal .short {
  padding: 14px 16px;
  border: 1px solid rgba(17, 18, 20, 0.14);
  border-radius: 10px;
}
.legal .op { padding-left: 14px; border-left: 2px solid rgba(17, 18, 20, 0.14); }
.legal .todo { background: #ffe14d; padding: 0 4px; border-radius: 3px; }   
@media (max-width: 640px) {
  .legal { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene { transition: none; }
  .loader span { animation: none; width: 100%; opacity: 0.5; }
}
