/* the game's own pixel font everywhere */
@font-face { font-family: Galmuri11; src: url(fonts/Galmuri11.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Galmuri11; src: url(fonts/Galmuri11-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
body, button, .logo, .menu-btn, .nav a, .hint, .copy, .card, .below { font-family: Galmuri11, 'Malgun Gothic', sans-serif; letter-spacing: 0; }
.copy h1, .card h2, .p-sec h2, .logo, .menu-btn, .nav a, .feats b { font-weight: 700; letter-spacing: 0; }
.c-text h2 { font-size: 22px !important; font-weight: 700 !important; }
.p-sec h2 { font-size: 28px !important; font-weight: 700 !important; }
.copy h1 { font-size: 24px; }
.below p, .card p { line-height: 1.7; }
/* pixel town additions */
.sign { display: none; }
.copy { transition: opacity .4s; }
.copy.gone { opacity: 0; }
/* the card from the 3D town: round lettering, ink border, hard shadow, sticker label */
.card { --toon: Galmuri11, sans-serif; --mint: #9fe0d6; --pink: #ff9db0;
  position: absolute; z-index: 8; left: 12px; right: 12px; bottom: 14px; padding: 18px 18px 16px;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 3px 4px 0 var(--ink);
  animation: cardpop .34s cubic-bezier(.3, 1.7, .5, 1) both; }
.card[hidden] { display: none; }
@keyframes cardpop { from { scale: .6; opacity: 0; translate: 0 30px; } }
#cardBody { display: flex; gap: 14px; align-items: flex-start; width: 100%; }
.c-logo { width: 74px; height: auto; flex: none; margin-top: 4px; image-rendering: pixelated; }
.c-text { min-width: 0; padding-right: 30px; }
.c-text h2 { margin: 4px 0 6px; font-family: var(--toon); font-weight: 400; font-size: 26px; line-height: 1.2; }
.c-text p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.c-kicker { display: inline-block; font-family: var(--toon); font-size: 14px !important; background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 99px; padding: 0 10px; rotate: -3deg; }
.c-soft { opacity: .7; font-size: 13px !important; margin-top: 6px !important; }
.c-chips { display: flex; gap: 6px; margin-top: 9px !important; }
.c-chips span { padding: 2px 10px; border-radius: 99px; border: 2.5px solid var(--ink); background: var(--mint); font-family: var(--toon); font-size: 14px; }
.c-chips span:nth-child(2) { background: var(--yellow); rotate: 3deg; }
.c-chips span:nth-child(3) { background: var(--pink); }
.c-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 16px; font-family: var(--toon); font-size: 16px; text-decoration: none;
  color: var(--ink); background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--ink); }
.c-go::after { content: ""; width: 6px; height: 6px; border-right: 2.5px solid; border-top: 2.5px solid; transform: rotate(45deg); }
.c-mail { display: block; margin-top: 10px; padding: 10px 12px; font-family: var(--toon); font-size: 15px; text-align: center; text-decoration: none; overflow-wrap: anywhere;
  color: var(--ink); background: var(--mint); border: 2.5px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--ink); }
.card-x { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--coral); box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.card-x::before, .card-x::after { content: ""; position: absolute; left: 7px; right: 7px; top: 12.5px; height: 3px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.card-x::after { transform: rotate(-45deg); }
@media (min-width: 900px) { .card { left: auto; right: 28px; bottom: 28px; width: 400px; } }
/* the intro sits on a plate so it reads over buildings */
.copy { left: 12px; right: 12px; top: calc(var(--bar-h) + 24px); padding: 12px 14px 14px; background: rgba(255, 241, 208, .93); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 rgba(23, 35, 60, .3); }
.hero.night .copy, .hero.dusk .copy { color: var(--navy); text-shadow: none; }
.hero.night .copy .kicker, .hero.dusk .copy .kicker, .copy .kicker { background: var(--navy); color: var(--yellow); }
.copy h1 { font-size: 28px; }
.copy .line { font-size: 15px; max-width: none; }
@media (min-width: 900px) { .copy { right: auto; max-width: 400px; } .copy h1 { font-size: 40px; } }

/* the page under the town, as in the 3D town version */
.below { --toon: Galmuri11, sans-serif; --mint: #9fe0d6; --pink: #ff9db0; color: var(--ink);
  background-color: var(--cream); background-image: radial-gradient(rgba(46, 33, 29, .09) 1.6px, transparent 1.8px); background-size: 14px 14px; }
.below img { display: block; max-width: 100%; height: auto; }
.below p { margin: 0; line-height: 1.65; }
.below .wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.p-sec { padding: 56px 0 48px; border-top: 3px dashed var(--ink); scroll-margin-top: 70px; }
.p-game { text-align: center; padding-top: 48px; border-top: 3px solid var(--ink); }
.p-game .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 99px; background: var(--coral); color: #fff; font-family: var(--toon); font-size: 15px;
  border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); rotate: -3deg; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.p-logo { width: 220px; image-rendering: pixelated; }
.lead { font-size: 18px; font-weight: 600; max-width: 30em; }
.p-store { width: 100%; max-width: 720px; image-rendering: pixelated; }
.feats { display: grid; gap: 14px; width: 100%; text-align: left; }
.feats figure { margin: 0; overflow: hidden; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 3px 4px 0 var(--ink); background: var(--yellow); }
.feats figure:nth-child(1) { rotate: -1.5deg; }
.feats figure:nth-child(2) { background: var(--mint); rotate: 1deg; }
.feats figure:nth-child(3) { background: var(--pink); rotate: -1deg; }
.feats img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--ink); }
.feats figcaption { padding: 10px 14px 12px; font-size: 14.5px; }
.feats b { display: block; font-family: var(--toon); font-weight: 400; font-size: 20px; }
.soft { opacity: .75; }
.p-sec h2 { display: inline-block; margin: 0 0 12px; padding: 0 10px; font-family: var(--toon); font-weight: 400; font-size: 34px; line-height: 1.2;
  background: linear-gradient(transparent 55%, var(--yellow) 55%); rotate: -1.5deg; }
.p-support h2 { background: linear-gradient(transparent 55%, var(--pink) 55%); }
.p-sec p + p { margin-top: 8px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 16px; font-family: var(--toon); text-decoration: none;
  color: var(--ink); background: #fff; border: 2.5px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--ink); }
.more::after { content: ""; width: 7px; height: 7px; border-right: 2.5px solid; border-top: 2.5px solid; transform: rotate(45deg); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 16px; padding: 0 20px; font-family: var(--toon); font-size: 17px; text-decoration: none; overflow-wrap: anywhere;
  color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); border-radius: 99px; box-shadow: 3px 4px 0 var(--ink); }
.p-support .wrap, .p-studio .wrap { display: flex; flex-direction: column; align-items: flex-start; }
.foot2 { padding: 28px 0 40px; background: var(--ink); color: var(--cream); font-size: 14px; }
.foot2 .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.back3d { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-family: var(--toon); text-decoration: none; }
@media (min-width: 760px) { .feats { grid-template-columns: repeat(3, 1fr); } }

/* yellow buttons share the white button's exact shape, so the label sits at the same height in all of them */
.c-go, .btn, .back3d, .more, .c-mail { display: inline-flex; align-items: center; justify-content: center; min-height: 0; padding: 5px 16px; font-size: 16px; line-height: 1.3;
  border: 2.5px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--ink); }
.c-mail { display: flex; margin-top: 12px; font-size: 15px; }
.c-go, .more, .btn { margin-top: 14px; }
.back3d { box-shadow: none; border-color: var(--yellow); }
/* the menu button had a yellow lower edge that made its label look too high: one flat face, centred in the bar */
.menu-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; line-height: 1; border: 0; border-radius: 8px; box-shadow: none; }
.menu-btn:active { transform: none; box-shadow: none; opacity: .85; }
.c-mail { font-size: 13.5px; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.c-text { flex: 1; }
