/* KRAPHIS game pages — palette follows the DEATH AI LIFE in-game window colors. */
:root {
  --canvas: #0e1824;
  --surface: #152430;
  --raised: #182d40;
  --hover: #243e54;
  --line: #314a5e;
  --text: #edf0e4;
  --muted: #bacbd3;
  --accent: #e1b65e;
  --focus: #f3d28f;
  --header: 64px;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, "Segoe UI", sans-serif; }
:lang(zh-Hans) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); color: var(--text); font-size: 16px; line-height: 1.75; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--focus); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 20; padding: 8px 14px; background: var(--accent); color: var(--canvas); font-weight: 700; border-radius: 6px; }
.skip-link:focus { top: 12px; }

.bar { width: min(100% - 40px, 880px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header { position: sticky; top: 0; z-index: 10; min-height: var(--header); padding: 8px 0; display: flex; align-items: center; background: rgba(14, 24, 36, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.wordmark { color: var(--text); font-weight: 800; letter-spacing: .18em; text-decoration: none; font-size: 15px; }
.wordmark:hover { color: var(--accent); }

/* Language switch: plain link row without JS, dropdown at the top right with JS. */
.lang-switch { position: relative; }
.lang-button { display: none; }
.lang-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.js .lang-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.js .lang-button:hover, .js .open .lang-button { background: var(--hover); border-color: #496c86; }
.lang-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lang-button .chevron { width: 16px; height: 16px; transition: transform .2s ease; }
.open .lang-button .chevron { transform: rotate(180deg); }
.js .lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; flex-direction: column; gap: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(7, 15, 24, .6); }
.js .open .lang-menu { display: flex; }
.js .lang-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; }
.js .lang-menu a:hover, .js .lang-menu a:focus-visible { background: var(--hover); outline-offset: -2px; }
.js .lang-menu a[aria-current="true"] { color: var(--accent); font-weight: 700; }
.js .lang-menu a[aria-current="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

main { flex: 1; width: min(100% - 40px, 880px); margin: 0 auto; padding: 48px 0 72px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
h1 { margin: 0 0 8px; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.25; letter-spacing: -.01em; }
.lead { color: var(--muted); }

.policy { max-width: 72ch; }
.policy + .policy { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.js .policy + .policy { margin-top: 0; padding-top: 0; border-top: 0; }
.policy h1 + p { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.policy h2 { margin: 40px 0 10px; padding-top: 4px; font-size: 19px; line-height: 1.4; }
.policy p, .policy li { color: #dfe5dc; }
.policy p { margin: 0 0 14px; }
.policy ul { margin: 0 0 16px; padding-left: 22px; }
.policy li { margin: 4px 0; }
.policy li::marker { color: var(--accent); }
:lang(ja) .policy p, .policy:lang(ja) p, .policy:lang(zh-Hans) p { line-break: strict; }

.table-scroll { margin: 8px 0 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--raised); color: var(--text); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

.index h1 { margin-bottom: 28px; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.game-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.game-card h2 { margin: 0; font-size: 22px; letter-spacing: .02em; }
.publisher { margin: 2px 0 18px; color: var(--muted); font-size: 14px; }
.link-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.link-card:hover { background: var(--hover); border-color: #496c86; color: var(--text); }
.link-title { font-weight: 700; color: var(--accent); }
.link-sub { color: var(--muted); font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); padding: 20px 0; font-size: 13px; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer .bar { flex-wrap: wrap; }

@media (max-width: 560px) {
  :root { --header: 60px; }
  .bar, main { width: calc(100% - 32px); }
  main { padding: 32px 0 56px; }
  .js .lang-button { padding: 0 12px; }
  .lang-menu { font-size: 13px; gap: 2px 10px; }
  .policy h2 { margin-top: 32px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-button .chevron { transition: none; }
}

/* kraphis.net home placeholder: one large centered "ing". */
.splash-page {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(225, 182, 94, .14), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 120%, rgba(73, 108, 134, .28), transparent 70%),
    var(--canvas);
}
.splash {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 24px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(8px, 2vw, 20px);
}
.splash-word {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(120px, 30vw, 380px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  background: linear-gradient(180deg, #fbe6b8 0%, #e1b65e 55%, #b98436 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 48px rgba(225, 182, 94, .28));
  animation: splash-rise 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.splash-cursor {
  width: .09em;
  height: .62em;
  margin-left: .08em;
  border-radius: .02em;
  background: #e1b65e;
  box-shadow: 0 0 24px rgba(225, 182, 94, .6);
  animation: splash-blink 1.1s steps(1, end) infinite;
}
.splash-brand {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 700;
  letter-spacing: .5em;
  padding-left: .5em;
  opacity: .7;
  animation: splash-fade 1.6s .4s ease both;
}
@keyframes splash-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes splash-fade { from { opacity: 0; } to { opacity: .7; } }
@keyframes splash-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .splash-word, .splash-brand, .splash-cursor { animation: none; }
}
