/* Tanukade Pocket: games made for your phone. Phone-first layout; computers get the film in a phone and a scan-to-play code. */
:root {
  --p-bg: #0d0812;
  --p-ink: #fff3e6;
  --p-muted: #c7b9cf;
  --p-line: #ffffff1a;
  --p-amber: #ffb35c;
  --p-cyan: #8ce9ff;
  --p-card: #1a1222;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--p-bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(120% 70% at 80% 0%, #3a1430 0%, transparent 60%), radial-gradient(90% 60% at 0% 30%, #10243a 0%, transparent 60%), var(--p-bg); color: var(--p-ink); font-family: "Avenir Next", system-ui, -apple-system, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--p-amber); outline-offset: 4px; }

/* header (same as the other Tanukade pages) */
.site-header { border-bottom: 1px solid var(--p-line); }
.header-inner { width: min(100% - 64px, 1180px); min-height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-size: 24px; font-weight: 780; letter-spacing: -1px; }
.wordmark img { display: block; width: 32px; height: 32px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); min-width: 0; }
.main-nav a { position: relative; padding: 29px 0 26px; color: #c9bfd0; font-size: 12px; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--p-ink); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--p-amber); }
.header-actions { min-width: 1px; }

.pocket-page { width: min(100% - 64px, 1180px); margin: 0 auto; }

/* hero */
.pocket-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
.pocket-eyebrow { margin: 0 0 18px; color: var(--p-amber); font-size: 11px; font-weight: 800; letter-spacing: 3px; }
.pocket-copy h1 { margin: 0; font-size: clamp(46px, 7vw, 96px); font-weight: 900; font-style: italic; letter-spacing: -2px; line-height: 0.95; text-wrap: balance; text-shadow: -3px 0 0 #21e6ff55, 3px 0 0 #ff3d8b55; }
.pocket-strap { margin: 22px 0 0; font-size: clamp(19px, 2.2vw, 26px); font-weight: 700; letter-spacing: -0.4px; }
.pocket-lede { max-width: 520px; margin: 12px 0 0; color: var(--p-muted); font-size: 15px; line-height: 1.65; }
.pocket-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pocket-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--p-amber); color: #1d0d02; font-size: 15px; font-weight: 800; box-shadow: 0 8px 24px #ffb35c33; transition: transform 0.15s ease, background 0.15s ease; }
.pocket-button:hover { background: #ffc47c; transform: translateY(-1px); }
.pocket-button-ghost { background: transparent; color: var(--p-ink); border: 1px solid #ffffff33; box-shadow: none; }
.pocket-button-ghost:hover { background: #ffffff12; }
.pocket-scan { display: none; align-items: center; gap: 16px; margin-top: 32px; max-width: 470px; padding: 12px 16px 12px 12px; border: 1px solid #ffb35c44; border-radius: 16px; background: #1d1309cc; }
.pocket-scan img { width: 108px; height: 108px; border-radius: 10px; flex: none; }
.pocket-scan p { margin: 0; color: var(--p-muted); font-size: 14px; line-height: 1.45; }
.pocket-scan strong { display: block; color: var(--p-amber); font-size: 16px; margin-bottom: 4px; }
@media (hover: hover) and (pointer: fine) { .pocket-scan { display: flex; } }

/* the film, in a phone */
.pocket-phone { position: relative; justify-self: center; width: min(330px, 78vw); }
.pocket-phone-body { position: relative; z-index: 1; aspect-ratio: 9 / 16; padding: 10px; border-radius: 46px; background: linear-gradient(145deg, #2c2638, #121018 60%); box-shadow: 0 0 0 1px #ffffff22, 0 30px 70px #00000099, inset 0 0 0 2px #00000088; }
.pocket-film { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: #120a14; }
.pocket-phone-island { position: absolute; top: 20px; left: 50%; width: 31%; height: 22px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.pocket-phone-glow { position: absolute; inset: 8% -18% 0; z-index: 0; background: radial-gradient(closest-side, #ff7a3a55, #8ce9ff22 60%, transparent); filter: blur(30px); }

/* dailies */
.pocket-dailies { margin: 8px 0 44px; padding: 22px 24px; border: 1px solid var(--p-line); border-radius: 22px; background: #160f1dcc; }
.pocket-dailies h2 { margin: 0; font-size: 22px; font-weight: 850; }
.pocket-dailies > p { margin: 6px 0 16px; color: var(--p-muted); font-size: 14px; }
.pocket-dailies ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pocket-dailies a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #231830; border: 1px solid #ffffff12; }
.pocket-dailies a:hover { border-color: #ffb35c66; }
.pocket-dailies b { font-size: 16px; }
.pocket-daily-state { grid-column: 2; color: var(--p-muted); font-size: 12.5px; }
.pocket-dot { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #6b5a7c; }
.pocket-dailies a.is-done .pocket-dot { border-color: #7fe0a8; background: #7fe0a8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23143020' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.pocket-dailies a.is-done .pocket-daily-state { color: #9fe8be; }

/* game cards */
.pocket-section-title { margin: 0 0 18px; font-size: clamp(26px, 3vw, 36px); font-weight: 900; font-style: italic; letter-spacing: -0.5px; }
.pocket-card { overflow: hidden; border-radius: 22px; background: var(--p-card); border: 1px solid #ffffff12; }
.pocket-card-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #120a14; }
.pocket-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pocket-card:hover .pocket-card-art img { transform: scale(1.03); }
.pocket-card-copy { padding: 18px 20px 22px; }
.pocket-card h3 { margin: 6px 0 4px; font-size: 26px; font-weight: 900; }
.pocket-tag { margin: 0 0 14px; color: var(--p-amber); font-weight: 700; }
.pocket-card-copy > p:not(.pocket-tag):not(.pocket-chips) { margin: 0 0 18px; color: var(--p-muted); font-size: 15px; line-height: 1.6; }
.pocket-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pocket-chips span { padding: 4px 10px; border-radius: 999px; background: #ffffff10; color: #e9dcef; font-size: 11.5px; font-weight: 700; }
.pocket-card-lead { display: grid; grid-template-columns: 1.3fr 1fr; margin-bottom: 16px; }
.pocket-card-lead .pocket-card-art { aspect-ratio: auto; min-height: 100%; }
.pocket-card-lead .pocket-card-copy { align-self: center; padding: 28px; }
.pocket-card-lead h3 { font-size: 40px; font-style: italic; }
.pocket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* add to home screen */
.pocket-howto { margin: 48px 0 24px; padding: 24px; border-radius: 22px; border: 1px dashed #ffffff26; }
.pocket-howto > p { margin: 0 0 12px; color: var(--p-muted); }
.pocket-howto ol { margin: 0; padding-left: 20px; line-height: 1.9; }
.pocket-share-icon { display: inline-block; width: 13px; height: 15px; margin: 0 2px -2px; border: 1.6px solid currentColor; border-top: 0; border-radius: 0 0 3px 3px; position: relative; }
.pocket-share-icon::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1.6px; height: 11px; background: currentColor; transform: translateX(-50%); }

.site-footer { width: min(100% - 64px, 1180px); margin: 0 auto; padding: 34px 0 48px; border-top: 1px solid var(--p-line); font-size: 11px; letter-spacing: 2px; color: var(--p-muted); }
.site-footer a:hover { color: var(--p-amber); }

/* phones: the phone comes first, everything stacks, big thumbs targets */
@media (max-width: 860px) {
  .header-inner, .pocket-page, .site-footer { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; gap: 16px; }
  .wordmark { font-size: 20px; }
  .wordmark img { width: 27px; height: 27px; }
  .main-nav { gap: 13px; overflow: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 22px 0 20px; font-size: 11px; }
  .pocket-hero { grid-template-columns: 1fr; gap: 26px; padding: 26px 0 26px; }
  .pocket-phone { order: -1; width: min(270px, 70vw); }
  .pocket-copy { text-align: center; }
  .pocket-lede { margin-inline: auto; }
  .pocket-actions { justify-content: center; }
  .pocket-dailies { padding: 18px 16px; }
  .pocket-dailies ul { grid-template-columns: 1fr; }
  .pocket-card-lead { grid-template-columns: 1fr; }
  .pocket-card-lead .pocket-card-art { aspect-ratio: 16 / 9; }
  .pocket-card-lead .pocket-card-copy { padding: 18px 20px 22px; }
  .pocket-card-lead h3 { font-size: 32px; }
  .pocket-grid { grid-template-columns: 1fr; }
  .pocket-button { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .pocket-card-art img, .pocket-button { transition: none; } }
