
:root{
  --brand:#941315;
  --brand-light:#c51b21;
  --brand-bright:#ff3a3f;
  --bg:#bcc0c6;
  --surface:#dddedf;
  --surface-soft:rgba(255,255,255,.42);
  --text:rgba(0,0,0,.92);
  --muted:rgba(0,0,0,.62);
  --stroke:rgba(0,0,0,.14);
  --shadow:0 18px 42px rgba(0,0,0,.18);
  --radius:18px;
}

*{box-sizing:border-box}
html{min-height:100%; background:var(--bg)}
body{
  margin:0;
  min-height:100vh;
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,.42), transparent 38%),
    var(--bg);
}

button,select{font:inherit}
button{cursor:pointer}

.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:50;
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:10px clamp(14px,3vw,42px);
  background:rgba(188,192,198,.9);
  border-bottom:1px solid rgba(0,0,0,.10);
  backdrop-filter:blur(12px);
}

.brand-mini{
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 0;
  border:0;
  background:transparent;
  color:var(--brand);
  font-family:"Bookman Old Style","Goudy Old Style",Georgia,serif;
  font-weight:700;
  font-size:18px;
  white-space:nowrap;
}
.brand-mini-mark{
  width:34px;height:34px;
  display:grid;place-items:center;
  border:2px solid var(--brand);
  border-radius:10px 10px 13px 13px;
  font-family:Georgia,serif;
  font-size:14px;
  box-shadow:0 4px 10px rgba(0,0,0,.12);
}

.tabs{
  display:flex;
  align-items:center;
  gap:6px;
  overflow-x:auto;
  scrollbar-width:none;
}
.tabs::-webkit-scrollbar{display:none}
.tab{
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  color:rgba(0,0,0,.63);
  padding:10px 11px 9px;
  font-size:12px;
  letter-spacing:.9px;
  font-weight:850;
  white-space:nowrap;
}
.tab:hover{color:var(--brand)}
.tab.active{
  color:var(--brand);
  border-bottom-color:var(--brand);
}

main{min-height:100vh}
.page{
  display:none;
  min-height:100vh;
  padding-top:70px;
}
.page.active{display:block}

/* HOME */
.home-page{
  position:relative;
  overflow:hidden;
}
.home-center{
  min-height:calc(100vh - 70px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:clamp(24px,5vw,70px) 20px 46px;
}

.bootIntroChainStage{
  position:relative;
  width:min(390px,58vw);
  aspect-ratio:1;
  min-width:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  filter:
    drop-shadow(0 0 12px rgba(148,19,21,.50))
    drop-shadow(0 18px 28px rgba(0,0,0,.28));
  animation:bootIntroChainIn 900ms ease-out both;
}
.bootIntroChainGlow{
  position:absolute;
  inset:10%;
  border-radius:999px;
  background:radial-gradient(circle,rgba(188,192,198,.22),transparent 66%);
  filter:blur(10px);
  opacity:.9;
}
.bootIntroChain,.bootIntroLogo{
  width:100%;height:100%;
  object-fit:contain;
}
.bootIntroChain{
  position:relative;z-index:2;
  animation:
    bootIntroChainSpin 4600ms cubic-bezier(.18,.82,.22,1) both,
    bootIntroChainFadeToLogo 4600ms ease-in-out both;
  transform-origin:50% 50%;
}
.bootIntroLogo{
  position:absolute;z-index:3;
  opacity:0;
  transform-origin:50% 50%;
  pointer-events:none;
  animation:bootIntroLogoResolve 4600ms ease-in-out both;
  filter:
    drop-shadow(0 0 12px rgba(148,19,21,.40))
    drop-shadow(0 18px 28px rgba(0,0,0,.34));
}

.logo-fallback{
  position:absolute;
  inset:0;
  display:none;
  place-items:center;
}
.logo-fallback.show{display:grid}
.fallback-chain{
  position:absolute;
  width:78%;height:78%;
  border:22px double rgba(74,74,76,.72);
  border-radius:50%;
  box-shadow:inset 0 0 0 8px rgba(255,255,255,.22),0 12px 26px rgba(0,0,0,.18);
  animation:fallbackSpin 4.2s ease-out both;
}
.fallback-shield{
  width:46%;height:54%;
  display:grid;place-items:center;
  background:linear-gradient(145deg,#b51d21,#7d0e10);
  color:white;
  border:4px solid rgba(255,255,255,.78);
  clip-path:polygon(50% 0,90% 14%,84% 72%,50% 100%,16% 72%,10% 14%);
  font:700 clamp(48px,8vw,86px)/1 Georgia,serif;
  opacity:0;
  animation:fallbackShieldIn 4.6s ease-in-out both;
}

.bootIntroTitle{
  margin:6px 0 0;
  font-size:clamp(44px,6vw,82px);
  line-height:.95;
  font-weight:700;
  font-family:"Bookman Old Style","Goudy Old Style",Georgia,serif;
  font-variant:small-caps;
  letter-spacing:1.8px;
  background:linear-gradient(180deg,var(--brand-bright) 0%,var(--brand-light) 46%,var(--brand) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 2px 5px rgba(0,0,0,.20);
  animation:bootIntroTitleIn 1200ms ease-out 900ms both;
}

.coming-soon{
  min-height:30px;
  margin-top:13px;
  color:rgba(255,255,255,.92);
  text-shadow:0 1px 2px rgba(0,0,0,.28);
  font-size:clamp(18px,2vw,26px);
  font-weight:850;
  letter-spacing:.8px;
  transition:opacity .24s ease,transform .24s ease;
  animation:bootIntroLoadingIn 900ms ease-out 1550ms both;
}
.coming-soon.swap{
  opacity:0;
  transform:translateY(5px);
}
.coming-soon-language{
  display:none !important;
}
.coming-soon-language.swap{opacity:0}

@keyframes bootIntroChainIn{
  0%{opacity:0;transform:scale(.84);filter:blur(3px)}
  100%{opacity:1;transform:scale(1);filter:blur(0)}
}
@keyframes bootIntroChainSpin{
  0%{transform:rotate(-22deg) scale(.92)}
  82%,100%{transform:rotate(720deg) scale(1)}
}
@keyframes bootIntroChainFadeToLogo{
  0%,76%{opacity:1}
  88%,100%{opacity:0}
}
@keyframes bootIntroLogoResolve{
  0%,76%{opacity:0;transform:scale(.97);filter:blur(1.5px) drop-shadow(0 0 8px rgba(148,19,21,.18))}
  88%,100%{opacity:1;transform:scale(1);filter:blur(0) drop-shadow(0 0 14px rgba(148,19,21,.42)) drop-shadow(0 18px 28px rgba(0,0,0,.34))}
}
@keyframes bootIntroTitleIn{
  0%{opacity:0;transform:translateY(10px) scale(.96);filter:blur(2px)}
  100%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
}
@keyframes bootIntroLoadingIn{
  0%{opacity:0;transform:translateY(6px)}
  100%{opacity:1;transform:translateY(0)}
}
@keyframes fallbackSpin{
  0%{transform:rotate(-22deg);opacity:.25}
  78%{transform:rotate(720deg);opacity:1}
  100%{transform:rotate(720deg);opacity:0}
}
@keyframes fallbackShieldIn{
  0%,74%{opacity:0;transform:scale(.9)}
  90%,100%{opacity:1;transform:scale(1)}
}

/* CONTENT */
.content-page{padding-bottom:54px}
.content-shell{
  width:min(1040px,calc(100% - 28px));
  margin:0 auto;
  padding:clamp(28px,5vw,58px) 0 0;
}
.content-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
}
.eyebrow{
  color:var(--brand);
  font-size:11px;
  font-weight:900;
  letter-spacing:1.8px;
}
.content-toolbar h1{
  margin:4px 0 0;
  color:var(--brand);
  font-family:"Bookman Old Style","Goudy Old Style",Georgia,serif;
  font-size:clamp(30px,4vw,48px);
  font-weight:700;
}
.language-control{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:210px;
  color:var(--muted);
  font-size:11px;
  font-weight:850;
  letter-spacing:.3px;
}
.language-select{
  width:100%;
  border:1px solid var(--stroke);
  border-radius:12px;
  padding:10px 36px 10px 12px;
  background:linear-gradient(180deg,#f7f7f8,#dcdddf);
  color:var(--text);
  font-weight:800;
  box-shadow:0 3px 0 rgba(0,0,0,.13),0 6px 14px rgba(0,0,0,.08);
}

.paper-card,.tutorial-card{
  background:rgba(221,222,223,.94);
  border:1px solid rgba(0,0,0,.13);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.paper-card{padding:clamp(20px,4vw,42px)}

.manual-copy{
  line-height:1.55;
  font-size:15px;
}
.manual-copy h2{
  margin:0 0 10px;
  color:var(--brand);
  font-size:clamp(24px,3vw,34px);
}
.manual-copy h3{
  margin:28px 0 8px;
  color:var(--brand);
  font-size:18px;
}
.manual-copy p{margin:8px 0}
.manual-copy ul{margin:8px 0 0;padding-left:22px}
.manual-copy li{margin:5px 0}
.manual-copy hr{
  border:0;
  border-top:1px solid rgba(0,0,0,.12);
  margin:24px 0;
}

/* TUTORIAL */
.tutorial-card{
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);
  min-height:540px;
}
.tutorial-media{
  position:relative;
  min-height:500px;
  background:linear-gradient(145deg,#2b2b2b,#45484d);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.tutorial-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.tutorial-image-fallback{
  position:absolute;
  inset:0;
  display:none;
  place-items:center;
  align-content:center;
  gap:14px;
  color:rgba(255,255,255,.8);
  background:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(145deg,#242424,#44474c);
  background-size:40px 40px,40px 40px,auto;
}
.tutorial-image-fallback.show{display:grid}
.tutorial-image-fallback span{
  color:#fff;
  font-family:Georgia,serif;
  font-size:18px;
  letter-spacing:2px;
}
.tutorial-image-fallback strong{
  color:var(--brand-bright);
  font:700 96px/1 Georgia,serif;
}
.tutorial-copy{
  display:flex;
  flex-direction:column;
  padding:clamp(22px,3.5vw,38px);
}
.tutorial-step{
  color:var(--brand);
  font-size:12px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
}
.tutorial-copy h2{
  margin:12px 0 14px;
  color:var(--brand);
  font-size:clamp(24px,3vw,34px);
  line-height:1.1;
}
.tutorial-text{
  white-space:pre-line;
  line-height:1.55;
  color:rgba(0,0,0,.78);
  font-size:15px;
}
.tutorial-nav{
  margin-top:auto;
  padding-top:26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.game-button{
  min-width:104px;
  border:1px solid rgba(0,0,0,.16);
  border-radius:12px;
  padding:10px 14px;
  background:linear-gradient(180deg,#f7f7f8,#dcdddf);
  color:rgba(0,0,0,.90);
  box-shadow:0 3px 0 rgba(0,0,0,.16),0 8px 16px rgba(0,0,0,.10);
  font-weight:800;
}
.game-button:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(0,0,0,.12)}
.game-button:disabled{opacity:.38;cursor:default}
.tutorial-dots{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:5px;
}
.tutorial-dot{
  width:8px;height:8px;
  border:0;border-radius:50%;
  padding:0;
  background:rgba(0,0,0,.20);
}
.tutorial-dot.active{background:var(--brand)}

/* CONTACT */
.contact-page{
  min-height:100vh;
}

.contact-shell{
  width:min(760px,calc(100% - 28px));
  margin:0 auto;
  padding:clamp(38px,7vw,80px) 0;
}

.contact-shell h1{
  margin:4px 0 28px;
  color:var(--brand);
  font-family:"Bookman Old Style","Goudy Old Style",Georgia,serif;
  font-size:clamp(30px,4vw,48px);
  font-weight:700;
}

.instagram-card{
  display:flex;
  align-items:center;
  gap:18px;
  padding:22px 26px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.55),
      rgba(221,222,223,.92)
    );

  border:1px solid rgba(148,19,21,.28);
  border-radius:18px;

  box-shadow:
    0 12px 28px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.instagram-icon{
  width:54px;
  height:54px;

  display:grid;
  place-items:center;

  flex:0 0 auto;

  border:2px solid var(--brand);
  border-radius:16px;

  color:var(--brand);

  font-size:34px;
  font-weight:700;
  line-height:1;

  background:rgba(255,255,255,.35);
}

.instagram-info{
  min-width:0;
}

.instagram-label{
  margin-bottom:3px;

  color:rgba(0,0,0,.58);

  font-size:12px;
  font-weight:900;
  letter-spacing:1.2px;
  text-transform:uppercase;
}

.instagram-handle{
  color:var(--brand);

  font-size:clamp(18px,3vw,25px);
  font-weight:850;

  letter-spacing:.2px;
}

/* RESPONSIVE */
@media (max-width:760px){
  .site-header{
    min-height:108px;
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
    padding:9px 14px 7px;
  }
  .brand-mini{font-size:16px}
  .brand-mini-mark{width:30px;height:30px}
  .tabs{width:100%}
  .tab{padding:8px 9px 7px;font-size:11px}
  .page{padding-top:108px}
  .home-center{min-height:calc(100vh - 108px)}
  .content-toolbar{
    align-items:stretch;
    flex-direction:column;
    gap:14px;
  }
  .language-control{min-width:0;width:100%}
  .tutorial-card{grid-template-columns:1fr}
  .tutorial-media{min-height:300px;max-height:52vh}
  .tutorial-copy{min-height:380px}
}
@media (max-width:460px){
  .content-shell{width:min(100% - 18px,1040px)}
  .paper-card{padding:18px}
  .tutorial-nav{gap:8px}
  .game-button{min-width:88px;padding:9px 10px;font-size:13px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
}


/* T10 COMMUNITY + PRIVACY PATCH v1 */
.community-page,.privacy-page{padding-bottom:54px}
.community-shell{max-width:900px}
.community-card{text-align:center;padding:clamp(28px,5vw,52px)}
.community-kicker{
  color:var(--brand);
  font-size:11px;
  font-weight:900;
  letter-spacing:1.8px;
  margin-bottom:8px;
}
.community-card h2{
  margin:0 0 12px;
  color:var(--brand);
  font-family:"Bookman Old Style","Goudy Old Style",Georgia,serif;
  font-size:clamp(25px,3vw,36px);
}
.community-card p{
  max-width:680px;
  margin:0 auto 24px;
  color:rgba(0,0,0,.72);
  line-height:1.6;
  font-size:15px;
}
.download-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 22px;
  border:1px solid rgba(0,0,0,.16);
  border-radius:12px;
  background:linear-gradient(180deg,#a51619,#7e0f11);
  color:#fff;
  text-decoration:none;
  font-weight:850;
  box-shadow:0 3px 0 rgba(0,0,0,.20),0 9px 18px rgba(0,0,0,.14);
}
.download-button:hover{filter:brightness(1.06)}
.download-button:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(0,0,0,.16)}
.community-social{
  margin-top:18px;
  color:var(--brand);
  font-size:14px;
  font-weight:850;
}
.privacy-copy{overflow-wrap:anywhere}
.privacy-copy > h2:first-child{margin-top:0}
.privacy-copy p + p{margin-top:10px}
.direct-home{text-decoration:none}
.direct-tab{text-decoration:none;display:inline-block}
.standalone-privacy{display:block}
@media (max-width:760px){
  .community-card{padding:24px 18px}
}
