/* Illustrated middle section. Content and controls remain native HTML. */
.paper-world { margin-top: -32px; background: none; isolation: isolate; z-index: 1; }
.paper-world::before { content: ''; position: absolute; inset: 32px 0; z-index: -1; background: #242b22 url('assets/workbench-grain.svg'); }
.field-map {
  position: relative; z-index: 1;
  width: 100%; margin: 0;
  padding: 30px 0 26px;
  background: #f2dfb8 url('assets/field-map.webp') center / 100% 100% no-repeat;
  filter: drop-shadow(0 5px 8px #100e0a66);
  /* Keep the artwork's torn silhouette; its black outer rim becomes transparent.
     The solid inset mask preserves every detail inside the paper. */
  mask-image: url('assets/field-map.webp'),
    linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent),
    linear-gradient(180deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  mask-mode: luminance, alpha, alpha;
  mask-size: 100% 100%;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-composite: add, intersect;
}
.field-map .wrap { width: min(1250px, calc(100% - 84px)); }
.paper-world .intro { margin: 0; padding: 14px 0 28px; background: none; filter: none; clip-path: none; }
.paper-world .intro::after, .paper-world .map-lines { display: none; }
.paper-world .intro-inner { gap: 34px; padding-right: 150px; }
.paper-world .mobile-compass { display: none; }
.paper-world .intro-copy { flex: 1; max-width: 920px; padding: 0; }
.paper-world .intro h2 { font-size: clamp(30px,3.1vw,43px); margin-bottom: 20px; }
.paper-world .intro p { font-size: 19px; line-height: 1.4; }
.paper-world .field-note { width: 185px; height: 200px; border: 0; background: none; box-shadow: none; transform: rotate(-10deg); }
.paper-world .field-note img { width: 100%; height: 100%; object-fit: cover; filter: drop-shadow(3px 6px 4px #4c341a66); }
.paper-world .field-note span { bottom: 12px; font: 20px var(--hand); color: #473923; }
.paper-world .features { padding: 26px 0 18px; border-top: 1px solid #ac875646; }
.paper-world .features > .section-title { font-size: clamp(29px,3.3vw,44px); color: #24271d; }
.paper-world .features-layout { grid-template-columns: 1fr 1.05fr; gap: 36px; margin-top: 32px; align-items: center; }
.paper-world .feature-list { display: grid; gap: 13px; }
.paper-world .field-benefit { display: grid; grid-template-columns: 115px minmax(0,1fr); gap: 20px; align-items: center; margin: 0; }
.paper-world .field-benefit > div { padding-bottom: 12px; }
.paper-world .field-benefit .feature-icon { width: 112px; height: 108px; object-fit: contain; filter: drop-shadow(1px 3px 2px #79582c35); }
.paper-world .field-benefit .paw { width: 84px; height: 84px; margin: auto; padding: 10px; border: 3px dashed #805024; border-radius: 50%; opacity: .85; filter: sepia(.8); transform: rotate(-13deg); }
.paper-world .field-benefit h3 { font-size: 23px; line-height: 1.12; margin-bottom: 5px; }
.paper-world .field-benefit p { font-size: 17px; line-height: 1.25; }
.paper-world .gallery { transform: none; position: relative; }
.paper-world .mount-label { display: none; }
.paper-world .gallery-tabs { margin-inline: 8px; }
.paper-world .gallery-tabs button { min-height: 42px; }
.paper-world .screenshot-button { box-shadow: 0 12px 19px #46321655; }
.paper-world .gallery figcaption { font-size: 15px; line-height: 1.4; margin-top: 15px; }
.paper-world .screenshot-note { font-size: 12px; }
.paper-world .campfire-note { position: relative; display: flex; align-items: center; gap: 24px; margin: 20px auto 0; padding: 22px 26px 18px; border: 1px solid #b5955c70; border-radius: 0; background: #fff2d496 url('assets/note-paper.svg'); box-shadow: 1px 3px 5px #66472529; transform: rotate(-.6deg); }
.paper-world .campfire-art { flex: 0 0 135px; width: 135px; height: 135px; object-fit: contain; }
.paper-world .campfire-note h2 { font-size: clamp(29px,2.9vw,39px); }
.paper-world .campfire-note p { font-size: 17px; line-height: 1.4; }
/* The study page reuses the exact middle-section markup from index.html. */
.middle-study { padding: 22px 0; background: #242b22 url('assets/workbench-grain.svg'); }
.middle-study .field-map { margin-top: 0; }
.middle-study .paper-world { margin-top: 0; }
/* Keep the complete forge scene visible beside an extended countryside, at the existing height. */
.forge-scene {
  --scene-height: max(260px, 21.425vw);
  --homestead-width: min(100%, calc((var(--scene-height) - 24px) * 1.5));
  width: 100%; height: var(--scene-height); min-height: var(--scene-height);
  display: grid; align-items: end; overflow: hidden;
  margin-top: -32px; background: #142019;
}
.forge-artwork { position: absolute; inset: 24px 0 0; }
.forge-artwork img { position: absolute; top: 0; height: 100%; }
.forge-infected {
  left: 0; width: calc(100% - var(--homestead-width) + 100px);
  max-width: none; object-fit: cover; object-position: left center;
}
.forge-homestead {
  right: 0; width: var(--homestead-width); object-fit: contain; object-position: right top;
  mask-image: linear-gradient(90deg, transparent, #000 70px);
}
.forge-scene::after { content: none; }
.forge-scene-content {
  position: relative; z-index: 1; min-width: 0; padding-top: 70px;
  background: linear-gradient(transparent, #101a17bf 48%, #101a17ed);
}
.forge-scene .scene-footer {
  width: min(1230px, calc(100% - 70px)); margin: 0 auto;
  background: none; padding: 14px 0 16px; color: #e3d4b5;
}
.scene-footer .footer-legal { margin: 0; padding: 0; border: 0; line-height: 1.5; }
.scene-footer .footer-legal a { font-size: 10px; letter-spacing: 1px; text-underline-offset: 4px; }
.scene-footer .footer-legal a:hover { color: #ffc65d; }
.scene-footer .footer-legal a:focus-visible { outline-color: #ffc65d; }
.scene-footer .dayz-note { margin: 8px 0 0; color: #e3d4b5; }

@media (max-width: 1100px) {
  .field-map .wrap { width: calc(100% - 56px); }
  .paper-world .intro-inner { gap: 24px; padding-right: 75px; }
  .paper-world .field-note { width: 145px; height: 165px; }
  .paper-world .intro p { font-size: 17px; }
  .paper-world .features-layout { gap: 22px; grid-template-columns: 1fr 1fr; }
  .paper-world .field-benefit { grid-template-columns: 85px minmax(0,1fr); gap: 15px; }
  .paper-world .field-benefit .feature-icon { width: 85px; height: 90px; }
  .paper-world .field-benefit h3 { font-size: 21px; }
  .paper-world .field-benefit p { font-size: 16px; }
}
@media (max-width: 780px) {
  .field-map { padding-block: 28px; background-size: auto 100%; mask-size: auto 100%, 100% 100%, 100% 100%; }
  .field-map .wrap { width: calc(100% - 38px); }
  .paper-world .intro-inner { display: block; padding: 0; }
  .paper-world .field-note { display: block; width: 125px; height: 140px; margin: 0 0 22px 18px; }
  .paper-world .mobile-compass { display: block; top: 20px; right: 25px; width: 90px; opacity: .7; z-index: 0; }
  .paper-world .field-note span { font-size: 16px; }
  .paper-world .intro-copy { padding: 8px; background: #fff1d170; }
  .paper-world .intro h2 { font-size: 32px; }
  .paper-world .intro p { font-size: 17px; line-height: 1.45; }
  .paper-world .features { padding-top: 25px; }
  .paper-world .features > .section-title { font-size: 31px; }
  .paper-world .features-layout { grid-template-columns: 1fr; gap: 28px; margin-top: 27px; }
  .paper-world .feature-list { gap: 15px; }
  .paper-world .field-benefit { grid-template-columns: 85px minmax(0,1fr); gap: 15px; }
  .paper-world .field-benefit h3 { font-size: 22px; }
  .paper-world .field-benefit p { font-size: 17px; line-height: 1.35; }
  .paper-world .gallery { max-width: 620px; width: 100%; }
  .paper-world .gallery-tabs { margin-inline: 0; gap: 3px; }
  .paper-world .gallery-tabs button { flex: 1; min-width: 0; padding: 11px 8px; }
  .paper-world .campfire-note { display: block; text-align: center; margin-top: 20px; padding: 22px 18px; transform: none; }
  .paper-world .campfire-art { width: 110px; height: 110px; margin: -5px auto 10px; }
  .paper-world .campfire-note h2 { font-size: 31px; }
  .paper-world .campfire-note p { font-size: 17px; }
  .forge-scene .scene-footer { width: calc(100% - 36px); }
  .scene-footer .footer-legal { gap: 8px; }
}
@media (max-width: 390px) {
  .field-map .wrap { width: calc(100% - 30px); }
  .paper-world .field-benefit { grid-template-columns: 64px minmax(0,1fr); gap: 11px; }
  .paper-world .field-benefit .feature-icon { width: 64px; height: 78px; margin: 0; }
  .paper-world .field-benefit h3 { font-size: 20px; }
  .paper-world .field-benefit p { font-size: 16px; }
}
