/* People are texture-mapped Minecraft cuboids; items follow the hand transform. */
.scene-character {
  position: absolute;
  width: 280px;
  height: 360px;
  z-index: 2;
  perspective: 800px;
  pointer-events: none;
}
.scene-character .voxel-player {
  position: absolute;
  left: 50%;
  top: 15px;
  margin-left: -80px;
  --view-x: -7deg;
  --view-y: -26deg;
}
.character-contact-shadow {
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 45px;
  border-radius: 50%;
  background: radial-gradient(ellipse,#05020bab,transparent 70%);
}
.voxel-player[data-pose=gunner] .part-head { transform: rotateY(-12deg) rotateX(4deg); }
.voxel-player[data-pose=gunner] .part-arm-right { transform: rotateX(65deg) rotateY(-8deg) rotateZ(-14deg); }
.voxel-player[data-pose=gunner] .part-arm-left { transform: rotateX(72deg) rotateY(20deg) rotateZ(25deg); }
.voxel-player[data-pose=gunner] .part-leg-right { transform: rotateZ(7deg) rotateX(7deg); }
.voxel-player[data-pose=gunner] .part-leg-left { transform: rotateZ(-7deg) rotateX(-7deg); }
.voxel-player[data-pose=cook] .part-arm-right { transform: rotateX(42deg) rotateZ(-12deg); }
.voxel-player[data-pose=cook] .part-arm-left { transform: rotateX(32deg) rotateZ(16deg); }
.voxel-player[data-pose=host] .part-arm-left { transform: rotateZ(-115deg) rotateX(-12deg); }
.voxel-player[data-pose=host] .part-head { transform: rotateY(10deg) rotateZ(-5deg); }

.held-item, .item-pivot, .item-cube { display: block; position: absolute; transform-style: preserve-3d; }
.held-pickaxe {
  left: 20px;
  top: 105px;
  width: 0;
  height: 0;
  transform: translateZ(20px) rotateY(90deg) rotateZ(-14deg) scale(.7);
}
.item-pivot { width: 0; height: 0; }
.item-cube { width: var(--w); height: var(--h); }
.skin-model .item-face {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: var(--w);
  height: var(--h);
  background: none;
  box-shadow: none;
  backface-visibility: hidden;
}
.item-texture { display: block; width: 100%; height: 100%; background-repeat: no-repeat; image-rendering: pixelated; }
.item-face.front { transform: translateZ(calc(var(--d)/2)); }
.item-face.back { transform: rotateY(180deg) translateZ(calc(var(--d)/2)); filter: brightness(.8); }
.skin-model .item-face.right, .skin-model .item-face.left { width: var(--d); left: calc((var(--w) - var(--d))/2); }
.item-face.right { transform: rotateY(90deg) translateZ(calc(var(--w)/2)); filter: brightness(.75); }
.item-face.left { transform: rotateY(-90deg) translateZ(calc(var(--w)/2)); filter: brightness(.9); }
.skin-model .item-face.top, .skin-model .item-face.bottom { height: var(--d); top: calc((var(--h) - var(--d))/2); }
.item-face.top { transform: rotateX(90deg) translateZ(calc(var(--h)/2)); }
.item-face.bottom { transform: rotateX(-90deg) translateZ(calc(var(--h)/2)); filter: brightness(.65); }
.held-rifle {
  left: -115px;
  top: 9px;
  width: 220px;
  height: 138px;
  transform-origin: 61% 75%;
  transform: translateZ(28px) rotateX(-65deg) rotateY(16deg) rotateZ(-8deg);
}
.held-rifle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.5) drop-shadow(0 5px 5px #0009);
}

/* Each visual slot has its own environmental asset. */
.world-card { min-height: 520px; padding: 28px 30px; }
.world-card .world-bg { opacity: .9; filter: none; }
.world-card::after { background: linear-gradient(90deg,#100c1dcf,transparent 95%),linear-gradient(0deg,#100c1df0,transparent 75%); }
.world-card.dangerous::after { background: linear-gradient(90deg,#130c1cdb,transparent 95%),linear-gradient(0deg,#160c1ff2,transparent 75%); }
.world-card-copy { z-index: 3; max-width: 65%; }
.world-card-top { z-index: 4; }
.world-card p { text-shadow: 0 2px 8px #0b0613; }
.world-avatar { right: -30px; bottom: 70px; transform: scale(.86); transform-origin: right bottom; }
.world-avatar .voxel-player { --view-y: -20deg; }
.world-card.dangerous .world-avatar .voxel-player { --view-y: -28deg; }
.world-card-copy h3 { font-size: 40px; line-height: 1.16; }
.world-card-copy p { font-size: 20px; line-height: 1.65; }
.world-card .tags { max-width: 100%; }

/* Generated close-up portraits are limited to mechanics; worlds/races keep their models. */
.mechanic-portrait { position:absolute; z-index:2; left:50%; bottom:0; transform:translateX(-50%); width:min(100%,620px); height:auto; max-height:calc(100% - 12px); object-fit:contain; object-position:center bottom; max-width:none; pointer-events:none; }
.mechanic-art .art-caption { bottom:0; left:0; right:0; padding:32px 15px 18px; background:linear-gradient(transparent,#100c1d 70%); }
.race-traits .trait-title { color:var(--race-color); }
.trait-craft { --trait-color:#ecc78e; }
.trait-support { --trait-color:#ecc78e; }
.trait-vision { --trait-color:#b8b8ff; }
.trait-recovery { --trait-color:#8fd5ac; }
.trait-defense { --trait-color:#8fc8ec; }
.trait-attack { --trait-color:#f3a58e; }
.trait-mobility { --trait-color:#7edbd2; }
.trait-poison { --trait-color:#b6d77e; }
.trait-penalty { --trait-color:#e7a2b5; }
.mechanic-image-shade { background: linear-gradient(90deg,#14101d40,transparent 25%),linear-gradient(0deg,#0d0918f5,transparent 65%); }
.mechanic-art .art-caption { z-index: 3; }
.mechanic-art .mechanic-image { object-position: 50% center; }
.mechanic-art.city .mechanic-image { object-position: 65% center; }
.mechanic-art.cooking .mechanic-image { object-position: 35% center; }
.mechanic-art.brewery .mechanic-image { object-position: 72% center; }

/* The supplied BrewGuild avatar replaces the letter placeholder. */
.brewguild-avatar { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; border: 1px solid #deb5f13d; flex-shrink: 0; box-shadow: 0 5px 30px #c65ad71c; }

/* A real transparent generated gift asset replaces the CSS box. */
.gift-scene { min-height: 0; }
.opening-gift { position: relative; z-index: 1; width: min(115%,510px); max-width: none; height: auto; object-fit: contain; filter: drop-shadow(0 25px 30px #06020a60); animation: present-float 8s ease-in-out infinite; }
.gift-duration { z-index: 3; bottom: 20%; right: 10%; }
@keyframes present-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(1deg); } }

@media (max-width: 1180px) {
  .world-card { padding: 25px; }
  .world-card-copy h3 { font-size: 36px; }
  .world-avatar { transform: scale(.78); right: -35px; bottom: 95px; }
}
@media (max-width: 960px) {
  .world-grid { grid-template-columns: minmax(0,1fr); }
  .world-card { min-height: 480px; }
  .world-card-copy { max-width: 65%; }
  .world-avatar { right: 0; bottom: 65px; transform: scale(.92); }
}
@media (max-width: 720px) {
  .mechanic-art { min-height: 470px; max-height: none; }
  .world-card { min-height: 550px; }
  .world-card-copy { max-width: 65%; }
  .world-card-copy h3 { font-size: 35px; }
  .world-card-copy p { font-size: 18px; line-height: 1.65; }
  .world-avatar { right: -35px; bottom: 130px; transform: scale(.77); }
  .brewguild-avatar { width: 72px; height: 72px; border-radius: 16px; }
  .gift-scene { position: relative; right: auto; top: auto; width: 100%; height: 300px; opacity: 1; grid-row: 1; pointer-events: none; }
  .opening-gift { width: 300px; }
  .gift-duration { right: 18%; bottom: 10%; }
  .offer-copy { padding-top: 18px; }
  .offer-copy>p:not(.offer-lead):not(.offer-small) { max-width: 100%; }
}
@media (max-width: 480px) {
  .world-card { min-height: 655px; padding: 24px; }
  .world-card-copy { max-width: 100%; }
  .world-card-copy h3 { font-size: 35px; }
  .world-avatar { right: -20px; top: 70px; bottom: auto; transform: scale(.75); transform-origin: right top; }
  .world-card::after { background: linear-gradient(0deg,#100c1df5 0%,#100c1db3 38%,transparent 90%); }
  .world-card.dangerous::after { background: linear-gradient(0deg,#160c1ff7 0%,#160c1db3 38%,transparent 90%); }
  .world-card-copy p { font-size: 18px; }
  .world-card .tags span { font-size: 14px; }
  .mechanic-art { min-height: 450px; }
  .brewguild-avatar { width: 60px; height: 60px; border-radius: 14px; }
}

/* Clear first-screen beta and launch offer. */
.hero .live-badge { color:#f0ddff; border-color:#c29af180; background:#613da85c; font-weight:700; font-size:14px; letter-spacing:.04em; }
.hero-offer { display:flex; align-items:center; gap:15px; max-width:470px; margin-top:23px; padding:14px 17px; border:1px solid #c89bef80; border-radius:9px; color:#f9f0ff; background:linear-gradient(100deg,#5f3b8cbf,#231634e8); text-decoration:none; box-shadow:0 10px 35px #11091e70; }
.hero-offer>span:nth-child(2) { display:grid; gap:4px; flex:1; }
.hero-offer strong { font-size:12px; letter-spacing:.1em; color:#d9b7ff; }
.hero-offer b { font-size:16px; line-height:1.35; }
.hero-offer small { font-size:13px; color:#e2d2f0; }
.hero-offer-icon { font-size:27px; color:#e3bbff; }
.hero-offer:hover { border-color:#e2c7ff; background-color:#7249a6; }
@media(max-width:720px) { .hero { height:auto; min-height:900px; } .hero-content { min-height:900px; } .hero-offer { margin-top:18px; padding:12px; gap:10px; max-width:100%; } .hero-offer b { font-size:15px; } .hero-offer small { font-size:13px; } .hero-emblem { opacity:.35; } }

/* Player testimonials */
.testimonials {
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial {
  margin: 0;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #17121f;
  overflow-wrap: anywhere;
}

.testimonial figcaption {
  margin-bottom: 1rem;
  color: #e4c9fa;
  font-size: 1.125rem;
  font-weight: 800;
}

.testimonial blockquote { margin: 0; }

.testimonial blockquote p {
  margin: 0;
  color: #ddd3e7;
  font-size: 1rem;
  line-height: 1.65;
}

.testimonial blockquote p + p { margin-top: .8rem; }

@media (max-width: 920px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .worlds-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}

.world-card-copy { max-width:100%; }
