/* ULVENS PAGT - phone-shaped page in the Nordwald Arcade look (same colours and buttons as Shieldwall) */
:root { --orange: #FF5E00; --black: #050505; --chrome: 246px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--orange); color: #000; font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 10px 8px 16px; touch-action: manipulation; }
[hidden] { display: none !important; }
.top { width: min(440px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.top a.back { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; color: #000; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.top a.back:hover { color: #fff; }
.sticker { display: inline-block; padding: 5px 10px; background: #000; color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; border-radius: 6px; transform: rotate(-3deg); box-shadow: 0 0 0 3px #fff; }
.langs { display: inline-flex; gap: 2px; background: #0c0c0c; border: 2px solid #2a2a2a; border-radius: 999px; padding: 3px; }
.langs button { padding: 4px 10px; border-radius: 999px; border: 0; background: none; color: #9a938d; font: inherit; font-weight: 700; letter-spacing: .1em; font-size: 12px; cursor: pointer; }
.langs button.on { background: var(--orange); color: #000; }

/* the phone: as wide as the screen allows, but never so tall that the buttons leave the viewport */
.phone { position: relative; width: min(420px, 100%, calc((100vh - var(--chrome)) * 2 / 3 + 24px)); width: min(420px, 100%, calc((100dvh - var(--chrome)) * 2 / 3 + 24px)); min-width: 280px;
  border-radius: 34px; background: linear-gradient(180deg, #262626 0%, #141414 38%, #070707 100%); border: 3px solid #0b0b0b; padding: 22px 12px 12px;
  box-shadow: 0 0 0 3px rgba(255, 150, 80, .55), 0 22px 46px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -5px 0 rgba(0, 0, 0, .75); }
.notch { position: absolute; top: 9px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 6px; background: #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.screen { position: relative; width: 100%; background: #000; border-radius: 16px; overflow: hidden; border: 3px solid #000; box-shadow: inset 0 0 0 2px #1a1a1a; }
canvas { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; image-rendering: pixelated; image-rendering: crisp-edges; background: #0b1027; touch-action: manipulation; cursor: pointer; }

/* overlays over the canvas */
.ov { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px 14px; color: #fff; background: rgba(0, 0, 0, .84); overflow-y: auto; }
.ov.on { display: flex; }
.ov.sheet { justify-content: flex-end; background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .88) 40%); padding-bottom: 18px; }
.ov.form { justify-content: flex-start; padding-top: 16px; background: rgba(5, 5, 5, .96); }
.ov h1, .ov h2 { font-family: "Press Start 2P", monospace; text-transform: uppercase; color: var(--orange); margin: 0 0 6px; line-height: 1.5; text-shadow: 3px 3px 0 #000; }
.ov h1 { font-size: clamp(15px, 4.6vw, 20px); } .ov h2 { font-size: clamp(11px, 3.4vw, 14px); }
.ov p { margin: 4px 0; font-size: 15px; color: #d8d2cc; font-weight: 600; letter-spacing: .03em; line-height: 1.3; }
.ov .sub { color: #FFB37A; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; margin-top: -2px; }
.ov .muted { color: #8C8580; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.ov .big { font-family: "Press Start 2P", monospace; font-size: 22px; color: #fff; margin: 8px 0; }
.ov .fine { font-size: 12px; color: #9a938d; line-height: 1.35; margin-top: 8px; }
.ov .lbl { font-size: 12px; color: #FFB37A; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; margin: 8px 0 2px; }
.hero { image-rendering: pixelated; height: 64px; width: auto; margin: 6px 0 2px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.btn { display: inline-flex; align-items: center; justify-content: center; margin: 10px 4px 0; padding: 9px 22px 11px; border-radius: 999px; border: 0; cursor: pointer; background: linear-gradient(180deg, #FF9A55 0%, var(--orange) 50%, #D64D00 100%); color: #1B0A00; font-family: "Press Start 2P", monospace; font-size: 11px; text-transform: uppercase; line-height: 1.4; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -5px 0 rgba(0, 0, 0, .3), 0 10px 20px rgba(0, 0, 0, .35), 0 0 0 3px #0b0b0b; transition: transform .12s; }
.btn:hover { transform: translateY(-2px); } .btn:active { transform: translateY(1px); }
.btn.ghost { background: linear-gradient(180deg, #303030 0%, #121212 45%, #030303 100%); color: var(--orange); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), inset 0 -5px 0 rgba(0, 0, 0, .85), 0 10px 20px rgba(0, 0, 0, .38), 0 0 0 3px rgba(255, 150, 80, .55); }
.btn.sm { padding: 7px 14px 8px; font-size: 8px; margin-top: 8px; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }

/* adoption */
.field { display: block; width: min(300px, 100%); text-align: left; margin-top: 6px; }
.field > span:first-child { display: block; font-size: 12px; color: #FFB37A; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; margin-bottom: 4px; text-align: center; }
.nrow { display: flex; gap: 6px; }
.field input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 2px solid #333; background: #0c0c0c; color: #fff; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .04em; text-align: center; }
.field input:focus { outline: none; border-color: var(--orange); }
.dice { flex: none; width: 44px; border-radius: 10px; border: 2px solid #333; background: #141414; color: var(--orange); font-size: 20px; font-weight: 800; cursor: pointer; }
.dice:hover { border-color: var(--orange); }
.furs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: min(320px, 100%); }
.fur { background: linear-gradient(180deg, #2a2a2a, #111); border: 3px solid #0b0b0b; border-radius: 12px; padding: 6px 2px 5px; cursor: pointer; color: #d8d2cc; box-shadow: 0 0 0 2px rgba(255, 150, 80, .3); font: inherit; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.fur img { display: block; height: 30px; width: auto; max-width: 100%; margin: 0 auto 3px; image-rendering: pixelated; }
.fur.on { box-shadow: 0 0 0 3px var(--orange); color: #fff; }

/* food / training sheets */
.choices { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 340px; }
.choice { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; border: 3px solid #0b0b0b; background: linear-gradient(180deg, #2a2a2a, #111); box-shadow: 0 0 0 2px rgba(255, 150, 80, .45); color: #fff; cursor: pointer; font: inherit; transition: transform .12s; }
.choice:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--orange); }
.choice img { grid-row: 1 / 3; width: 40px; height: auto; image-rendering: pixelated; }
.choice b { font-family: "Press Start 2P", monospace; font-size: 10px; color: var(--orange); line-height: 1.5; }
.choice span { grid-column: 2; font-size: 14px; color: #d8d2cc; font-weight: 600; line-height: 1.25; }
.choice i { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-family: "Press Start 2P", monospace; font-size: 9px; color: #6b6560; }

/* result */
.gains { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 6px 0 2px; }
.gains span { padding: 4px 10px; border-radius: 999px; background: #1d1007; border: 2px solid var(--orange); color: #FFB37A; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

/* achievements */
.streak { width: 100%; max-width: 360px; background: #1d1007; border: 2px solid var(--orange); border-radius: 12px; padding: 8px 10px; margin: 4px 0 8px; text-align: left; }
.streak b { display: block; color: #fff; font-size: 15px; } .streak span { display: block; color: #b3aba5; font-size: 12px; font-weight: 600; line-height: 1.3; margin-top: 2px; }
.achs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; max-width: 360px; text-align: left; }
.a { display: flex; gap: 7px; align-items: flex-start; background: #111; border: 2px solid #2a2a2a; border-radius: 10px; padding: 6px 7px; font-size: 12px; color: #8c8580; line-height: 1.25; }
.a img { width: 18px; height: 18px; image-rendering: pixelated; flex: none; margin-top: 1px; opacity: .35; filter: grayscale(1); }
.a b { display: block; font-size: 13px; color: #b3aba5; }
.a.on { border-color: var(--orange); color: #d8d2cc; } .a.on b { color: #fff; } .a.on img { opacity: 1; filter: none; }

/* shieldwall preview */
.perks { list-style: none; margin: 6px 0; padding: 0; width: 100%; max-width: 360px; text-align: left; }
.perks li { display: flex; gap: 9px; align-items: flex-start; padding: 7px 4px; border-bottom: 1px solid #222; }
.perks img { width: 18px; height: 18px; image-rendering: pixelated; flex: none; margin-top: 1px; }
.perks b { display: block; color: #fff; font-size: 15px; line-height: 1.2; } .perks span { display: block; color: #8c8580; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.perks li.off b { color: #8c8580; } .perks li.off img { opacity: .5; }

/* camp menu */
.help { width: 100%; max-width: 360px; text-align: left; }
.help p { font-size: 14px; margin: 6px 0; }
#menu-confirm p { color: #FFB37A; }

/* banner */
.banner { position: absolute; z-index: 6; left: 50%; top: 24%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); text-align: center; pointer-events: none; font-family: "Press Start 2P", monospace; color: var(--orange); font-size: clamp(11px, 3.6vw, 14px); line-height: 1.5; text-shadow: 2px 2px 0 #000; opacity: 0; transition: opacity .25s; text-transform: uppercase; background: rgba(5, 5, 5, .9); border: 2px solid var(--orange); border-radius: 14px; padding: 10px 14px 9px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.banner.on { opacity: 1; }
.banner small { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .06em; color: #fff; margin-top: 6px; text-transform: none; }

/* buttons under the screen */
.pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 14px; border: 0; cursor: pointer; background: linear-gradient(180deg, #303030 0%, #121212 45%, #030303 100%); color: #FFB37A; font: inherit; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 -4px 0 rgba(0, 0, 0, .85), 0 0 0 2px rgba(255, 150, 80, .45); transition: transform .1s; min-width: 0; }
.act img { width: 28px; height: 28px; image-rendering: pixelated; }
.act span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act:hover { transform: translateY(-2px); color: #fff; } .act:active { transform: translateY(1px); }
.act.dim { opacity: .5; }
.mgpad { grid-template-columns: 1fr auto; align-items: stretch; }
.tapbtn { border: 0; border-radius: 16px; cursor: pointer; min-height: 62px; background: linear-gradient(180deg, #FF9A55 0%, var(--orange) 50%, #D64D00 100%); color: #1B0A00; font-family: "Press Start 2P", monospace; font-size: 16px; text-transform: uppercase; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -6px 0 rgba(0, 0, 0, .3), 0 0 0 3px #0b0b0b; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.tapbtn:active, .tapbtn.hit { transform: translateY(2px); filter: brightness(1.1); }
.stop { border: 0; border-radius: 14px; cursor: pointer; padding: 0 12px; background: #141414; color: #b3aba5; font: inherit; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 0 0 2px #333; }
.pad2 { display: flex; gap: 6px; margin-top: 8px; }
.pad2 button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; border-radius: 999px; border: 0; cursor: pointer; background: #0c0c0c; color: #b3aba5; font: inherit; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 0 0 2px #2a2a2a; min-width: 0; }
.pad2 button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad2 button:hover { color: #fff; box-shadow: 0 0 0 2px var(--orange); }
.pad2 img { width: 16px; height: 16px; image-rendering: pixelated; flex: none; }

.hint { width: min(440px, 100%); margin-top: 10px; display: flex; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: #2a1200; }
.hint button { border: 0; background: none; font: inherit; font-weight: 800; cursor: pointer; color: #000; text-transform: uppercase; letter-spacing: .1em; padding: 0; }
.hint button:hover { color: #fff; }
.hint .legal a { color: #2a1200; text-decoration: none; } .hint .legal a:hover { color: #fff; }

@media (max-width: 420px) {
  body { padding: 6px 4px 12px; } .top a.back span.t { display: none; }
  .phone { border-radius: 26px; padding: 18px 8px 8px; } .notch { top: 7px; }
  .act { font-size: 11px; } .act img { width: 24px; height: 24px; }
  .hint { font-size: 11px; justify-content: center; }
}
@media (hover: none) { .hint > span:first-child { display: none; } }
