.studio-home {
  --studio-paper: #f7f3e8;
  --studio-text: #27392e;
  --studio-border: #dcd8c7;
  background: var(--studio-paper);
  color: var(--studio-text);
}
.studio-header { background: var(--studio-paper); color: var(--studio-text); border-bottom: 1px solid var(--studio-border); }
.studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 1rem;
}
.studio-wordmark { font-size: clamp(.88rem, 2.4vw, 1.04rem); text-decoration: none; font-weight: 800; }
.studio-toolbar a:focus-visible { outline-color: #0a79a2; }
.studio-nav { display: flex; gap: clamp(.6rem, 2.5vw, 1.7rem); flex: none; }
.studio-nav a { font-size: .875rem; text-decoration: none; }
.studio-nav a:hover { text-decoration: underline; text-underline-offset: .28rem; }

.studio-main { padding-bottom: clamp(3.15rem, 6vw, 5.75rem); }
.studio-intro { padding-block: clamp(1.6rem, 3.8vw, 3.45rem) clamp(1.05rem, 2.5vw, 2rem); }
.studio-intro h1 { font: 800 clamp(2.32rem, 6.5vw, 4.4rem)/1.14 var(--serif); letter-spacing: -.055em; }
.studio-intro p { margin-top: .46rem; color: var(--muted); }
.studio-feature {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.24fr);
  min-height: 350px;
  overflow: hidden;
  background: #143c35;
  color: #fff9e9;
  border-radius: clamp(.85rem, 2.2vw, 1.65rem);
}
.studio-feature-copy {
  align-self: center;
  padding: clamp(1.35rem, 4.65vw, 4rem);
}
.studio-feature-copy h2 {
  font: 800 clamp(1.7rem, 4.1vw, 3.25rem)/1.18 var(--serif);
}
.studio-feature-copy h2 span { display: block; margin-top: .32rem; font: 700 .58em/1.3 system-ui, sans-serif; color: #e0e9cf; }
.studio-feature-copy p { margin-top: .8rem; max-width: 24rem; color: #dae7d9; }
.studio-feature .actions { margin-top: 1.15rem; }
.studio-feature :focus-visible { outline-color: #85f8e7; }
.studio-feature-media { display: block; min-width: 0; position: relative; overflow: hidden; }
.studio-feature-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 60% 51%; }
.studio-feature-media:focus-visible { outline-offset: -6px; }

.studio-catalogue { margin-top: clamp(2.2rem, 5.5vw, 4.7rem); }
.studio-catalogue h2 {
  margin-bottom: 1.15rem;
  font: 800 clamp(1.65rem, 3.6vw, 2.65rem)/1.2 var(--serif);
  letter-spacing: -.04em;
}
.studio-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; gap: clamp(.85rem, 1.9vw, 1.55rem); }
.studio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: #fffdf5;
  border: 1px solid var(--studio-border);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.studio-card :is(h3, .studio-card-link) { color: var(--studio-text); }
.studio-card:hover { border-color: #879883; box-shadow: 0 9px 24px #554c3419; }
.studio-card-visual { overflow: hidden; background: #c9cfb0; }
.studio-card-visual img { width: 100%; aspect-ratio: 1.9; object-fit: cover; transition: transform .22s ease; }
.studio-card:hover .studio-card-visual img { transform: scale(1.025); }
.studio-card-body { flex: 1; display: flex; flex-direction: column; padding: clamp(.92rem, 2vw, 1.28rem); }
.studio-card-title { display: flex; align-items: center; gap: .62rem; margin-bottom: .56rem; }
.studio-card-title img { flex: none; border-radius: .55rem; }
.studio-card h3 { font-size: 1.2rem; line-height: 1.3; }
.studio-card h3 small { display: block; font-weight: 550; color: var(--muted); font-size: .76rem; margin-top: .12rem; }
.studio-card p { margin-bottom: .95rem; color: var(--muted); }
.studio-card-link { margin-top: auto; width: fit-content; font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .26rem; }
.studio-footer .footer-inner { min-height: 94px; }
.studio-footer a { font-size: .94rem; text-underline-offset: .25rem; }

.theme-ranch {
  --forest: #2c4628;
  --night: #263b22;
  --muted: #4b5c43;
  --paper: #f8f5e8;
  --sand: #e9edd9;
  --hero-color-light: #607545;
}
.theme-tea {
  --forest: #59373b;
  --night: #462a36;
  --ink: #432c30;
  --muted: #664d50;
  --paper: #fff3eb;
  --sand: #f4e1dc;
  --line: #e9d1c8;
  --hero-muted: #f6dfdb;
  --hero-color-light: #94605d;
}
.theme-farm {
  --forest: #403823;
  --night: #322b1c;
  --ink: #43341f;
  --muted: #655639;
  --paper: #faf2df;
  --sand: #f0e6cf;
  --line: #e2d5b8;
  --hero-muted: #f1e5cb;
  --hero-color-light: #726340;
}
.game-page { background: var(--paper); }
.game-page .hero { background: radial-gradient(ellipse at 87% 12%, var(--hero-color-light), transparent 63%), var(--forest); }
.game-page .hero-inner { padding-block: clamp(2rem, 5.5vw, 5.2rem); }
.game-page .hero-genre { color: var(--hero-muted); }
.game-page .hero-art img { width: 100%; aspect-ratio: 1.67; }
.game-page-title {
  font: 850 clamp(2.75rem, 7.15vw, 5.2rem)/1.08 var(--serif);
  letter-spacing: -.06em;
  margin-block: .65rem .9rem;
}
.game-page-title span {
  display: block;
  font: 750 clamp(1.27rem, 2.3vw, 1.95rem)/1.28 system-ui, sans-serif;
  margin-top: .38rem;
  color: var(--hero-muted);
  letter-spacing: .015em;
}
.game-page .hero-description { max-width: 28rem; }
.game-page .hero-art { background: var(--hero-color-light); box-shadow: 0 18px 36px #1d191552; }

.game-play-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(.9rem, 3vw, 2.35rem);
}
.game-play-grid article { border-top: 2px solid var(--line); padding-top: .95rem; }
.game-play-grid h3 { font-size: 1.15rem; margin-bottom: .38rem; }
.game-play-grid p { color: var(--muted); }
.game-page .gallery { width: min(1032px,100%); }
.game-page .gallery-three { grid-template-columns: repeat(3,minmax(0,1fr)); width: min(880px,100%); }
.game-page .gallery img { aspect-ratio: 9 / 16; object-fit: contain; }
.game-page .section-guide, .game-page .starter-list li { background: var(--paper); }
.game-page .starter-list li { border-top-color: var(--hero-color-light); }
.game-page .footer-copy a { text-underline-offset: .25rem; }
.game-links { display: flex; flex-wrap: wrap; align-items: center; gap: .72rem 1.3rem; }

@media (max-width: 840px) {
  .studio-feature { min-height: 300px; }
  .studio-feature-copy { padding: 1.3rem; }
  .studio-feature-media img { min-height: 300px; }
}
@media (max-width: 700px) {
  .studio-feature { grid-template-columns: minmax(0,1fr); }
  .studio-feature-media img { height: auto; min-height: 0; aspect-ratio: 1.88; }
  .studio-cards, .game-play-grid { grid-template-columns: minmax(0,1fr); }
  .studio-card-visual img { aspect-ratio: 1.9; }
  .game-page .gallery-three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .game-page .footer-inner { flex-wrap: wrap; }
  .game-page .hero-inner { padding-block: 1.75rem; }
}
@media (max-width: 360px) {
  .studio-nav { gap: .55rem; }
  .studio-nav a { font-size: .79rem; }
  .studio-feature .button { padding-inline: .78rem; }
}
