:root {
  color-scheme: dark;
  --gold: #f0c895;
  --muted: #c9a995;
  --edge: clamp(1.35rem, 3.8vw, 4.8rem);
  --sx: 0px;
  --sy: 0px;
  --lx: 0px;
  --ly: 0px;
  font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  background: #140808;
  color: #ffe4bb;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible { outline: 2px solid #ffdcaa; outline-offset: 6px; }
.page {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
}
.stage, .stage > div, .embers { position: absolute; inset: 0; pointer-events: none; }
.stage { z-index: -1; overflow: hidden; background: #20090b; }
.sky { background: #20090b url("assets/atmosfera.webp") center / cover no-repeat; }
.stage .landscape {
  inset: -12px;
  background: url("assets/arena.webp") left 20% center / cover no-repeat;
  transform: translate(var(--sx),var(--sy));
}
.warmth {
  background: radial-gradient(ellipse at 30% 89%, #ed4e1524, transparent 40%),
    radial-gradient(ellipse at 71% 33%, #f86e2412, transparent 42%);
}
.shade {
  background: linear-gradient(0deg,#100607e6,transparent 23%),
    linear-gradient(180deg,#1006088c,transparent 24%),
    linear-gradient(90deg,transparent 41%,#21080d17 67%,#0d030740);
}
.embers { width: 100%; height: 100%; }
.masthead, footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-inline: var(--edge);
}
.masthead {
  position: relative;
  padding-top: max(1.2rem, env(safe-area-inset-top));
  padding-bottom: 1.1rem;
}
.masthead::after {
  content: ""; height: 1px; position: absolute; inset: auto 0 0;
  background: linear-gradient(90deg, #ae785b54, #ae785b12 48%, #ae785b3a);
}
.signature { display: flex; align-items: center; gap: .85rem; font-size: .79rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 650; color: #f8ddbf; }
.signature b { color: #c5a187; font-weight: 450; }
.seal { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; position: relative; }
.seal::before, .seal::after { content: ""; position: absolute; inset: 5px; border: 1px solid #b9865282; transform: rotate(45deg); }
.seal::after { inset: 8px; border-color: #b9865230; }
.seal img { width: 21px; height: 21px; position: relative; z-index: 1; }
.motion {
  display: inline-flex; gap: .63rem; align-items: center; justify-content: center;
  min-height: 44px; margin-right: -.55rem; padding: 0 .55rem;
  background: transparent; border: 0; color: #d7bcaa; cursor: pointer; font-size: .83rem;
}
.motion:hover { color: #ffe5bf; }
.levels { display: flex; gap: 2px; align-items: center; height: 15px; }
.levels i { width: 2px; height: 2px; background: currentColor; }
.motion[aria-pressed="true"] .levels i { height: 6px; }
.motion[aria-pressed="true"] .levels i:nth-child(2) { height: 13px; }
.motion[aria-pressed="true"] .levels i:nth-child(3) { height: 9px; }
.motion[aria-pressed="true"] .levels i:nth-child(4) { height: 4px; }
main { display: grid; align-items: center; padding: 1.6rem var(--edge) 2rem; }
.hero { width: min(57vw, 54rem); margin-left: 32%; text-align: center; display: grid; justify-items: center; }
.relic {
  width: min(100%, clamp(24rem, min(43vw, 62svh), 46rem));
  position: relative; aspect-ratio: 1161/621; display: grid; place-items: center;
}
.rings {
  position: absolute; width: 57%; aspect-ratio: 1; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-24deg); border-radius: 50%;
  border: 1px solid #e8ab6923; box-shadow: 0 0 55px #ec703113, inset 0 0 64px #db5a1911;
}
.rings::before, .rings::after, .rings i {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.rings::before { inset: -5.2%; border: 1px dashed #e6a76924; }
.rings::after { inset: -9%; border: 1px solid transparent; border-top-color: #fbc78629; border-bottom-color: #fbc78626; transform: rotate(-35deg); }
.rings i { inset: -1.5%; border: 1px solid transparent; border-left-color: #e6a7694d; }
.mark { position: relative; width: 100%; transform: translate(var(--lx),var(--ly)); }
.logotype { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 18px #12000085); }
.glint {
  position: absolute; inset: 0; opacity: 0;
  mask: url("assets/takara.webp") center / contain no-repeat;
  -webkit-mask: url("assets/takara.webp") center / contain no-repeat;
  background-image: linear-gradient(110deg, transparent 42%, #ffe1af30 48%, #ffebca8a 50%, #ffe1af38 52%, transparent 58%);
  background-size: 275% 100%; mix-blend-mode: screen;
}
.caption { display: grid; justify-items: center; margin-top: clamp(.85rem, 3.8vh, 3rem); }
.ornament { display: flex; align-items: center; justify-content: center; gap: .6rem; width: min(11rem, 46vw); height: 8px; }
.ornament i { width: 40%; height: 1px; background: linear-gradient(90deg,transparent,#d69962b0); }
.ornament i:last-child { transform: rotate(180deg); }
.ornament b { width: 6px; height: 6px; transform: rotate(45deg); background: #fcc18b; box-shadow: 0 0 10px #e98c4e90; }
h1 {
  margin: clamp(.65rem,1.8vh,1.4rem) 0 0; font: 400 clamp(2.6rem, 4.6vw, 5.2rem)/1.07 "Baskervville", Baskerville, Georgia, "Times New Roman", serif;
  letter-spacing: .06em; color: #fce0bb; text-shadow: 0 2px 20px #0008;
}
.social {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center;
  gap: .65rem; margin-top: clamp(1.25rem,3.8vh,2.5rem); padding: .8rem 1.4rem;
  font-size: .9rem; font-weight: 550; letter-spacing: .035em; color: #f5d6b1;
  background: linear-gradient(130deg,#6e3c2b54,#36191d52);
  border: 1px solid #b983566f; border-radius: 3px; text-decoration: none;
}
.social svg { width: 15px; height: 15px; }
.social:hover, .social:focus-visible { color: #fff0d7; border-color: #e6ab74; background-color: #5d2c20; }
footer { gap: 1.2rem; padding-bottom: max(1.4rem, env(safe-area-inset-bottom)); color: var(--muted); font-size: .75rem; letter-spacing: .06em; }
.footer-rule { position: relative; flex: 1; height: 1px; background: linear-gradient(90deg,#bd89633a,#bd896326); margin-right: 7px; }
.footer-rule::after { content: ""; position: absolute; width: 5px; height: 5px; transform: rotate(45deg); right: -7px; top: -3px; border: 1px solid #cd94676f; }
[data-motion="on"] .glint { animation: sweep 10s ease-in-out infinite; }
[data-motion="on"] .rings::after { animation: turning 70s linear infinite; }
[data-motion="on"] .warmth { animation: forge 7s ease-in-out infinite alternate; }
@keyframes sweep { 0%, 17% { opacity: 0; background-position: 110% 0; } 20% { opacity: .73; } 37%, 100% { opacity: 0; background-position: -12% 0; } }
@keyframes turning { from { transform: rotate(-35deg); } to { transform: rotate(325deg); } }
@keyframes forge { from { opacity: .38; } to { opacity: 1; } }
@media (min-aspect-ratio: 19/9) {
  .stage .landscape { background-position: center 43%; }
}
@media (max-width: 720px) and (orientation: portrait) {
  .page { min-height: max(100svh, 37rem); }
  .stage .landscape {
    inset: 36% -12px -12px;
    background: url("assets/arena-mobile.webp") 6% bottom / auto 100% no-repeat;
    mask-image: linear-gradient(180deg,transparent, #000 34%);
  }
  .shade { background: linear-gradient(0deg,#110509dc,transparent 17%), linear-gradient(90deg,#14060719,transparent 40%,#1406074a); }
  .masthead { padding-top: max(.8rem, env(safe-area-inset-top)); padding-bottom: .7rem; }
  main { align-items: start; padding: clamp(1.6rem, 7svh, 5rem) 1rem 5.4rem; }
  .hero { width: 100%; margin-left: 0; }
  .relic { width: min(93%, 29rem); }
  .caption { margin-top: 1.35rem; }
  h1 { font-size: clamp(2.7rem,10vw,3.8rem); }
  .social { margin-top: 1.55rem; background: #301313dc; }
  footer { padding-bottom: max(1.15rem, env(safe-area-inset-bottom)); }
}
@media (max-height: 540px) and (orientation: landscape) {
  .masthead { padding-block: .35rem; }
  main { padding-block: .7rem; }
  .relic { width: min(44vw,55svh); }
  .caption { margin-top: .5rem; }
  h1 { margin-top: .45rem; font-size: 2.1rem; }
  .social { margin-top: .6rem; }
  footer { padding-bottom: .65rem; }
}

@media (max-width: 720px) and (max-height: 720px) and (orientation: portrait) {
  .stage .landscape { top: 52%; }
}

.community { margin-top: clamp(.85rem, 2.8vh, 1.8rem); }
.community .social { margin-top: 0; }
.community .discord {
  width: 100%; min-height: 52px; padding: .8rem 1.8rem; font-size: 1.06rem;
  color: #281009; background: linear-gradient(120deg, #ffe0aa, #dc955a);
  border-color: #efbd82; box-shadow: 0 0 25px #e56c372d;
}
.community .discord:hover, .community .discord:focus-visible {
  color: #281009; background: linear-gradient(120deg, #ffedc7, #f3b77c);
}
.community p { margin: .55rem 0 .7rem; font-size: .82rem; color: #efd1b5; }
.social-links { display: flex; justify-content: center; gap: .55rem; }
.social-links .social { flex: 1; padding-inline: .85rem; }
@media (max-width: 720px) and (orientation: portrait) {
  main { padding-bottom: 6rem; }
  .stage .landscape { top: 44%; }
}
@media (max-width: 720px) and (max-height: 720px) and (orientation: portrait) {
  .stage .landscape { top: 58%; }
}
