/* intro under the town + the three intro pages: same cream dotted paper, ink borders, pixel font, white/yellow pills */
.below .wrap { max-width: 960px; }
.sec2 { padding: 52px 0; border-top: 3px dashed var(--ink); scroll-margin-top: 70px; }
.below > .sec2:first-child, .phead + .sec2 { border-top: 0; }
.hl { display: inline-block; margin: 0 0 14px; padding: 0 10px; font-weight: 700; font-size: 26px; line-height: 1.3; background: linear-gradient(transparent 55%, var(--yellow) 55%); }
.hl.mint { background: linear-gradient(transparent 55%, var(--mint) 55%); }
.hl.pink { background: linear-gradient(transparent 55%, var(--pink) 55%); }
.body { max-width: 34em; font-size: 15.5px; line-height: 1.8; }
.body + .body, .pts + .body { margin-top: 12px; }
.soft { opacity: .75; }
.lead { font-size: 17px; line-height: 1.75; max-width: 28em; }

/* intro: game */
.intro-game .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.intro-game .p-logo { width: 210px; }
.cards3 { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 14px; width: 100%; text-align: left; }
.cards3 li { overflow: hidden; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 3px 4px 0 var(--ink); background: #fff; }
.cards3 img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--ink); }
.cards3 b { display: block; padding: 10px 14px 2px; font-size: 18px; }
.cards3 span { display: block; padding: 0 14px 14px; font-size: 14px; line-height: 1.65; }
.cards3 .yellow b, .frow.yellow h3, .pts .yellow h3 { color: #b07a00; }
.cards3 .mint b, .frow.mint h3, .pts .mint h3 { color: #0a7f77; }
.cards3 .pink b, .frow.pink h3 { color: #d24d6b; }

/* intro: studio and support, picture beside text */
.two { display: grid; gap: 22px; align-items: center; }
.side-art { width: 50%; max-width: 200px; margin: 0 auto; image-rendering: pixelated; }
.two .c-go { margin-right: 8px; }

/* page head */
.phead { padding: 44px 0 34px; border-bottom: 3px solid var(--ink); background: linear-gradient(#a9dcf1, #d9f1f8 70%, var(--cream)); }
.ph-in { display: grid; gap: 20px; align-items: end; }
.phead h1 { margin: 10px 0 10px; font-size: 30px; line-height: 1.25; }
.ph-logo { width: 230px; height: auto; image-rendering: pixelated; }
.ph-art { width: 100%; max-width: 360px; justify-self: center; }
.ph-art.pix { image-rendering: pixelated; }
.phead .chip { margin-bottom: 4px; }

/* game page */
.frows { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.frow { display: grid; gap: 14px; align-items: center; }
.shotcard { overflow: hidden; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 3px 4px 0 var(--ink); background: #fff; }
.shotcard img { display: block; width: 100%; height: auto; }
.ftext h3 { margin: 0 0 6px; font-size: 21px; }
.ftext p { font-size: 15px; line-height: 1.8; }
.facts2 { margin: 0; padding: 6px 18px; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 3px 4px 0 var(--ink); background: #fff; }
.facts2 div { display: grid; grid-template-columns: 4.5em 1fr; gap: 10px; padding: 12px 0; }
.facts2 div + div { border-top: 2px dashed rgba(46, 33, 29, .25); }
.facts2 dt { font-weight: 700; }
.facts2 dd { margin: 0; line-height: 1.7; }

/* studio page */
.pts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.pts li { padding: 14px 16px; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 3px 4px 0 var(--ink); background: #fff; }
.pts h3 { margin: 0 0 4px; font-size: 18px; }
.pts p { font-size: 14.5px; line-height: 1.7; }
.dl { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.dl a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; text-decoration: none; color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 0 3px 0 var(--ink); }
.dl a:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.ftype { padding: 1px 8px; border-radius: 99px; background: var(--yellow); border: 2px solid var(--ink); font-size: 12px; }

/* support page */
.faq2 { display: grid; gap: 10px; }
.faq2 details { border: 3px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 3px 4px 0 var(--ink); }
.faq2 summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; line-height: 1.5; }
.faq2 summary::-webkit-details-marker { display: none; }
.faq2 summary::after { content: '+'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); border: 2px solid var(--ink); font-size: 15px; line-height: 1; }
.faq2 details[open] summary::after { content: '−'; background: var(--mint); }
.faq2 details p { padding: 0 16px 16px; line-height: 1.8; font-size: 14.5px; }

/* mail box */
.ask { padding: 22px 20px; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 3px 4px 0 var(--ink); background: var(--yellow); }
.ask h2 { margin: 0 0 8px; font-size: 22px; }
.ask p { line-height: 1.75; max-width: 32em; }
.ask .c-go { background: #fff; margin-top: 16px; font-size: 14.5px; }

/* footer */
.foot3 { padding: 30px 0 40px; background: var(--ink); color: var(--cream); font-size: 14px; }
.foot3 .wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; display: grid; gap: 14px; }
.f-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.f-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.f-links a, .f-mail { color: var(--cream); text-decoration: none; opacity: .9; }
.f-links a:hover, .f-mail:hover { text-decoration: underline; }
.f-copy { margin: 0; opacity: .6; font-size: 13px; }
.nav a[aria-current="page"] { background: var(--yellow); }
body.sub { background-color: var(--cream); }
body.sub .below { padding-top: calc(var(--bar-h) + 20px); }
body.sub .phead { margin-top: calc(-1 * (var(--bar-h) + 20px)); padding-top: calc(var(--bar-h) + 52px); }

@media (min-width: 760px) {
  .cards3 { grid-template-columns: repeat(3, 1fr); }
  .two { grid-template-columns: 260px 1fr; gap: 36px; }
  .two.flip { grid-template-columns: 1fr 260px; }
  .two.flip .side-art { order: 2; }
  .side-art { width: 100%; }
  .ph-in { grid-template-columns: 1fr 1fr; }
  .phead h1 { font-size: 40px; }
  .frow { grid-template-columns: 1.2fr 1fr; gap: 28px; }
  .frow:nth-child(even) .shotcard { order: 2; }
  .pts { grid-template-columns: 1fr 1fr; }
  .dl { grid-template-columns: 1fr 1fr; }
  .foot3 .wrap { grid-template-columns: auto 1fr auto; align-items: center; }
  .f-copy { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  .phead { padding-bottom: 24px; }
  .ph-art { max-width: 220px; }
  .ph-art[src*="store-cutout"] { max-width: 100%; }
  .ph-logo { width: 190px; }
}
.intro-game .p-store { width: 100%; max-width: 720px; image-rendering: pixelated; }
.ph-in:not(:has(.ph-art)) { grid-template-columns: 1fr; }

/* privacy policy */
.doc2 { max-width: 46em; font-size: 15px; line-height: 1.85; }
.doc2 .meta { opacity: .75; margin-bottom: 14px; }
.doc2 h2 { margin: 34px 0 10px; font-size: 19px; line-height: 1.4; }
.doc2 p + p { margin-top: 10px; }
.doc2 ul { margin: 8px 0; padding-left: 1.3em; }
.doc2 li + li { margin-top: 4px; }
.doc2 .ph { padding: 0 4px; background: var(--yellow); border-radius: 3px; }
.doc2 .draft, .doc2 .todo { margin: 14px 0; padding: 14px 16px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; }
.doc2 .draft { background: #fff7d6; box-shadow: 3px 3px 0 var(--ink); }
.doc2 .tag, .doc2 .na { display: inline-block; margin-right: 6px; padding: 0 8px; border: 2px solid var(--ink); border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--mint); }
.doc2 .table-scroll { overflow-x: auto; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; }
.doc2 table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc2 th, .doc2 td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 2px dashed rgba(46, 33, 29, .2); }
.doc2 th { background: var(--yellow); border-bottom: 2.5px solid var(--ink); }
.doc2 tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .doc2 thead { display: none; }
  .doc2 tr { display: block; padding: 8px 0; border-bottom: 2px dashed rgba(46, 33, 29, .25); }
  .doc2 td { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; padding: 4px 12px; border: 0; }
  .doc2 td::before { content: attr(data-label); font-weight: 700; }
}
/* a blank to fill in later */
.doc2 .blank { display: inline-block; width: 9em; height: 1.1em; vertical-align: -0.2em; border-bottom: 2px dashed rgba(46, 33, 29, .45); }
.doc2 .blank.short { width: 4em; }
.doc2 .blank.long { width: min(16em, 70%); }

/* the release badge as a pixel tag: square, notched corners, flat bevel, no soft shadow */
.chip { gap: 8px; padding: 6px 12px 6px 10px; border: 3px solid var(--ink); border-radius: 0; rotate: 0deg; box-shadow: inset 3px 3px 0 #ff9d8f, inset -3px -3px 0 #c8483a;
  clip-path: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px);
  font-weight: 700; font-size: 14px; letter-spacing: 0; text-shadow: 1px 1px 0 #c8483a; }
.chip::before { width: 6px; height: 6px; border-radius: 0; box-shadow: 1px 1px 0 #c8483a; }

/* top bar: the clock + OPENHOURS wordmark, a pixel image shown at whole-number sizes only */
.wordmark-img { display: block; width: 183px; height: 17px; image-rendering: pixelated; }


/* the town fills the whole screen at any height */
.hero { height: 100vh; height: 100svh; min-height: 520px; max-height: none; }

/* bigger top bar on wide screens; the wordmark doubles (whole-number size, stays sharp) */
@media (min-width: 900px) {
  :root { --bar-h: 72px; }
  .bar { padding: 0 32px; }
  .wordmark-img { width: 366px; height: 34px; }
  .menu-btn { height: 44px; padding: 0 22px; font-size: 19px; border-radius: 10px; }
  .awning { height: 16px; }
  .nav { min-width: 220px; }
  .nav a { padding: 16px 20px; font-size: 18px; }
}

/* short pages still fill the screen: the footer sits at the bottom */
body.sub { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body.sub main.below { flex: 1; }

/* on wide screens the intro plate and page text grow with the bar */
@media (min-width: 900px) {
  .copy { top: calc(var(--bar-h) + 28px); left: 32px; max-width: 520px; padding: 18px 22px 20px; }
  .copy h1 { font-size: 44px; }
  .copy .line { font-size: 18px; }
  .copy .kicker { font-size: 15px; }
  .below .wrap { max-width: 1040px; }
  .body, .lead { font-size: 17px; }
}

/* no awning strip under the top bar */
.awning { display: none; }
/* the mart picture is a scaled capture, keep it smooth */
.intro-game .p-store, .ph-art[src*="store-full"] { image-rendering: auto; }
.ph-art[src*="store-full"] { max-width: 520px; }

/* first visit: the note sits in the middle over a soft dim; 확인 lets you walk */
.welcome { position: absolute; inset: 0; z-index: 9; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(23, 35, 60, .28); transition: opacity .3s; }
.welcome.gone { opacity: 0; pointer-events: none; }
.welcome[hidden] { display: none; }
.welcome .copy, [data-x] .welcome .copy { position: static; inset: auto; top: auto; left: auto; right: auto; width: 100%; max-width: 420px; text-align: center; pointer-events: auto; }
.welcome .copy .line { max-width: none; }
.welcome-ok { margin-top: 16px; padding: 8px 34px; font-size: 17px; cursor: pointer; }
@media (min-width: 900px) { .welcome .copy { max-width: 540px; padding: 26px 30px 24px; } }
.welcome-ok::after { display: none; }
.welcome:not([hidden]):not(.gone) ~ .hint { opacity: 0; }

/* bigger popups on wide screens */
@media (min-width: 900px) {
  .card { width: 560px; right: 36px; bottom: 36px; padding: 26px 28px 24px; border-width: 4px; border-radius: 28px; }
  #cardBody { gap: 20px; }
  .c-logo { width: 120px; }
  .c-text h2 { font-size: 30px !important; }
  .c-text p { font-size: 17px; line-height: 1.7; }
  .c-chips span { font-size: 16px; padding: 3px 14px; }
  .c-go, .c-mail { font-size: 18px; padding: 8px 20px; }
  .card-x { width: 42px; height: 42px; right: 12px; top: 12px; }
  .card-x::before, .card-x::after { left: 9px; right: 9px; top: 16.5px; }
  .welcome .copy { max-width: 640px; padding: 34px 40px 30px; }
  .welcome .copy h1 { font-size: 52px; }
  .welcome .copy .line { font-size: 20px; }
  .welcome-ok { font-size: 20px; padding: 10px 44px; }
}
/* phones: a little more room too */
@media (max-width: 899px) {
  .c-text h2 { font-size: 24px !important; }
  .c-text p { font-size: 15.5px; }
  .welcome .copy h1 { font-size: 32px; }
  .welcome .copy .line { font-size: 16px; }
}

/* company details: dotted blanks wait for the registration numbers */
.blank { display: inline-block; width: 10em; height: 1.1em; vertical-align: -0.2em; border-bottom: 2px dashed rgba(46, 33, 29, .45); }
.blank.long { width: min(18em, 100%); }
.facts2.biz div { grid-template-columns: 9.5em 1fr; }
.facts2.biz a { color: var(--ink); }
@media (max-width: 520px) { .facts2.biz div { grid-template-columns: 1fr; gap: 2px; } }

/* popups grow with the screen (between phone size and a big monitor) */
@media (min-width: 900px) {
  .card { width: clamp(480px, 36vw, 820px); right: clamp(24px, 2.5vw, 56px); bottom: clamp(24px, 2.5vw, 56px);
    padding: clamp(22px, 1.8vw, 40px) clamp(24px, 2vw, 44px); border-radius: clamp(24px, 1.8vw, 36px); }
  #cardBody { gap: clamp(16px, 1.4vw, 30px); }
  .c-logo { width: clamp(100px, 8.5vw, 180px); }
  .c-text h2 { font-size: clamp(26px, 2.1vw, 44px) !important; }
  .c-text p { font-size: clamp(16px, 1.2vw, 24px); }
  .c-kicker, .c-chips span { font-size: clamp(14px, 1.05vw, 21px) !important; }
  .c-go, .c-mail { font-size: clamp(17px, 1.25vw, 26px); padding: .45em 1.2em; }
  .card-x { width: clamp(38px, 2.9vw, 60px); height: clamp(38px, 2.9vw, 60px); }
  .card-x::before, .card-x::after { left: 24%; right: 24%; top: calc(50% - 1.5px); }
  .welcome .copy { max-width: clamp(560px, 44vw, 980px); padding: clamp(28px, 2.4vw, 56px) clamp(32px, 2.8vw, 64px); }
  .welcome .copy h1 { font-size: clamp(44px, 3.6vw, 80px); }
  .welcome .copy .line { font-size: clamp(18px, 1.4vw, 30px); }
  .welcome .copy .kicker { font-size: clamp(15px, 1.1vw, 24px); }
  .welcome-ok { font-size: clamp(18px, 1.4vw, 30px); padding: .45em 2.2em; }
}
