:root {
  --materials-ink: #080a20;
  --materials-white: #ffffff;
  --materials-green: #35cc9b;
  --materials-red: #da6874;
  --materials-purple: #a295f9;
  --materials-yellow: #ffe000;
  --materials-panel-stroke: 5px;
  --materials-preview-stroke: 2px;
  --materials-control-stroke: 3px;
  --materials-tab-radius: 10px;
  --materials-tab-shadow-x: 5px;
  --materials-tab-shadow-y: 5px;
  --materials-title-size: 44px;
  --materials-title-scale: .9166667;
  --materials-title-line-height: 1.6;
  --materials-title-tracking: .1em;
  --materials-card-font-size: 20px;
  --materials-card-line-height: 1.6;
  --materials-card-tracking: .02em;
  --materials-card-width: 300px;
  --materials-card-height: 400px;
  --materials-card-wide-width: 381px;
  --materials-card-wide-height: 324px;
  --materials-preview-width: 262px;
  --materials-preview-height: 277px;
  --materials-preview-wide-width: 343px;
  --materials-preview-wide-height: 209px;
  --materials-platform-size: 32px;
  --materials-platform-cursor-left: 589.803px;
  --materials-download-width: 45px;
  --materials-download-height: 41px;
  --materials-copy-width: 83px;
  --materials-copy-height: 76px;
  --materials-qrcode-panel-height: 589px;
  --materials-qrcode-preview-size: 300px;
  --materials-masonry-gap: 28px;
  --materials-masonry-height: 900px;
  --materials-card-padding: 14px;
  --materials-card-footer-gap: 10px;
  --materials-site-base-height: 3300px;
  --materials-page-base-height: 2820px;
  --materials-library-base-height: 1275px;
  --materials-platform-base-top: 1682px;
  --materials-library-grid-top: 285px;
  --materials-library-bottom-space: 70px;
  --materials-site-height: var(--materials-site-base-height);
  --materials-page-height: var(--materials-page-base-height);
  --materials-library-height: var(--materials-library-base-height);
  --materials-platform-top: var(--materials-platform-base-top);
  --materials-background-tile-height: 3820px;
}

.materials-site-viewport { height: calc(var(--materials-site-height) * var(--site-scale, 1)); }

.materials-site-shell {
  height: var(--materials-site-height);
  background: #fff;
}

.materials-site-shell .materials-window { text-decoration: none; }
.nav-links .is-current { color: var(--color-marquee); }

.materials-page {
  position: relative;
  width: 1440px;
  height: var(--materials-page-height);
  overflow: hidden;
  background: var(--color-section-blue);
  color: #080a20;
}

.materials-page-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.materials-page-background img {
  display: block;
  width: 1440px;
  height: var(--materials-background-tile-height);
  max-width: none;
  object-fit: cover;
}

.asset-library,
.copy-panel,
.qrcode-panel,
.platform-rules { z-index: 1; }

.materials-page > .materials-title { z-index: 5; }

.pixel-panel,
.pixel-title,
.small-panel-title { position: absolute; }

.panel-surface,
.pixel-title > img,
.small-panel-title > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.panel-surface,
.pixel-title > img,
.small-panel-title > img { filter: drop-shadow(7px 7px 0 #080a20); }

.materials-title {
  z-index: 5;
  left: 137px;
  top: 80px;
  width: 335px;
  height: 94px;
  transform: scale(var(--materials-title-scale));
  transform-origin: center;
}

.materials-title h1,
.materials-title h2,
.small-panel-title h2 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--materials-title-line-height);
  letter-spacing: var(--materials-title-tracking);
  white-space: nowrap;
  z-index: 2;
}

.materials-title h1 { font-size: var(--materials-title-size); }

.asset-library {
  left: 74px;
  top: 137px;
  width: 823px;
  height: var(--materials-library-height);
}

.asset-library-content {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.asset-tabs {
  position: absolute;
  z-index: 3;
  left: 43px;
  top: 82px;
  display: flex;
  gap: 23px;
}

.asset-tab {
  width: 105px;
  height: 50px;
  padding: 0;
  border: var(--materials-control-stroke) solid var(--materials-ink);
  border-radius: var(--materials-tab-radius);
  background: #fff000;
  color: #080a20;
  font-family: var(--font-heading);
  font-size: var(--materials-card-font-size);
  font-weight: 700;
  line-height: var(--materials-card-line-height);
  cursor: pointer;
}

.asset-tab:nth-child(1) { background: var(--materials-green); }
.asset-tab:nth-child(2) { background: var(--materials-red); letter-spacing: .05em; }
.asset-tab:nth-child(3) { background: var(--materials-purple); }
.asset-tab:nth-child(4) { background: var(--materials-yellow); }
.asset-tab:nth-child(5) { background: var(--materials-green); }
.asset-tab.is-active { box-shadow: var(--materials-tab-shadow-x) var(--materials-tab-shadow-y) 0 var(--materials-ink); }

#asset-category-title {
  position: absolute;
  z-index: 2;
  left: 47px;
  top: 147px;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
}

.asset-note {
  position: absolute;
  z-index: 2;
  left: 52px;
  top: 196px;
  width: calc(100% - 52px);
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
  white-space: pre-line;
}

.asset-card-grid {
  position: absolute;
  z-index: 1;
  left: 52px;
  top: var(--materials-library-grid-top);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--materials-masonry-gap);
  width: calc(100% - 104px);
  padding-right: var(--materials-card-footer-gap);
  overflow: visible;
}

.asset-card-grid.is-scroll-limited {
  height: calc(var(--materials-library-height) - var(--materials-library-grid-top) - var(--materials-library-bottom-space));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--materials-ink) transparent;
}

.asset-column { display: flex; flex-direction: column; gap: var(--materials-masonry-gap); min-width: 0; }

.asset-card {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  padding: var(--materials-card-padding);
  border: var(--materials-panel-stroke) solid var(--color-black);
  background: var(--materials-white);
}

.asset-preview {
  display: block;
  width: 100%;
  height: auto;
  border: var(--materials-preview-stroke) solid var(--color-black);
  background: var(--materials-white);
  object-fit: contain;
}

video.asset-preview { object-fit: contain; background: #000; }

.asset-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--materials-card-footer-gap);
  align-items: center;
  margin-top: var(--materials-card-footer-gap);
}

.asset-card .asset-meta {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: var(--materials-card-font-size);
  font-weight: 700;
  line-height: var(--materials-card-line-height);
  letter-spacing: var(--materials-card-tracking);
}

.asset-card .asset-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--materials-download-width);
  height: var(--materials-download-height);
  padding: 0;
  border: 0;
  border-radius: var(--materials-tab-radius);
  background: var(--materials-green);
  cursor: pointer;
}

.asset-card .asset-download > img {
  display: block;
  width: var(--materials-platform-size);
  height: var(--materials-platform-size);
  max-width: none;
  object-fit: contain;
}

.asset-platforms {
  display: flex;
  gap: 0;
  height: var(--materials-platform-size);
  margin-top: var(--materials-card-footer-gap);
}

.asset-platforms img {
  display: block;
  width: var(--materials-platform-size);
  height: var(--materials-platform-size);
  object-fit: contain;
}

.asset-platforms .asset-platform-x { width: 35px; }

.copy-panel {
  left: 964px;
  top: 136px;
  width: 410px;
  height: 729px;
}

.copy-panel-title {
  left: 34px;
  top: -49px;
  width: 288px;
  height: 94px;
  transform: scale(var(--materials-title-scale));
  transform-origin: center;
}

.small-panel-title h2 { font-size: var(--materials-title-size); }

.copy-panel > p,
.cta-panel > p {
  position: absolute;
  z-index: 2;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.copy-panel > p { left: 36px; top: 75px; width: 344px; }

.copy-panel textarea {
  position: absolute;
  z-index: 2;
  border: 3px solid #080a20;
  background: #fff;
  color: #080a20;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 900;
}

.copy-select { position: absolute; z-index: 4; left: 35px; top: 151px; width: 344px; }
.copy-select-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 54px; padding: 0 15px; border: 3px solid var(--materials-ink); background: var(--materials-white); color: var(--materials-ink); font-family: var(--font-body); font-size: var(--materials-card-font-size); font-weight: 900; cursor: pointer; }
.copy-select-trigger::-webkit-details-marker { display: none; }
.copy-select-trigger::marker { content: ""; }
.select-arrow { display: block; width: 24px; height: 34px; font-size: 24px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; pointer-events: none; }
.copy-select-menu { position: absolute; z-index: 5; left: 0; top: 100%; width: 100%; max-height: var(--materials-preview-height); overflow-y: auto; border: 3px solid var(--materials-ink); border-top: 0; background: var(--materials-white); }
.copy-select:not([open]) .copy-select-menu { display: none; }
.copy-select-menu button { display: block; width: 100%; height: 54px; padding: 0 15px; border: 0; background: var(--materials-white); color: var(--materials-ink); font-family: var(--font-body); font-size: var(--materials-card-font-size); font-weight: 700; text-align: left; cursor: pointer; }
.copy-select-menu button:hover,
.copy-select-menu button[aria-selected="true"] { background: var(--materials-purple); }
.copy-panel textarea { left: 36px; top: 235px; width: 344px; height: 435px; padding: 18px; resize: none; line-height: 1.55; }

.copy-content-button {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 57px;
  width: var(--materials-copy-width);
  height: var(--materials-copy-height);
  padding: 0;
  border: 0;
  background: transparent;
  color: #080a20;
  cursor: pointer;
}

.copy-content-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.copy-content-button[data-copied="true"] { color: #17a870; }

.qrcode-panel {
  left: 964px;
  top: 969px;
  width: 410px;
  height: var(--materials-qrcode-panel-height);
}

.qrcode-panel-title {
  left: 29px;
  top: -49px;
  width: 211px;
  height: 94px;
  filter: none;
  transform: scale(var(--materials-title-scale));
  transform-origin: center;
}

.platform-title::before {
  content: none;
}

.qrcode-panel-title .qrcode-title-shadow { left: .846px; top: 4.846px; width: 216.309px; height: 97.309px; filter: none; }
.qrcode-panel-title .qrcode-title-label { left: -2.585px; top: -2.585px; width: 216.171px; height: 99.171px; filter: none; }
.qrcode-panel-title h2 { inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--font-reward-number); font-size: 40px; line-height: var(--materials-title-line-height); text-align: center; }
.qrcode-panel > p { position: absolute; z-index: 2; left: 42px; top: 74px; width: 318px; margin: 0; color: var(--color-black); font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
.qrcode-input-row { position: absolute; z-index: 2; left: 36px; top: 148px; width: 344px; height: 70px; border: var(--materials-panel-stroke) solid var(--color-black); background: var(--materials-white); }
.qrcode-input-row input { width: 100%; height: 100%; padding: 0 76px 0 15px; border: 0; outline: 0; background: transparent; font: 700 20px/1.4 var(--font-body); }
.qrcode-input-row button { position: absolute; right: 15px; top: 9px; width: 60px; height: 40px; padding: 0; border: 0; border-radius: var(--materials-tab-radius); background: var(--materials-green); color: var(--color-black); font-family: var(--font-reward-number); font-size: 20px; font-weight: 700; line-height: var(--materials-card-line-height); letter-spacing: var(--materials-title-tracking); cursor: pointer; }
.qrcode-preview { position: absolute; z-index: 2; left: 36px; top: 249px; display: flex; align-items: center; justify-content: center; width: var(--materials-qrcode-preview-size); height: var(--materials-qrcode-preview-size); border: var(--materials-panel-stroke) solid var(--color-black); background: var(--materials-white); }
.qrcode-preview canvas { display: block; width: 100%; height: 100%; }
.qrcode-download { position: absolute; z-index: 3; left: 348px; top: 516px; display: flex; align-items: center; justify-content: center; width: var(--materials-download-width); height: var(--materials-download-height); padding: 0; border: 0; border-radius: var(--materials-tab-radius); background: var(--materials-green); cursor: pointer; }
.qrcode-download img { display: block; width: var(--materials-platform-size); height: var(--materials-platform-size); object-fit: contain; }

.platform-rules {
  left: 50%;
  top: var(--materials-platform-top);
  width: 1275px;
  height: 856px;
  transform: translateX(-50%);
}

.platform-rules > .panel-surface {
  filter: drop-shadow(7px 7px 0 #080a20);
}

.platform-title {
  position: absolute;
  left: 71px;
  top: -50px;
  width: 350px;
  height: 94px;
  filter: none;
}

.platform-title > img {
  position: absolute;
  display: block;
  max-width: none;
}

.platform-title .platform-title-shadow { left: 2.846px; top: 4.846px; width: 356.309px; height: 97.309px; filter: none; }
.platform-title .platform-title-label { left: -2.585px; top: -2.585px; width: 355.171px; height: 99.171px; filter: none; }
.platform-title h2 { inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: var(--materials-title-size); line-height: var(--materials-title-line-height); text-align: center; }

.platform-rule-buttons {
  position: absolute;
  z-index: 2;
  left: 71px;
  top: 110px;
  display: flex;
  gap: 42px;
}

.platform-rule-button {
  width: 105px;
  height: 105px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.platform-rule-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.platform-rule-button.is-active { transform: translateY(-4px); }

.platform-cursor-wrap {
  position: absolute;
  z-index: 4;
  left: var(--materials-platform-cursor-left);
  top: 187px;
  width: 66px;
  height: 71px;
  overflow: hidden;
  background: transparent;
  transform: rotate(-8.752deg);
  pointer-events: none;
}

.platform-cursor-wrap img {
  position: absolute;
  left: -266.22%;
  top: -233.75%;
  width: 591.89%;
  height: 547.5%;
  max-width: none;
}

.platform-click-hint {
  position: absolute;
  z-index: 3;
  left: 760px;
  top: 125px;
  margin: 0;
  color: #080a20;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.platform-click-hint span { font-size: 34px; }

.platform-rule-copy {
  position: absolute;
  z-index: 2;
  left: 71px;
  top: 255px;
  width: 1125px;
  min-height: 470px;
  padding: 30px;
  color: #080a20;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.7;
  white-space: pre-line;
}

.materials-footer { height: 250px; }

@media (prefers-reduced-motion: reduce) {
  .asset-tab.is-active,
  .platform-rule-button.is-active { transform: none; }
}
