/* WY.GONE — static production stylesheet. Every rule here is copied
   verbatim (values unchanged) from the approved Next.js CSS Modules
   under app/visual-physics-lab/wygone/living-masterpiece/ — this file
   exists so the static/PHP target renders IDENTICALLY, not as a
   redesign. See deployment/plesk-shared/README.md for the exact source
   file each block below was copied from. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; }

/* ---- LivingMasterpiece.module.css ---- */
.page {
  --canvas: #fffefa;
  --canvas-soft: #faf8f3;
  --line: #e9e5dd;
  --text: #151412;
  --muted: #7d7870;
  --accent: #a9784f;
  --trace: #4b4741;

  --header-height: 88px;
  --status-height: 82px;
  --pad-inline: 40px;

  width: 100%;
  background: var(--canvas);
  color: var(--text);
}

@media (min-width: 1025px) {
  .page {
    height: 100svh;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(520px, 1.8fr) minmax(260px, 0.8fr);
    grid-template-rows: var(--header-height) 1fr var(--status-height);
    --pad-inline: 56px;
  }
}

@media (min-width: 1600px) {
  .page { --pad-inline: 72px; }
}

@media (max-width: 1024px) {
  .page { min-height: 100svh; display: flex; flex-direction: column; }
}

.headerRow { grid-column: 1 / -1; grid-row: 1; }

.leftZone {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  padding: 24px var(--pad-inline);
  overflow: hidden;
}

.centerZone {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
}

.rightZone {
  grid-column: 3;
  grid-row: 2;
  padding: 32px var(--pad-inline);
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.statusRow { grid-column: 1 / -1; grid-row: 3; }

@media (max-width: 1024px) {
  .leftZone, .centerZone, .rightZone, .statusRow {
    grid-column: unset; grid-row: unset; border: none;
  }
  .centerZone { order: 1; min-height: 42svh; }
  .leftZone { order: 2; min-height: 38svh; padding: 16px var(--pad-inline); }
  .rightZone { order: 3; }
  .statusRow { order: 4; }
}

/* ---- PageHeader.module.css ---- */
.header {
  height: var(--header-height);
  width: 100%;
  padding-inline: var(--pad-inline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 22, 20, 0.05);
}
.wordmark { font-family: Georgia, serif; font-size: 22px; letter-spacing: 0.22em; color: var(--text); margin: 0; font-weight: normal; display: inline; }
.menu { color: var(--muted); }
.menuText { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.menuIcon { display: none; font-size: 19px; line-height: 1; }
@media (max-width: 900px) { .wordmark { font-size: 19px; } }
@media (max-width: 600px) { .menuText { display: none; } .menuIcon { display: inline-block; } }

/* ---- StagedSequence.module.css ---- */
.stageLayer {
  position: absolute;
  top: 56%;
  left: var(--pad-inline, 40px);
  right: var(--pad-inline, 40px);
  transform: translateY(-50%);
  max-width: 520px;
  text-align: left;
  pointer-events: none;
  animation: stageEnter 950ms ease both;
}
.big {
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1.06;
  color: var(--text);
}
.secondary {
  margin-top: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.5;
  color: var(--muted);
}
@keyframes stageEnter {
  from { opacity: 0; transform: translateY(calc(-50% + 14px)); }
  to { opacity: 1; transform: translateY(-50%); }
}
.skip {
  position: absolute;
  right: var(--pad-inline, 40px);
  bottom: 8px;
  min-height: 44px;
  padding: 8px 4px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.7;
}
.skip:hover, .skip:focus-visible { opacity: 1; }
.skip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .stageLayer { animation: none; } }
@media (max-width: 1024px) {
  .stageLayer { top: 50%; text-align: center; }
  .big { font-size: clamp(26px, 6.5vw, 38px); }
  .secondary { font-size: clamp(14px, 3.6vw, 16px); }
  .skip { position: fixed; right: 20px; bottom: 16px; }
}

/* ---- InitialTraceMark.module.css ---- */
.canvas {
  position: absolute;
  top: 42%;
  left: 48%;
  transform: translate(-50%, -50%);
  width: clamp(220px, 12vw, 320px);
  aspect-ratio: 1 / 1;
  opacity: 0.22;
  transition: opacity 1.1s ease;
}
.canvas[data-revealed='true'] { opacity: 1; }
.svg { width: 100%; height: 100%; overflow: visible; }
@media (prefers-reduced-motion: reduce) { .canvas { transition: none; } }
@media (max-width: 1024px) {
  .canvas { top: 26%; left: 50%; width: clamp(140px, 28vw, 210px); }
}
.traceGroup { transform-box: view-box; transform-origin: 200px 205px; transition: transform 1.6s ease; }

/* ---- RightInfoZone.module.css ---- */
.wrap { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 36px; overflow-y: auto; }
.title { margin: 0 0 20px; font-size: 14px; letter-spacing: 0.12em; color: var(--accent); }
.dominant { margin-bottom: 24px; }
.dominantValue { font-family: Georgia, serif; font-size: clamp(40px, 3.6vw, 52px); line-height: 1.1; color: var(--text); }
.dominantLabel { margin-top: 6px; font-size: 14px; letter-spacing: 0.03em; color: var(--muted); }
.supportingRow { display: flex; flex-direction: column; gap: 14px; }
.supportingStat { display: flex; align-items: baseline; gap: 12px; }
.supportingValue { font-family: Georgia, serif; font-size: 22px; color: var(--text); white-space: nowrap; }
.supportingLabel { font-size: 14px; line-height: 1.4; color: var(--muted); }
.livingLine { margin: 0; padding-top: 28px; border-top: 1px solid var(--line); font-style: italic; font-size: 15px; line-height: 1.55; color: var(--text); opacity: 0.85; }
.yourWy { padding-top: 28px; border-top: 1px solid var(--line); }
.statusList { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.statusLine { font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1024px) {
  .wrap { height: auto; gap: 28px; }
  .dominant, .title { text-align: center; }
  .supportingStat { justify-content: center; }
}

/* ---- BottomStatusBar.module.css ---- */
.bar { height: 100%; padding-inline: var(--pad-inline); display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); }
.patience { flex: 1 1 0; font-size: 14px; letter-spacing: 0.03em; color: var(--text); opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tagline { flex: 1 1 0; text-align: center; font-size: 14px; letter-spacing: 0.03em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1024px) {
  .bar { height: auto; flex-direction: column; gap: 14px; padding-block: 24px; }
  .patience, .tagline { white-space: normal; text-align: center; }
}

/* ---- SaveMyWyModal.module.css ---- */
.trigger { flex: 0 0 auto; min-height: 46px; padding-inline: 24px; background: transparent; border: 1px solid var(--text); color: var(--text); font-size: 14px; letter-spacing: 0.1em; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.trigger:hover, .trigger:focus-visible { background: var(--text); color: var(--canvas); }
.trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(21, 20, 18, 0.32); }
.panel { width: min(100%, 440px); padding: 40px; background: var(--canvas); border: 1px solid var(--line); text-align: center; }
.modalTitle { margin: 0 0 20px; font-family: Georgia, serif; font-weight: 600; font-size: 22px; letter-spacing: 0.02em; color: var(--text); }
.explanation { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.label { display: block; margin: 24px 0 8px; text-align: left; font-size: 14px; letter-spacing: 0.04em; color: var(--text); }
.input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); background: var(--canvas-soft); color: var(--text); font-size: 16px; }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.error { margin: 14px 0 0; font-size: 14px; color: #a3372f; text-align: left; }
.actions { margin-top: 24px; display: flex; justify-content: center; gap: 12px; }
.cancelButton { flex: 1 1 0; min-height: 46px; background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 14px; letter-spacing: 0.08em; cursor: pointer; }
.submitButton { flex: 1 1 0; min-height: 46px; background: var(--text); border: 1px solid var(--text); color: var(--canvas); font-size: 14px; letter-spacing: 0.08em; cursor: pointer; transition: opacity 0.2s ease; }
.submitButton:disabled, .cancelButton:disabled { opacity: 0.6; cursor: default; }
.privacyNote { margin: 20px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); opacity: 0.85; }
@media (max-width: 1024px) { .trigger { width: min(100%, 320px); } }
@media (max-width: 600px) { .panel { padding: 28px 22px; } }

.hidden { display: none !important; }
