/* =============================================================================
   GERGASI - POWER CONGAK STORY PAGE  (powercongak.gergasi.school)
   /css/pc-story.css - content/power-congak/layout.html (services/pcStory.js)
   =============================================================================
   The game's own look: pixel forest, cream panels with a heavy ink outline
   and offset shadow, wood-brown bars, Press Start 2P for headings only
   (body text stays Inter so long paragraphs read easily).
   ============================================================================= */

:root {
    --ink: #1d1a14;
    --cream: #fdf6e3;
    --paper: #fffaf0;
    --wood: #6b3f1f;
    --wood-dark: #4a2a12;
    --yellow: #f5c542;
    --blue: #3db4f2;
    --red: #e04848;
    --gold: #e0a92a;
    --green: #4caf50;
    --forest: #16302b;
    --muted: #5d5546;
    --pixel: 'Press Start 2P', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font: 17px/1.7 Inter, system-ui, sans-serif;
    color: var(--ink);
    background: var(--forest);
}
/* The forest stays put behind the page. A fixed layer, not
   background-attachment: fixed, which phones ignore (the image was then
   stretched over the whole page height and showed as a brown blur). */
body::before {
    content: ''; position: fixed; inset: 0; z-index: -1;
    background: url('/assets/images/power-congak/background.jpg') center bottom / cover no-repeat;
}
img { max-width: 100%; display: block; }
a { color: #1f6fb2; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; } }

/* ---------- top bar ---------- */
.ps-top {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px;
    background: var(--wood); border-bottom: 4px solid var(--ink);
}
.ps-brand { font: 800 20px Inter, sans-serif; color: var(--cream); text-decoration: none; letter-spacing: -.5px; }
.ps-brand span { color: #4ade80; }
.ps-langs { display: flex; gap: 6px; }
.ps-langs a {
    font: 10px var(--pixel); color: var(--cream); text-decoration: none;
    padding: 8px 10px; border: 2px solid var(--ink); background: var(--wood-dark);
}
.ps-langs a.active { background: var(--yellow); color: var(--ink); }

/* ---------- shared blocks ---------- */
.ps-wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.ps-panel {
    background: var(--cream);
    border: 4px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    padding: 28px 24px;
    margin: 0 0 36px;
}
.ps-panel h2 {
    font: 16px/1.6 var(--pixel);
    margin: -28px -24px 22px; padding: 14px 20px;
    background: var(--wood); color: var(--cream); border-bottom: 4px solid var(--ink);
}
.ps-panel h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.ps-panel p { margin: 0 0 14px; }
.ps-kicker { font: 11px var(--pixel); color: var(--wood); margin: 0 0 10px; }

.ps-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 22px;
    font: 12px/1.4 var(--pixel); text-decoration: none; text-align: center;
    color: var(--ink); background: var(--yellow);
    border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
    transition: transform .08s, box-shadow .08s;
}
.ps-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.ps-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.ps-btn:focus-visible, .ps-langs a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ps-btn.blue { background: var(--blue); }
.ps-btn.green { background: var(--green); color: #fff; }

/* ---------- hero ---------- */
.ps-hero { position: relative; padding: 40px 0 28px; text-align: center; overflow: hidden; }
.ps-logo { width: min(520px, 92%); height: auto; margin: -40px auto -30px; filter: drop-shadow(4px 4px 0 var(--ink)); }
/* POWER CONGAK 2.0 under the old logo (user, 2026-10-11): the arcade
   wordmark (same as index.html .pc-brand: Power yellow, Congak blue, both
   outlined in black), as wide as the logo, in a white box. */
.ps-hero h1 {
    display: inline-block; margin: 6px 0 22px; padding: 18px 22px;
    font: clamp(15px, 4.6vw, 30px)/1.3 var(--pixel); white-space: nowrap; color: var(--ink);
    background: #fff; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.pc-brand .pc-power, .pc-brand .pc-congak, .pc-brand .pc-ver {
    paint-order: stroke fill; -webkit-text-stroke: 2px #000;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}
.pc-brand .pc-power { color: #f0c040; -webkit-text-fill-color: #f0c040; }
.pc-brand .pc-congak { color: #3a7bc8; -webkit-text-fill-color: #3a7bc8; }
.pc-brand .pc-ver { color: #fff; -webkit-text-fill-color: #fff; }
@supports not (-webkit-text-stroke: 2px black) {
    .pc-brand .pc-power, .pc-brand .pc-congak, .pc-brand .pc-ver { text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; }
}
/* Smaller text (buttons): a thinner outline. */
.ps-btn .pc-power, .ps-btn .pc-congak { -webkit-text-stroke-width: 1px; text-shadow: 1px 1px 0 #000; }
/* "GERGASI." on a button: the Gergasi wordmark, not the pixel font. */
.ps-wordmark { font: 800 1.75em/1 Inter, sans-serif; letter-spacing: -.5px; text-transform: none; }
.ps-wordmark span { color: #1f6a41; }
.ps-lead {
    max-width: 640px; margin: 0 auto 24px; padding: 14px 18px;
    font-size: 1.08rem; color: var(--cream);
    background: rgba(18, 28, 24, .82); border: 3px solid var(--ink);
}
.ps-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 18px; }


/* ---------- modes ---------- */
.ps-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.ps-mode { background: var(--paper); border: 3px solid var(--ink); display: flex; flex-direction: column; }
.ps-mode img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--ink); }
.ps-mode div { padding: 14px 16px 16px; }
.ps-mode h3 { margin: 0 0 6px; font: 12px/1.6 var(--pixel); }
.ps-mode p { margin: 0; font-size: .95rem; }
.ps-tag { display: inline-block; margin: 0 4px 8px 0; padding: 2px 8px; font-size: .75rem; font-weight: 700; border: 2px solid var(--ink); background: var(--yellow); }

/* ---------- journey timeline ---------- */
.ps-timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 4px dashed var(--wood); }
.ps-timeline li { position: relative; margin: 0 0 22px; }
.ps-timeline li::before {
    content: ''; position: absolute; left: -38px; top: 6px;
    width: 16px; height: 16px; background: var(--yellow); border: 3px solid var(--ink);
}
.ps-timeline .when { display: block; font: 10px/1.6 var(--pixel); color: var(--wood); margin-bottom: 4px; }
.ps-note { background: var(--paper); border: 3px dashed var(--wood); padding: 16px 18px; margin-top: 8px; font-style: italic; }
.ps-note p:last-child { margin-bottom: 0; }

/* ---------- claim steps ---------- */
.ps-steps { counter-reset: s; list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.ps-steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 60px; background: var(--paper); border: 3px solid var(--ink); }
.ps-steps li::before {
    content: counter(s); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; display: grid; place-items: center;
    font: 12px var(--pixel); background: var(--blue); border: 3px solid var(--ink);
}
.ps-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ps-pill { padding: 4px 12px; font-weight: 800; font-size: .9rem; border: 2px solid var(--ink); color: #fff; }
.ps-pill.blue { background: #1d7fc0; } .ps-pill.red { background: var(--red); } .ps-pill.gold { background: var(--gold); color: var(--ink); } .ps-pill.star { background: #2e9e4f; }

/* ---------- FAQ ---------- */
.ps-faq details { background: var(--paper); border: 3px solid var(--ink); margin: 0 0 10px; padding: 0 16px; }
.ps-faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; }
.ps-faq details[open] summary { border-bottom: 2px solid var(--ink); margin-bottom: 10px; }

.ps-final { text-align: center; }
.ps-final .ps-cta { margin: 18px 0 0; }

/* ---------- footer ---------- */
.ps-foot { text-align: center; color: var(--cream); background: var(--wood-dark); border-top: 4px solid var(--ink); padding: 18px 16px 28px; font-size: .9rem; }
.ps-foot a { color: var(--yellow); }
.ps-foot p { margin: 4px 0; }

@media (max-width: 600px) {
    body { font-size: 16px; }
    .ps-logo { margin: -24px auto -18px; }
    .ps-hero { padding-top: 24px; }
    .ps-hero h1 { padding: 14px 12px; }
    .ps-panel { padding: 22px 16px; box-shadow: 4px 4px 0 var(--ink); }
    .ps-panel h2 { margin: -22px -16px 18px; padding: 12px 14px; font-size: 12px; }
    .ps-btn { width: 100%; }
}

/* Every Press Start 2P label is uppercase (user, 2026-10-11). */
.ps-langs a, .ps-panel h2, .ps-kicker, .ps-btn, .ps-hero h1, .ps-mode h3,
.ps-timeline .when, .ps-steps li::before { text-transform: uppercase; }

/* ---------- hero: the old logo, an arrow, then 2.0 ---------- */
.ps-arrow {
    width: 36px; height: 44px; margin: 0 auto 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 11' shape-rendering='crispEdges'%3E%3Cpath d='M3 0h3v6h3v1H8v1H7v1H6v1H5v1H4v-1H3V9H2V8H1V7H0V6h3z' fill='%231d1a14'/%3E%3Cpath d='M4 1h1v6h2v1H6v1H5v1H4V9H3V8H2V7h2z' fill='%23f5c542'/%3E%3C/svg%3E") center / contain no-repeat;
    image-rendering: pixelated;
    animation: ps-bounce 1.2s ease-in-out infinite;
}
@keyframes ps-bounce { 50% { transform: translateY(6px); } }

/* ---------- story chapters ---------- */
.ps-chapter > p:not(.ps-kicker) { font-size: 1.05rem; }
.ps-gallery { margin: 22px 0 0; }
.ps-phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ps-phones img, .ps-shot img {
    width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 18px; background: #000;
    box-shadow: 4px 4px 0 var(--ink);
}
.ps-gallery figcaption, .ps-shot figcaption, .ps-video-wrap figcaption {
    margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; font-style: italic;
}
.ps-split { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: start; }
.ps-shot { margin: 0; }

.ps-video-wrap { margin: 22px 0 6px; }
.ps-video { position: relative; aspect-ratio: 16 / 9; background: #000; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.ps-video button { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.ps-video button img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.ps-video button:hover img { opacity: 1; }
.ps-video button:focus-visible { outline: 4px solid var(--yellow); outline-offset: -4px; }
.ps-play {
    position: absolute; left: 50%; top: 50%; width: 84px; height: 60px; margin: -30px 0 0 -42px;
    background: #e02424; border: 4px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
}
.ps-play::after {
    content: ''; position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -7px;
    border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff;
}
.ps-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ps-press { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.ps-press a {
    display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
    background: var(--paper); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
    transition: transform .1s, box-shadow .1s;
}
.ps-press a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.ps-press img { width: 100%; height: 190px; object-fit: cover; object-position: top; border-bottom: 3px solid var(--ink); }
.ps-press span { padding: 8px 10px; font-size: .8rem; font-weight: 600; }

@media (max-width: 720px) {
    .ps-phones { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
    .ps-phones img { scroll-snap-align: center; }
    .ps-split { grid-template-columns: 1fr; }
    .ps-shot { max-width: 260px; margin: 0 auto; }
    .ps-press { grid-template-columns: repeat(2, 1fr); }
    .ps-press img { height: 150px; }
}

/* The last "Play POWER CONGAK 2.0": white, like the title box, so the
   yellow / blue wordmark reads (blue on green didn't). */
.ps-final .ps-btn { background: #fff; color: var(--ink); font-size: 14px; min-height: 60px; }
.ps-final .ps-btn .pc-power, .ps-final .ps-btn .pc-congak { -webkit-text-stroke-width: 1.5px; text-shadow: 2px 2px 0 #000; }

/* Button contents (user, 2026-10-11): each part is its own flex item, all
   centred on one line. The play mark is drawn, not a ▶ glyph (that came
   from a fallback font and sat low). */
.ps-btn { line-height: 1; gap: 10px; }
.ps-btn > span { display: inline-flex; align-items: center; line-height: 1; }
.ps-tri { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.ps-btn .pc-brand { gap: .6em; }
