@font-face {
  font-family: Barlow Condensed;
  src: url("barlow-condensed-800.89eec21b1a.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("inter-variable.c940764593.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #111;
  --cream: #fff8e7;
  --yellow: #ffd60a;
  --lava: #ff4b1f;
  --teal: #00a6a6;
  --pink: #ff7bac;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --heavy: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 1rem/1.55 Inter, system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px dashed currentColor; outline-offset: 5px; }
.wrap { width: min(100% - 100px, 1280px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 16px; background: var(--cream); transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { background: var(--yellow); border-bottom: var(--heavy); position: relative; z-index: 2; }
.header-inner, .footer-inner { min-height: 88px; display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand-logo { width: auto; height: 45px; max-width: 150px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1; overflow-wrap: anywhere; }
.brand-name { font: 800 2.2rem/.9 var(--display); text-transform: uppercase; }
.brand-descriptor { font: 800 .57rem/1.1 var(--mono); text-transform: uppercase; margin-top: 6px; letter-spacing: .09em; }
#menu { display: flex; gap: clamp(16px, 3vw, 45px); flex-wrap: wrap; align-items: center; }
#menu a, #menu-toggle {
  font: 800 .76rem/1.25 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-underline-offset: .4em;
  text-decoration-thickness: 2px;
}
#menu a { text-decoration: none; }
#menu a:hover { text-decoration-line: underline; }
#menu-toggle { border: 2px solid var(--ink); background: var(--cream); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 8px 10px; white-space: nowrap; }
#menu-toggle span { margin-left: 4px; }

.hero { background: var(--yellow); position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(var(--ink) .6px, transparent .7px) center/9px 9px;
  opacity: .14;
  mask-image: linear-gradient(105deg, transparent 5%, #000 72%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); align-items: center; gap: 10px; min-height: clamp(535px, 47vw, 740px); padding-block: 38px 54px; }
.hero-copy { position: relative; z-index: 1; min-width: 0; container-type: inline-size; }
.eyebrow { display: inline-block; font: 800 clamp(.67rem, 1.2vw, .8rem)/1.25 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero .eyebrow { border: 2px solid var(--ink); background: var(--cream); padding: 7px 10px; transform: rotate(-2deg); }
.hero h1 { text-transform: uppercase; font: 800 clamp(2.2rem, 12cqi, 7.1rem)/.88 var(--display); letter-spacing: -.035em; margin: .2em 0 .25em; transform: rotate(-3deg); }
.hero h1 span { display: block; }
.hero h1 span:nth-child(even) { color: var(--lava); -webkit-text-stroke: clamp(2px, .31vw, 4px) var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink), 7px 7px 0 var(--ink); }
.hero p { max-width: 35ch; margin: 0 0 22px; font-size: clamp(.97rem, 1.65vw, 1.2rem); font-weight: 670; }
.hero-art { position: relative; margin: 0; min-width: 0; align-self: center; display: grid; place-items: center; }
.hero-orbit { position: absolute; z-index: -1; left: -22px; bottom: -120px; width: 260px; height: 260px; opacity: .08; pointer-events: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--cream); background: var(--ink); border: var(--heavy); box-shadow: 5px 5px 0 var(--lava), 6px 6px 0 var(--ink); padding: 12px 18px; font: 800 .87rem/1.25 var(--mono); text-decoration: none; text-transform: uppercase; transition: transform .18s, box-shadow .18s; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--lava), 8px 8px 0 var(--ink); }
.button-secondary { background: var(--cream); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.button-secondary:hover { box-shadow: 6px 6px 0 var(--ink); }
.ticker { overflow: hidden; background: var(--ink); color: var(--yellow); padding: 12px 0; border-block: 2px solid var(--ink); }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll var(--ticker-duration, 0s) linear infinite;
}
.ticker-sequence {
  display: flex;
  flex: none;
  align-items: center;
  gap: 24px;
  padding-inline-end: 24px;
  white-space: nowrap;
}
@keyframes ticker-scroll {
  to { transform: translateX(calc(-1 * var(--ticker-distance, 0px))); }
}
.ticker-text { font: 800 .8rem/1.25 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.ticker-star { color: var(--pink); line-height: 1; }

.section { padding-block: clamp(65px, 8vw, 122px); border-bottom: var(--heavy); }
.section-head { margin-bottom: clamp(24px, 4vw, 40px); }
.section h2 { text-transform: uppercase; font: 800 clamp(3.6rem, 8vw, 7.4rem)/.85 var(--display); letter-spacing: -.025em; margin: 10px 0 0; overflow-wrap: anywhere; }
.section-head p { max-width: 51ch; margin: 18px 0 0; font-size: clamp(1rem, 1.65vw, 1.2rem); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(28px, 6vw, 95px); }
.split .section-head { margin-bottom: 0; }

.products { background: var(--pink); }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 2.8vw, 34px); }
.product-card { background: var(--cream); border: var(--heavy); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.product-art { background: var(--yellow); border-bottom: var(--heavy); overflow: hidden; }
.product-card:nth-child(3n+2) .product-art { background: var(--teal); }
.product-card:nth-child(3n+3) .product-art { background: var(--lava); }
.product-art img { width: 100%; aspect-ratio: 1.36; object-fit: contain; transition: transform .24s; }
.product-card:hover .product-art img { transform: scale(1.055); }
.product-copy { padding: 19px 21px 23px; }
.product-tag, .case-tag { display: inline-block; font: 800 .68rem/1.25 var(--mono); letter-spacing: .04em; }
.product-copy h3, .pairing-card h3 { margin: 6px 0 7px; font: 800 clamp(2.2rem, 4.2vw, 3.2rem)/.87 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.product-copy p, .pairing-card p { margin: 0; }
.card-link { display: inline-block; font-weight: 750; text-underline-offset: .22em; }
.product-copy .card-link { margin-top: 10px; }

.meter { background: var(--teal); }
.meter-board { border: var(--heavy); box-shadow: var(--shadow); background: var(--cream); padding: clamp(17px, 4.6vw, 48px); transition: background-color .2s; }
.meter-max .meter-board { background: var(--yellow); }
.meter-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; font: 800 .78rem/1.25 var(--mono); text-transform: uppercase; }
.meter-indicator { min-width: max-content; color: var(--cream); background: var(--ink); padding: 6px 8px; }
#meter { --progress: 25%; appearance: none; display: block; margin: 0; width: 100%; height: 19px; background: linear-gradient(90deg, var(--lava) var(--progress), var(--cream) var(--progress)); border: 2px solid var(--ink); border-radius: 4px; cursor: ew-resize; }
#meter::-webkit-slider-thumb { appearance: none; width: 26px; height: 30px; background: var(--pink); border: var(--heavy); border-radius: 0; box-shadow: 2px 2px 0 var(--ink); }
#meter::-moz-range-thumb { width: 21px; height: 25px; background: var(--pink); border: var(--heavy); border-radius: 0; box-shadow: 2px 2px 0 var(--ink); }
.meter-marks { display: flex; justify-content: space-between; margin-top: 9px; font: 800 .69rem/1.4 var(--mono); }
#meter-value { display: block; min-height: 93px; margin-top: 18px; }
#meter-value strong { display: block; font: 800 clamp(2.3rem, 3.5vw, 3.5rem)/.95 var(--display); text-transform: uppercase; }
#meter-value span { display: block; margin-top: 7px; }

.pairings { background: var(--cream); background-image: radial-gradient(var(--pink) 1px, transparent 1px), radial-gradient(var(--teal) 1px, transparent 1px); background-size: 31px 31px, 41px 41px; background-position: 1px 1px, 21px 23px; }
.pairings-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pairing-card { background: var(--cream); border: var(--heavy); box-shadow: 4px 4px var(--ink); padding: 18px 20px; }
.pairing-card h3 { font-size: clamp(1.8rem, 3.3vw, 2.8rem); }
.pairing-icon { display: grid; place-items: center; background: var(--yellow); border: 2px solid var(--ink); width: 60px; height: 60px; font-size: 2.1rem; line-height: 1; transform: rotate(-5deg); margin-bottom: 15px; }
.pairing-card:nth-child(4n+2) .pairing-icon { background: var(--pink); }
.pairing-card:nth-child(4n+3) .pairing-icon { background: var(--teal); }
.pairing-card:nth-child(4n+4) .pairing-icon { background: var(--lava); }

.story { background: var(--lava); }
.story-print { margin: 0; background: var(--cream); border: var(--heavy); box-shadow: var(--shadow); transform: rotate(3deg); padding: 18px; }
.story-print img, .story-print svg { display: block; width: 100%; height: auto; }
.story-print figcaption { text-align: center; padding-top: 10px; border-top: 2px solid var(--ink); font: 800 .72rem/1.3 var(--mono); letter-spacing: .1em; }

.cases { background: var(--pink); }
.cases-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(15px, 2.8vw, 34px); }
.case-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  min-width: 0;
  background: var(--cream);
  border: var(--heavy);
  box-shadow: 5px 5px 0 var(--ink);
  padding: clamp(18px, 3vw, 34px);
}
.case-tag { background: var(--yellow); border: 2px solid var(--ink); padding: 4px 6px; }
.case-card h3 { margin: 12px 0 0; font: 800 clamp(2.4rem, 4vw, 3.8rem)/.92 var(--display); text-transform: uppercase; }
.case-details { display: grid; gap: 12px; margin: 0; }
.case-details div { padding-top: 12px; border-top: 1px solid var(--ink); }
.case-details dt { font: 800 .73rem/1.2 var(--mono); text-transform: uppercase; }
.case-details dd { margin: 5px 0 0; }
.case-visual { min-height: 186px; margin: 0; border: 2px solid var(--ink); }
.case-revenue { padding: clamp(12px, 2vw, 20px); background: var(--yellow); }
.case-revenue figcaption { font: 800 1.45rem/1 var(--display); }
.case-revenue figcaption strong, .case-metrics dd { font: 800 clamp(2.8rem, 5vw, 4.6rem)/.9 var(--display); }
.case-bars { display: grid; gap: 6px; margin-top: 10px; }
.case-bar-row { display: grid; grid-template-columns: 8ch minmax(0, 1fr) 3ch; align-items: center; gap: 8px; font: 700 .74rem/1.3 var(--mono); }
.case-bar-track { border: 1px solid var(--ink); background: var(--cream); }
.case-bar-track span { display: block; width: calc(100% * 100 / 305); height: 11px; background: var(--ink); }
.case-bar-row:last-child .case-bar-track span { width: 100%; background: var(--lava); }
.case-note { margin: 10px 0 0; font-size: .77rem; }
.case-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--teal); }
.case-metrics div { display: flex; flex-direction: column-reverse; justify-content: center; gap: 10px; padding: clamp(10px, 2vw, 20px); }
.case-metrics div + div { border-left: 2px solid var(--ink); }
.case-metrics dt { font: 800 .72rem/1.4 var(--mono); text-transform: uppercase; }
.case-metrics dd { margin: 0; white-space: nowrap; }

.contact { background: var(--yellow); }
.contact .button { margin-top: 18px; }
.contact-text-only .split, .story-text-only .split { grid-template-columns: minmax(0, 1fr); }
.location { background: var(--cream); border: var(--heavy); box-shadow: var(--shadow); padding: clamp(18px, 3.5vw, 30px); }
#address { margin: 8px 0 5px; font-size: 1.16rem; font-weight: 800; }
#location-note { margin: 5px 0 1px; }
.site-footer { background: var(--ink); color: var(--cream); padding-block: 12px; }
.footer-inner { flex-wrap: wrap; }
.site-footer .brand-logo { background: var(--cream); border-radius: 4px; padding: 3px; }
.site-footer [data-brand][data-dark-variant] .brand-logo { background: transparent; padding: 0; }
.site-footer p { font-size: .8rem; max-width: 24ch; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font: 800 .74rem/1.35 var(--mono); }
.footer-links a { text-underline-offset: .27em; }

@media (max-width: 1080px) {
  .wrap { width: calc(100% - 76px); }
}
@media (max-width: 780px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { min-height: 70px; }
  .brand-logo { height: 34px; }
  .brand-name { font-size: 1.8rem; }
  #menu { visibility: hidden; position: absolute; justify-content: start; z-index: 3; top: 100%; left: 0; right: 0; background: var(--cream); padding: 17px 24px; border-bottom: var(--heavy); }
  #menu a { padding: 8px 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 41px 26px; }
  .hero-copy { padding-left: 6px; }
  .hero-art { max-width: 480px; width: 100%; justify-self: center; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .products-grid, .cases-grid, .pairings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-print { max-width: 450px; }
}
@media (max-width: 490px) {
  .products-grid, .cases-grid { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .pairings-grid { gap: 14px; }
  .pairing-card { padding: 13px; }
  .pairing-card p { font-size: .89rem; }
  .footer-inner { gap: 17px; padding-block: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Adattamento di Vulcano per Enroi. */
.hero-art { width: 100%; max-width: 570px; justify-self: center; padding: clamp(14px, 2.6vw, 40px); }
.hero-board {
  width: 100%;
  aspect-ratio: 1.12;
  position: relative;
  background: var(--pink);
  border: var(--heavy);
  box-shadow: 9px 9px 0 var(--ink);
  transform: rotate(4deg);
  container-type: inline-size;
}
.board-grid {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 9% 10%;
}
.board-card {
  position: absolute;
  font: 800 8.2cqi/1 var(--display);
  white-space: nowrap;
}
.board-face {
  display: flex;
  align-items: center;
  gap: .28em;
  padding: .27em .38em;
  border: var(--heavy);
  box-shadow: 5px 5px 0 var(--ink);
}
.board-card span { font: 800 .86em/1 var(--mono); }
.board-media { top: 15%; left: 12%; font-size: 12cqi; }
.board-media .board-face { background: var(--cream); transform: rotate(-11deg); }
.board-testing { top: 43%; right: 8%; }
.board-testing .board-face { background: var(--teal); transform: rotate(4deg); }
.board-ai { bottom: 13%; left: 13%; font-size: 9.5cqi; }
.board-ai .board-face { background: var(--lava); transform: rotate(-9deg); }
.product-card:nth-child(1) .product-copy { border-top: 12px solid var(--yellow); }
.product-card:nth-child(2) .product-copy { border-top: 12px solid var(--teal); }
.product-card:nth-child(3) .product-copy { border-top: 12px solid var(--lava); }

@keyframes board-bounce-x {
  from { translate: var(--bounce-left) 0; }
  to { translate: var(--bounce-right) 0; }
}
@keyframes board-bounce-y {
  from { translate: 0 var(--bounce-top); }
  to { translate: 0 var(--bounce-bottom); }
}
@media (prefers-reduced-motion: no-preference) {
  .board-animated .board-card {
    animation: board-bounce-x var(--bounce-x-time) linear var(--bounce-x-delay) infinite alternate;
  }
  .board-animated .board-face {
    animation: board-bounce-y var(--bounce-y-time) linear var(--bounce-y-delay) infinite alternate;
  }
  .board-media {
    --bounce-x-time: 4.64s;
    --bounce-y-time: 7.52s;
    --bounce-x-delay: -0.8s;
    --bounce-y-delay: -1.12s;
  }
  .board-testing {
    --bounce-x-time: 5.36s;
    --bounce-y-time: 8.96s;
    --bounce-x-delay: -3.36s;
    --bounce-y-delay: -4.4s;
  }
  .board-ai {
    --bounce-x-time: 5.84s;
    --bounce-y-time: 10.24s;
    --bounce-x-delay: -9.44s;
    --bounce-y-delay: -7.84s;
  }
}

.menu-enhanced #menu { visibility: visible; }

.site-footer address { margin-top: 12px; font: normal .85rem/1.6 var(--mono); }
.method-summary { margin: 0; padding-inline-start: 1.4em; }
.method-summary li + li { margin-top: .55em; }
.meter-enhanced .meter-summary { display: none; }
.case-card { grid-template-rows: auto 1fr auto auto; }
.nav-path { padding-block: 14px 0; font: 700 .85rem/1.5 var(--mono); }
.detail-hero { background: var(--yellow); border-bottom: var(--heavy); padding-block: clamp(35px, 7vw, 85px); }
.detail-hero h1 { max-width: 16ch; margin: 12px 0 18px; font: 800 clamp(3.1rem, 8vw, 7.4rem)/.88 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.detail-hero p { margin: 0; max-width: 60ch; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.detail-main { padding-block: clamp(38px, 7vw, 80px); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 75px); align-items: start; }
.detail-copy h2, .detail-aside h2 { margin: 0 0 .35em; font: 800 clamp(2rem, 4vw, 3rem)/.95 var(--display); text-transform: uppercase; }
.detail-copy p { margin: 0 0 1.8em; max-width: 65ch; }
.detail-aside { background: var(--pink); border: var(--heavy); box-shadow: var(--shadow); padding: clamp(18px, 4vw, 28px); }
.detail-aside p { margin: 0 0 1em; }
.detail-aside .button { margin-top: 16px; }
.detail-main .case-visual { margin: 0 0 1.8em; max-width: 42rem; }
@media (max-width: 780px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }

/* Missione Campagna */
.contact .game-body .button { margin-top: 0; }
.campaign-game {
  min-width: 0;
  background: var(--cream);
  border: var(--heavy);
  box-shadow: var(--shadow);
  scroll-margin-top: 20px;
}
.game-header { padding: 13px clamp(16px, 3vw, 30px); background: var(--yellow); border-bottom: var(--heavy); }
.game-header h3 {
  margin: 0;
  font: 800 clamp(2rem, 4vw, 3.55rem)/.94 var(--display);
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.game-body { padding: clamp(14px, 2.7vw, 28px); }
.game-body p { margin: 0 0 12px; }
.game-body .button { max-width: 100%; white-space: normal; text-align: center; }
.game-body .rpg-loading { margin: 12px 0 0; font-size: .9rem; }
.rpg-viewport { margin-bottom: 10px; scroll-margin-top: 16px; }
.rpg-canvas {
  display: block;
  width: 100%;
  height: clamp(245px, 29vw, 355px);
  border: var(--heavy);
  background: #eee2c6;
}
.rpg-avatar { width: var(--sprite-size, 26px); height: var(--sprite-size, 26px); position: relative; display: block; pointer-events: none; }
.rpg-avatar i, .rpg-avatar b { position: absolute; display: block; }
.rpg-avatar i {
  left: 23%;
  top: 0;
  width: 56%;
  height: 54%;
  border: 2px solid var(--ink);
  border-top-width: 4px;
  background: linear-gradient(90deg, transparent 55%, var(--ink) 55% 71%, transparent 71%) center 58%/100% 18% no-repeat, var(--yellow);
  z-index: 1;
}
.rpg-avatar b {
  left: 10%;
  bottom: 0;
  width: 80%;
  height: 54%;
  background: linear-gradient(var(--lava) 0 62%, var(--ink) 62%);
  border: 2px solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 62% 100%, 62% 72%, 38% 72%, 38% 100%, 0 100%);
}
.game-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 16px; border: 2px solid var(--ink); }
.game-stats div { display: flex; flex-direction: column-reverse; padding: 8px clamp(6px, 1.6vw, 12px); }
.game-stats div + div { border-left: 2px solid var(--ink); }
.game-stats dt { margin-top: 3px; font: 700 .76rem/1.2 var(--mono); }
.game-stats dd { margin: 0; font: 800 clamp(1.3rem, 3.5vw, 2rem)/.95 var(--display); white-space: nowrap; }
.game-body .rpg-quest { margin: 0 0 9px; font-weight: 800; }
.rpg-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: var(--heavy);
  width: min(100%, 365px);
  margin-inline: auto;
  background: var(--ink);
  gap: 2px;
}
.rpg-tile {
  display: grid;
  position: relative;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1.25;
  isolation: isolate;
  background: radial-gradient(var(--ink) .6px, transparent .7px) 0 0/8px 8px, var(--cream);
  --sprite-size: clamp(21px, 4vw, 35px);
}
.rpg-tile[data-kind="wall"] {
  background: repeating-linear-gradient(135deg, var(--ink) 0 6px, #4a4232 6px 12px);
}
.rpg-tile[data-quest] { background: #e5dcca; }
.rpg-tile[data-state="target"] { background: var(--pink); }
.rpg-tile[data-state="complete"] { background: var(--teal); }
.rpg-tile[data-near] { cursor: pointer; }
.rpg-tile[data-near]:hover { box-shadow: inset 0 0 0 3px var(--lava); }
.rpg-tile[data-player] { background: var(--yellow); }
.rpg-marker { font: 800 clamp(1rem, 3vw, 1.6rem)/1 var(--display); }
.rpg-tile[data-player] .rpg-marker { position: absolute; top: 2px; right: 4px; font-size: .85rem; }
.game-body .rpg-help, .game-body .rpg-position { font-size: .875rem; }
.game-body .rpg-help { margin: 10px 0 5px; }
.game-body .rpg-position { min-height: 2.6em; margin-bottom: 9px; }
.rpg-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.rpg-dpad {
  display: grid;
  width: min(100%, 220px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: ". up ." "left down right";
  gap: 5px;
}
.rpg-key[data-direction="up"] { grid-area: up; }
.rpg-key[data-direction="left"] { grid-area: left; }
.rpg-key[data-direction="down"] { grid-area: down; }
.rpg-key[data-direction="right"] { grid-area: right; }
.rpg-key, .rpg-action {
  min-height: 44px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-weight: 760;
}
.rpg-key { padding: 3px 2px; font-size: .85rem; }
.rpg-key:hover, .rpg-action:hover { background: var(--yellow); }
.game-heading { margin: 0 0 9px; font: 800 clamp(1.85rem, 4vw, 2.75rem)/.95 var(--display); text-transform: uppercase; }
.rpg-scene { padding: clamp(12px, 2.3vw, 19px); border: 2px solid var(--ink); background: var(--pink); }
.game-body .rpg-kicker { margin: 0 0 6px; font: 800 .78rem/1.3 var(--mono); text-transform: uppercase; }
.game-body .rpg-log { margin: 0 0 13px; padding: 8px 10px; border-left: 3px solid var(--ink); background: var(--cream); }
.game-body .rpg-log:empty { display: none; }
.rpg-actions { display: grid; gap: 7px; }
.rpg-action { width: 100%; padding: 8px 10px; text-align: left; }
.rpg-bag { margin-top: 18px; padding-top: 10px; border-top: 2px solid var(--ink); }
.rpg-bag summary { cursor: pointer; font: 800 .85rem/1.4 var(--mono); }
.rpg-bag ul, .game-body .rpg-bag p { margin: 8px 0 0; }
.rpg-bag ul { padding-inline-start: 1.3em; }
