/* Shares the Localinc player feedback look: Ndemic brand bar, warm paper, crimson accents. */
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #24242b;
  background: #f7f6f4;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body { margin: 0; min-width: 300px; min-height: 100vh; background: #f7f6f4; }
button, input { font: inherit; }
h1, h2, p { margin-top: 0; }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 2; padding: 12px; background: #fff; color: #951239; }
.skip-link:focus { top: 12px; }

.brand-bar { background: #232329; border-bottom: 3px solid #ce2156; }
.brand-bar-inner {
  width: min(860px, calc(100% - 32px)); margin: auto; min-height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.ndemic-brand { display: inline-flex; flex-shrink: 0; }
.ndemic-brand:focus-visible { outline-color: #fff; }
.ndemic-brand img { display: block; width: 153px; height: auto; }
.brand-section { color: #ded9df; font-size: 0.8rem; letter-spacing: 0.04em; }

.portal-shell { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0; }
.portal-header { margin-bottom: 26px; }
.all-games-link {
  display: inline-block; margin-bottom: 22px; color: #ac1845;
  font-size: 0.85rem; font-weight: 650; text-underline-offset: 4px;
}

h1 {
  max-width: 680px; margin-bottom: 0; overflow-wrap: anywhere;
  font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.12; letter-spacing: -0.04em;
}
h2 { margin-bottom: 18px; font-size: 1.15rem; }

.game-identity { display: flex; align-items: center; gap: 22px; }
.game-identity > div:last-child { min-width: 0; }
.game-icon { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 18px; box-shadow: 0 5px 16px #2323291a; }
.game-icon-fallback {
  display: grid; place-items: center; color: #fff; background: #232329;
  font-size: 1.6rem; font-weight: 760; letter-spacing: -0.04em;
}
#game-artwork { flex-shrink: 0; }
#game-artwork .game-icon { width: 104px; height: 104px; border-radius: 23px; }

.status { min-height: 1.4em; margin: 14px 0 0; color: #656570; font-size: 0.85rem; }
.status:empty { min-height: 0; margin: 0; }
.status.error { color: #a33232; }
.status.success { color: #297342; }
#page-status:not(:empty) { margin: 0 0 18px; }

.game-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.game-links a {
  display: flex; align-items: center; gap: 18px; height: 100%;
  padding: 22px; border: 1px solid #dedde1; border-radius: 16px;
  background: #fff; text-decoration: none; color: #24242b;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.game-links a:hover { border-color: #b61b49; box-shadow: 0 6px 22px #2323290c; }
.game-links .game-icon { flex-shrink: 0; width: 64px; height: 64px; border-radius: 14px; }
.game-link-copy { min-width: 0; }
.game-link-name { display: block; font-size: 1.15rem; font-weight: 680; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.game-link-action { display: block; margin-top: 9px; color: #a61842; font-size: 0.8rem; font-weight: 600; }
.game-link-action.unavailable { color: #6b6b6b; }

.panel {
  overflow: hidden; border: 1px solid #dedde1; border-radius: 16px;
  background: rgba(255, 255, 255, 0.94); box-shadow: 0 12px 38px rgba(34, 30, 40, 0.04);
}
.panel-body { padding: 24px; border-left: 3px solid #c92656; }
.panel-footer { display: grid; gap: 18px; border-top: 1px solid #e6e2e7; padding: 20px 24px; background: #fcfbfa; }

.platform-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.platform-button {
  display: block; min-height: 76px; width: 100%; padding: 14px;
  border: 1px solid #dedde1; border-radius: 12px; background: #fff;
  color: #44444e; text-align: start; cursor: pointer; font-size: 0.85rem; overflow-wrap: anywhere;
  touch-action: manipulation;
}
.platform-button:hover:not(:disabled) { border-color: #b61b49; background: #fff7fa; }
.platform-button[aria-checked="true"] { border-color: #b61b49; background: #fbeef2; box-shadow: inset 0 0 0 1px #b61b49; }
.platform-name { display: block; margin-bottom: 3px; font-size: 1.05rem; font-weight: 680; color: #24242b; }

label { color: #44444e; font-size: 0.88rem; font-weight: 680; }
.pin-field { display: grid; gap: 7px; max-width: 360px; }
.optional { color: #746d79; font-weight: 450; }
.field-hint { color: #686873; font-size: 0.8rem; font-weight: 450; }
input[type="text"] {
  display: block; width: 100%; min-height: 46px; padding: 9px 12px;
  border: 1px solid #c6c4cc; border-radius: 10px; color: #24242b; background: #fff; font-size: 1rem;
}
input:focus, button:focus-visible, a:focus-visible { outline: 3px solid #b61b49; outline-offset: 2px; border-color: #b61b49; }
.turnstile:empty { display: none; }

.form-actions { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.form-secondary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-primary-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-left: auto; }
.form-actions .status { margin: 0; }

.primary-button, .compact-button {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 720; cursor: pointer; touch-action: manipulation; text-decoration: none;
}
.primary-button { min-height: 44px; border: 1px solid #a61842; border-radius: 10px; padding: 9px 16px; color: #fff; background: #b51b49; }
.primary-button:hover { background: #951239; }
.compact-button {
  min-height: 34px; border: 1px solid #cdc6d0; border-radius: 9px; padding: 6px 11px;
  color: #504856; background: #fff; font-size: 0.8rem;
}
.compact-button:hover { border-color: #aaa3ae; background: #f7f2f4; }
button:disabled { cursor: not-allowed; opacity: 0.6; }

.field-label {
  margin-bottom: 8px; color: #686873; font-size: 0.73rem; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase;
}
.key-code {
  margin-bottom: 14px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.25rem, 4vw, 1.7rem); font-weight: 680; letter-spacing: 0.04em;
  overflow-wrap: anywhere; user-select: all;
}
.key-note { margin-bottom: 0; color: #53515e; font-size: 0.95rem; line-height: 1.55; }
.feedback-block { margin-top: 20px; border-top: 1px solid #e6e2e7; padding-top: 18px; }
.feedback-text { margin-bottom: 0; color: #24242b; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.feedback-text a { color: #a61842; font-weight: 650; text-underline-offset: 3px; }

.portal-footer { margin-top: 42px; border-top: 1px solid #dedde1; padding-top: 20px; color: #656570; font-size: 0.78rem; line-height: 1.7; }
.portal-footer a { color: #a61842; text-underline-offset: 3px; white-space: nowrap; }

@media (max-width: 620px) {
  .brand-bar-inner { width: calc(100% - 28px); min-height: 76px; gap: 12px; }
  .ndemic-brand img { width: 136px; }
  .brand-section { max-width: 90px; font-size: 0.72rem; text-align: right; }
  .portal-shell { width: min(100% - 20px, 860px); padding-top: 22px; }
  .game-identity { align-items: flex-start; gap: 14px; }
  #game-artwork .game-icon { width: 64px; height: 64px; border-radius: 14px; }
  .game-identity h1 { font-size: 1.65rem; }
  .game-links { grid-template-columns: 1fr; }
  .game-links a { padding: 18px; }
  .panel-body, .panel-footer { padding: 18px; }
  .compact-button { min-height: 44px; }
  .portal-footer { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
