* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--type-md);
  line-height: var(--line-base);
  color: var(--text-primary);
  background:
    radial-gradient(circle at 92% -10%, rgba(17, 94, 233, 0.14), transparent 40%),
    radial-gradient(circle at 8% -20%, rgba(28, 174, 255, 0.1), transparent 42%),
    linear-gradient(180deg, #f9fcff 0%, var(--bg-page) 58%);
  background-attachment: fixed, fixed, fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -52px;
  border-radius: var(--radius-sm);
  background: #0d2347;
  color: #ffffff;
  padding: var(--space-2) var(--space-3);
  z-index: 100;
}

.skip-link:focus {
  top: var(--space-3);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

button,
input,
select,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
select,
.nav-item,
.chip,
.mobile-chip,
.game-row {
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    color var(--motion-fast) ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.nav-item:focus-visible,
.chip:focus-visible,
.mobile-chip:focus-visible,
.game-row:focus-visible {
  box-shadow: 0 0 0 4px rgba(12, 85, 231, 0.22);
}

.topbar,
.sidebar,
.hero-card,
.hero-panel,
.game-card,
.state,
.event-card,
.panel-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-soft);
}

.topbar {
  min-height: 76px;
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
  row-gap: var(--space-2);
  backdrop-filter: blur(10px);
}

.topbar .brand-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar #kp-developer-link {
  margin-left: auto;
  margin-right: 0;
}

.topbar .topbar-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-left: 0;
  min-width: 0;
}
.brand-wrap {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-set {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-set-dark {
  display: none;
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo-icon {
  height: 34px;
}

.brand-logo-text {
  height: 30px;
  transform: translateY(2px);
}

.brand-wrap.brand-on-dark .brand-set-light {
  display: none;
}

.brand-wrap.brand-on-dark .brand-set-dark {
  display: inline-flex;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.auth-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.search-wrap {
  min-width: 300px;
}

.search,
.field-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--btn-radius);
  background: #fcfeff;
  color: var(--text-primary);
  min-height: 44px;
  padding: 0 var(--space-3);
}

.field-input {
  border-radius: 12px;
}

.search::placeholder,
.field-input::placeholder {
  color: #728aa9;
}

.search:hover,
.field-input:hover {
  border-color: #90abd0;
}

.sidebar {
  padding: var(--space-4);
  display: grid;
  align-content: start;
  gap: var(--space-4);
}

.sidebar h2 {
  margin: 0;
  font-size: var(--type-sm);
  color: var(--text-secondary);
}

.nav-list {
  display: grid;
  gap: var(--space-2);
}

.nav-item {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-weight: 700;
}

.nav-item:hover {
  background: #f4f8ff;
  border-color: #d0def2;
}

.nav-item.is-active {
  background: #e8f0ff;
  border-color: #bed1ef;
  color: #0c419f;
}

[data-kp-sidebar-avatar='1'] {
  font-weight: 800;
}

[data-kp-sidebar-avatar='1'] .kp-sidebar-rainbow-label {
  display: inline-block;
  background: linear-gradient(90deg, #ff3b3b, #ffb703, #00d26a, #00b4ff, #7c4dff, #ff4fd8);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: kp-sidebar-rainbow-shift 6s linear infinite;
}

[data-kp-sidebar-avatar='1']:hover .kp-sidebar-rainbow-label,
[data-kp-sidebar-avatar='1']:focus-visible .kp-sidebar-rainbow-label {
  animation-duration: 3.6s;
}

@keyframes kp-sidebar-rainbow-shift {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 200% 50%;
  }
}
.side-cta {
  border: 1px dashed #b1c7e8;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: #f3f8ff;
  display: grid;
  gap: var(--space-3);
}




.kp-notifications-cta {
  display: none !important;
}

.kp-koin-yukle-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.kp-koin-yukle-overlay.open {
  display: flex;
}

.kp-koin-yukle-card {
  width: min(960px, 100%);
  max-height: min(88vh, 860px);
  overflow: hidden;
  border: 1px solid rgba(125, 146, 182, 0.24);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(12, 18, 34, 0.985), rgba(9, 14, 28, 0.985));
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.55);
  color: #f8fafc;
}

.kp-koin-yukle-shell {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.kp-koin-yukle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px 18px;
  border-bottom: 1px solid rgba(125, 146, 182, 0.16);
}

.kp-koin-yukle-title {
  margin-top: 0;
  font-size: clamp(1.8rem, 2.3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
  color: #f8fafc;
}

.kp-koin-yukle-subtitle {
  margin-top: 10px;
  max-width: 620px;
  color: rgba(226, 232, 240, 0.8);
  line-height: 1.6;
}

.kp-koin-yukle-subtitle:empty,
.kp-koin-yukle-subtitle[hidden] {
  display: none;
}

.kp-koin-yukle-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(125, 146, 182, 0.28);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.68);
  color: #f8fafc;
  font-size: 1.8rem;
  cursor: pointer;
}

.kp-koin-yukle-body {
  padding: 20px 30px 24px;
  overflow: auto;
}

.kp-koin-yukle-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.kp-koin-yukle-choice {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(125, 146, 182, 0.24);
  border-radius: 26px;
  background: rgba(18, 28, 48, 0.88);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.kp-koin-yukle-choice.is-auto {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(25, 38, 63, 0.96), rgba(17, 25, 44, 0.96));
}

.kp-koin-yukle-choice.is-manual {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(31, 39, 58, 0.96), rgba(18, 25, 42, 0.96));
}

.kp-koin-yukle-choice-badge,
.kp-koin-yukle-chip,
.kp-koin-yukle-type-badge,
.kp-koin-yukle-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 900;
}

.kp-koin-yukle-choice-badge {
  align-self: flex-start;
  background: rgba(250, 204, 21, 0.16);
  color: #fde68a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kp-koin-yukle-choice-title {
  font-size: 1.55rem;
  font-weight: 900;
}

.kp-koin-yukle-choice-copy,
.kp-koin-yukle-step-copy,
.kp-koin-yukle-selection-copy {
  color: rgba(241, 245, 249, 0.9);
  line-height: 1.65;
}

.kp-koin-yukle-choice-footer {
  margin-top: auto;
  color: #fde68a;
  font-weight: 900;
}

.kp-koin-yukle-banner,
.kp-koin-yukle-selection,
.kp-koin-yukle-step,
.kp-koin-yukle-waiting-box,
.kp-koin-yukle-result-empty {
  border: 1px solid rgba(125, 146, 182, 0.18);
  background: rgba(15, 23, 42, 0.7);
}

.kp-koin-yukle-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
}

.kp-koin-yukle-banner.is-loading {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(8, 47, 73, 0.46);
}

.kp-koin-yukle-banner.is-success,
.kp-koin-yukle-step.is-good {
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(20, 83, 45, 0.22);
}

.kp-koin-yukle-banner.is-error,
.kp-koin-yukle-step.is-bad {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.2);
}

.kp-koin-yukle-banner.is-warning,
.kp-koin-yukle-selection--warning {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(120, 53, 15, 0.24);
}

.kp-koin-yukle-topbar,
.kp-koin-yukle-step-grid {
  display: grid;
  gap: 16px;
}

.kp-koin-yukle-topbar {
  margin-bottom: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.kp-koin-yukle-topbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.kp-koin-yukle-steps,
.kp-koin-yukle-selection-list,
.kp-koin-yukle-waiting {
  display: grid;
  gap: 16px;
}

.kp-koin-yukle-step {
  padding: 16px 18px;
  border-radius: 22px;
}

.kp-koin-yukle-step-grid {
  grid-template-columns: minmax(0, 1fr) auto;
}

.kp-koin-yukle-step-side {
  min-width: 210px;
}

.kp-koin-yukle-step-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.kp-koin-yukle-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  font-weight: 900;
}

.kp-koin-yukle-step-title,
.kp-koin-yukle-selection-head {
  font-size: 1.05rem;
  font-weight: 900;
}

.kp-koin-yukle-step-note,
.kp-koin-yukle-status-line {
  color: rgba(191, 219, 254, 0.92);
}

.kp-koin-yukle-step-actions,
.kp-koin-yukle-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kp-koin-yukle-step-actions.is-right {
  flex-direction: column;
  align-items: stretch;
}

.kp-koin-yukle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(125, 146, 182, 0.26);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.74);
  color: #f8fafc;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.kp-koin-yukle-btn.is-primary {
  border-color: rgba(251, 191, 36, 0.34);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.94), rgba(245, 158, 11, 0.9));
  color: #0f172a;
}

.kp-koin-yukle-btn.is-secondary {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(8, 47, 73, 0.56);
}

.kp-koin-yukle-btn[disabled],
.kp-koin-yukle-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 1;
  color: rgba(226, 232, 240, 0.72);
}

.kp-koin-yukle-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.kp-koin-yukle-chip {
  border: 1px solid rgba(125, 146, 182, 0.22);
  background: rgba(15, 23, 42, 0.74);
  color: #dbeafe;
}

.kp-koin-yukle-selection {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 22px;
}

.kp-koin-yukle-channel-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(125, 146, 182, 0.18);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.7);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.kp-koin-yukle-channel-thumb {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
}

.kp-koin-yukle-channel-thumb--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.2);
  color: #bfdbfe;
  font-weight: 900;
}

.kp-koin-yukle-channel-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kp-koin-yukle-channel-action {
  color: #fde68a;
  font-weight: 800;
}

.kp-koin-yukle-inline-error {
  margin-top: 12px;
  color: #fecaca;
}

.kp-koin-yukle-waiting-box,
.kp-koin-yukle-result-empty {
  padding: 18px;
  border-radius: 20px;
}

.kp-koin-yukle-waiting-time {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fde68a;
}

.kp-koin-yukle-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(125, 146, 182, 0.14);
  border-radius: 18px;
}

.kp-koin-yukle-result-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.kp-koin-yukle-result-table th,
.kp-koin-yukle-result-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(125, 146, 182, 0.14);
}

.kp-koin-yukle-result-table tr:last-child td {
  border-bottom: none;
}

.kp-koin-yukle-type-badge {
  border: 1px solid rgba(125, 146, 182, 0.2);
}

.kp-koin-yukle-type-badge.is-super-sticker {
  border-color: rgba(245, 158, 11, 0.44);
  background: rgba(245, 158, 11, 0.12);
}

.kp-koin-yukle-type-badge.is-super-chat {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(37, 99, 235, 0.18);
}

.kp-koin-yukle-status-badge.is-paid {
  border: 1px solid rgba(74, 222, 128, 0.24);
  background: rgba(20, 83, 45, 0.42);
}

.kp-koin-yukle-status-badge.is-failed {
  border: 1px solid rgba(248, 113, 113, 0.26);
  background: rgba(127, 29, 29, 0.42);
}

.kp-koin-yukle-coin-value {
  color: #fde68a;
  font-weight: 900;
}

.kp-koin-yukle-loading {
  padding: 32px 10px;
  text-align: center;
  color: rgba(226, 232, 240, 0.8);
}

.kp-koin-yukle-modal-open {
  overflow: hidden;
}

@media (max-width: 840px) {
  .kp-koin-yukle-choice-grid {
    grid-template-columns: 1fr;
  }

  .kp-koin-yukle-head,
  .kp-koin-yukle-body {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 640px) {
  .kp-koin-yukle-overlay {
    align-items: flex-end;
    padding: 8px;
  }

  .kp-koin-yukle-card {
    border-radius: 24px;
    max-height: calc(100vh - 16px);
  }

  .kp-koin-yukle-head {
    gap: 12px;
    padding: 14px 14px 10px;
  }

  .kp-koin-yukle-body {
    padding: 14px;
  }

  .kp-koin-yukle-topbar,
  .kp-koin-yukle-step-grid,
  .kp-koin-yukle-channel-option {
    grid-template-columns: 1fr;
  }

  .kp-koin-yukle-topbar-actions,
  .kp-koin-yukle-topbar-actions .kp-koin-yukle-btn,
  .kp-koin-yukle-step-actions .kp-koin-yukle-btn,
  .kp-koin-yukle-inline-actions .kp-koin-yukle-btn {
    width: 100%;
  }

  .kp-koin-yukle-result-table,
  .kp-koin-yukle-result-table tbody,
  .kp-koin-yukle-result-table tr,
  .kp-koin-yukle-result-table td,
  .kp-koin-yukle-result-table th {
    display: block;
  }

  .kp-koin-yukle-result-table thead {
    display: none;
  }

  .kp-koin-yukle-result-table {
    min-width: 0;
    border: none;
  }

  .kp-koin-yukle-result-table td {
    display: grid;
    grid-template-columns: minmax(96px, 110px) minmax(0, 1fr);
    gap: 8px;
    border: none;
  }

  .kp-koin-yukle-result-table td::before {
    content: attr(data-label);
    color: rgba(148, 163, 184, 0.94);
    font-weight: 800;
  }

  .kp-koin-yukle-table-wrap {
    overflow: visible;
    border: none;
  }
}

.side-cta.kp-notifications-cta[data-kp-cta-visible="1"] {
  display: grid !important;
}

.mobile-bottom-cta {
  display: none;
  border: 1px dashed #b1c7e8;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: #f3f8ff;
  gap: var(--space-3);
}

.mobile-bottom-cta p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--type-sm);
}

.eyebrow {
  margin: 0;
  color: var(--color-blue-base);
  font-weight: 700;
  font-size: var(--type-sm);
}

.page-title {
  margin: var(--space-2) 0 0;
  font-family: var(--font-heading);
  font-size: var(--type-2xl);
  line-height: var(--line-tight);
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin: var(--space-3) 0 0;
  color: var(--text-secondary);
  max-width: 70ch;
}

.hero-card,
.hero-panel,
.panel-card,
.state,
.event-card {
  padding: var(--space-4);
}

.hero-card {
  box-shadow: var(--shadow-card);
}

.hero-panel {
  align-self: stretch;
}

.panel-note {
  margin: var(--space-3) 0 0;
  color: var(--text-tertiary);
  font-size: var(--type-sm);
}

.rail {
  display: grid;
  gap: var(--space-3);
}

.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: nowrap;
}

.rail-head > * {
  min-width: 0;
}

.rail-head-side {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}
.rail-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.rail-link,
.inline-link {
  color: #0d49b1;
  font-weight: 700;
  font-size: var(--type-sm);
}

.rail-link {
  white-space: nowrap;
  flex: 0 0 auto;
}

.home-scroll-hint {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border: 1px solid var(--border-strong);
  border-radius: var(--btn-radius);
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(31, 79, 147, 0.1);
  color: #1f4f93;
  flex: 0 0 auto;
  overflow: hidden;
}

.home-scroll-hint::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.home-scroll-hint[hidden] {
  display: none !important;
}

.home-scroll-hint__icon {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: home-scroll-hint-nudge 1.35s ease-in-out infinite;
}

@keyframes home-scroll-hint-nudge {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.84;
  }

  50% {
    transform: translateX(2px);
    opacity: 1;
  }
}
.rail-link:hover,
.inline-link:hover {
  color: #0a3888;
}

@media (max-width: 760px) {
  .rail-head {
    align-items: center;
    gap: 10px;
  }

  .rail-head-side {
    align-items: center;
    gap: 8px;
    min-height: 30px;
  }
  .rail-title {
    font-size: clamp(16px, 5.3vw, 22px);
    letter-spacing: -0.01em;
  }

  .home-scroll-hint:not([hidden]) {
    display: inline-flex;
  }
  .rail-link {
    font-size: clamp(12px, 3.6vw, 14px);
  }
}

.mobile-cats {
  display: none;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-1);
  scrollbar-width: thin;
}

.mobile-chip,
.chip {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #ffffff;
  min-height: 40px;
  padding: 0 var(--space-3);
  font-size: var(--type-sm);
  font-weight: 700;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}
.mobile-chip:hover,
.chip:hover {
  border-color: #8cacdb;
}

.mobile-chip.is-active,
.chip.is-active {
  border-color: #8eaee9;
  background: #e6eeff;
  color: #0d45a5;
}


.card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: 0;
  scroll-snap-type: x proximity;
}
.event-row {
  grid-auto-columns: minmax(260px, 1fr);
  padding-bottom: var(--space-1);
}

.event-row .event-card {
  min-height: 100%;
  scroll-snap-align: start;
  background: transparent;
  box-shadow: none;
}

/* Yaklaşan Etkinlikler kartlarında alt dolgu efekti, ortak kart arka plan/gölge katmanından geldiği için bu bölümde özel olarak şeffaf + gölgesiz sabitlenir. */
#events .event-card {
  background: transparent !important;
  box-shadow: none;
}

.fallback-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--space-3);
  text-align: center;
}

.home-feed-empty,
.home-discover-empty {
  min-height: 168px;
  border: 1px dashed #b1c7e8;
  border-radius: var(--radius-md);
  background: #f3f8ff;
  box-shadow: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  text-align: center;
  font-weight: 700;
}

.home-discover-hero {
  display: grid;
  gap: var(--space-3);
}

.home-discover-rail {
  margin-top: 0;
}

.home-discover-head {
  align-items: center;
}

.home-discover-title {
  font-size: clamp(18px, 2vw, 26px);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.home-discover-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  flex: 0 0 auto;
}

.home-discover-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(13, 73, 177, 0.14);
  background: rgba(244, 248, 255, 0.92);
  color: var(--text-secondary);
}

.home-discover-status.is-error {
  border-color: rgba(191, 31, 31, 0.18);
  background: rgba(255, 242, 242, 0.96);
  color: #7e2a2a;
}

.home-discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.home-discover-grid.is-events {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.home-discover-grid .game-card,
.home-discover-grid .event-card {
  min-height: 100%;
}

.game-card {
  overflow: hidden;
  scroll-snap-align: start;
  border-color: rgba(159, 182, 216, 0.42);
  background: transparent;
  box-shadow: none;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.game-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(130deg, #d4e5ff 0%, #eff6ff 55%, #ffffff 100%);
  color: #194891;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.game-body {
  padding: var(--space-3);
  background: var(--bg-surface);
}

.game-title {
  margin: 0;
  font-size: var(--type-md);
  font-family: var(--font-heading);
}

.game-meta {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--type-xs);
  color: var(--text-tertiary);
}

.cta-row {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.game-card .cta-row {
  align-items: flex-end;
  justify-content: flex-start;
}

.event-card .cta-row {
  justify-content: flex-end;
}

.reaction-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.vote-icon-btn {
  width: 29px;
  height: 29px;
  min-width: 29px;
  min-height: 29px;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #7e8fb3;
  border-radius: 0 !important;
}

.vote-icon-btn:hover {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #5f79a8;
  transform: none !important;
}

.vote-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.vote-icon .outline {
  fill: none;
  stroke: #111111;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vote-icon .solid {
  display: none;
  fill: currentColor;
}

.vote-icon-down {
  transform: rotate(180deg);
}

.vote-icon-btn.is-active {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0f2f68;
}

.vote-icon-btn.is-active .outline {
  display: none;
}

.vote-icon-btn.is-active .solid {
  display: block;
}


.btn {
  min-height: var(--btn-height);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-primary);
  border-radius: var(--btn-radius);
  padding: 0 var(--btn-pad-x);
  font-size: var(--type-sm);
  font-weight: var(--btn-font-weight);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}
.btn:hover {
  border-color: #89a9dc;
  transform: translateY(-1px);
}

.btn.primary {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: #ffffff;
}

.btn.primary:hover {
  border-color: var(--accent-primary-strong);
  background: var(--accent-primary-strong);
}

.btn.success {
  border-color: #0f8a49;
  background: linear-gradient(180deg, #2cc56d 0%, #128548 100%);
  color: #ffffff;
}

.btn.success:hover {
  border-color: #0c6e3a;
  background: linear-gradient(180deg, #28b865 0%, #0f733d 100%);
}
.btn.btn-deep {
  border-color: var(--btn-dark-bg);
  background: linear-gradient(180deg, #2a2a2a 0%, var(--btn-dark-bg) 100%);
  color: #ffffff;
}

.btn.btn-deep:hover {
  border-color: var(--btn-dark-bg-hover);
  background: linear-gradient(180deg, #1f1f1f 0%, var(--btn-dark-bg-hover) 100%);
}
.metric-list {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.metric-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  padding: var(--space-2) var(--space-3);
  color: var(--text-secondary);
}

.metric-list strong {
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.event-card h3,
.state strong,
.panel-head h2 {
  margin: var(--space-2) 0;
  font-family: var(--font-heading);
}

.event-card p,
.state p,
.panel-head p {
  margin: 0;
  color: var(--text-secondary);
}

.event-time {
  color: #0f57d8;
  font-size: var(--type-sm);
  font-weight: 700;
}

.state {
  border-style: solid;
}

.state.error {
  border-color: #efb3b3;
  background: #fff5f5;
  color: #7e2a2a;
}

.panel-card {
  display: grid;
  gap: var(--space-3);
}

.panel-head {
  display: grid;
  gap: var(--space-1);
}

.panel-head h2 {
  margin: 0;
  font-size: var(--type-lg);
}

.field-wrap {
  display: grid;
  gap: var(--space-1);
  font-size: var(--type-sm);
  color: var(--text-secondary);
}

.stack-form,
.toggle-list,
.publish-box,
.score-rows {
  display: grid;
  gap: var(--space-2);
}

.login-form-layout {
  gap: 14px;
}

.login-submit-btn {
  width: 100%;
}

.login-social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6b7f9f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-social-divider::before,
.login-social-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #d7e0ef;
}

.login-social-divider span {
  padding: 0 2px;
}

.login-social-stack {
  display: grid;
  gap: 12px;
}

.login-social-btn {
  width: 100%;
  min-height: 56px;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 16px;
  border-color: #d7e0ef;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 36, 74, 0.06);
}

.login-social-btn:hover {
  border-color: #b8c8e3;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 36, 74, 0.1);
}

.login-social-btn-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-social-btn-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.login-social-btn-label {
  font-weight: 800;
  color: #1c2a44;
}

.login-legal-note {
  margin-top: 0;
  text-align: left;
}

.game-list {
  display: grid;
  gap: var(--space-2);
}

.game-row {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #ffffff;
  min-height: 58px;
  padding: var(--space-2) var(--space-3);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-2);
  text-align: left;
}

.game-row:hover {
  border-color: #9db8e6;
  background: #f7fbff;
}

.game-row.is-selected {
  border-color: #8eaee9;
  background: #eaf2ff;
}

.row-title {
  font-weight: 800;
  color: var(--text-primary);
}

.row-meta {
  font-size: var(--type-xs);
  color: var(--text-tertiary);
}

.badge {
  border-radius: 999px;
  min-height: 24px;
  padding: 2px 10px;
  display: inline-flex;
  align-items: center;
  font-size: var(--type-xs);
  font-weight: 800;
}

.badge.live {
  color: #0f7f4f;
  background: #def8ea;
}

.badge.draft {
  color: #925e00;
  background: #ffefcf;
}

.badge.maintenance {
  color: #8f2323;
  background: #ffe1e1;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-elevated);
  font-size: var(--type-sm);
  color: var(--text-secondary);
}

.toggle-item input {
  width: 20px;
  height: 20px;
}

.dev-topbar .btn,
.dev-actions .btn,
.publish-box .btn,
.score-row .btn {
  min-height: var(--btn-height);
}

@media (max-width: 760px) {
  .topbar {
    padding: var(--space-3);
  }

  .brand-set {
    gap: 12px;
  }

  .brand-logo-icon {
    height: 34px;
  }

   .brand-logo-text {
    height: 30px;
    transform: translateY(2px);
  }

  .search-wrap {
    min-width: 0;
  }

  .card-row {
    grid-auto-columns: calc((100% - var(--space-3)) / 2) !important;
  }

  .card-row > .game-card {
    min-width: 100%;
  }

  .home-discover-grid {
    grid-template-columns: 1fr;
  }

  .home-discover-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .home-discover-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .game-thumb {
    aspect-ratio: 1 / 1;
  }

  .game-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .btn,
  .mobile-chip,
  .chip {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  button,
  a,
  input,
  select,
  .nav-item,
  .chip,
  .mobile-chip,
  .game-row,
  .btn {
    transition: none;
  }
}


.kp-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.kp-auth-modal.hidden {
  display: none;
}

.kp-auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 30, 0.72);
  backdrop-filter: blur(2px);
}

.kp-auth-modal-card {
  position: absolute;
  top: 78px;
  right: 18px;
  width: min(420px, calc(100vw - 18px));
  max-height: calc(100vh - 96px);
  overflow: auto;
  border: 1px solid #d8e2f5;
  border-radius: 20px;
  background: #f9fbff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  padding: 14px;
}

.kp-auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.kp-auth-title {
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0b1426;
  font-family: var(--font-heading);
}

.kp-auth-modal-close {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid #d0d9ea;
  border-radius: 999px;
  background: #ffffff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
}

.kp-auth-modal-close::before,
.kp-auth-modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #1a2a45;
  transform-origin: center;
}

.kp-auth-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.kp-auth-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.kp-auth-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.kp-auth-segment-btn {
  min-height: var(--btn-height);
  border: 1px solid #d2dbec;
  border-radius: 13px;
  background: #f2f5fb;
  color: #1f2f48;
  font-weight: 800;
}

.kp-auth-segment-btn.is-active {
  background: linear-gradient(180deg, #111317 0%, #0a0d13 100%);
  color: #ffffff;
  border-color: #0a0d13;
}

.kp-auth-panel {
  margin-top: 4px;
}

.kp-auth-form {
  display: grid;
  gap: 8px;
}

.kp-auth-label {
  font-size: 13px;
  color: #1b2f4f;
  font-weight: 700;
}

.kp-auth-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd9eb;
  border-radius: 12px;
  background: #ffffff;
  color: #0d1a33;
  padding: 0 14px;
}

.kp-auth-password-wrap {
  position: relative;
}

.kp-auth-password-wrap .kp-auth-input {
  padding-right: 84px;
}

.kp-auth-pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #1a64dd;
  font-weight: 800;
  font-size: 13px;
}

.kp-auth-message {
  min-height: 18px;
  margin: 0;
  font-size: 13px;
}

.kp-auth-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.kp-auth-social {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.kp-auth-social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6b7f9f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kp-auth-social-divider::before,
.kp-auth-social-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #d7e0ef;
}

.kp-auth-social-divider span {
  padding: 0 2px;
}

.kp-auth-social-btn {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d7e0ef;
  border-radius: 14px;
  background: #ffffff;
  color: #16253d;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 16px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(15, 36, 74, 0.08);
}

.kp-auth-social-btn:hover {
  border-color: #b8c8e3;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 36, 74, 0.12);
  transform: translateY(-1px);
}

.kp-auth-social-btn-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kp-auth-social-btn-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.kp-auth-social-btn-label {
  font-weight: 800;
  color: #1c2a44;
}
.kp-auth-submit {
  min-height: 44px;
  border: 1px solid #0a0d13;
  border-radius: 12px;
  background: linear-gradient(180deg, #111317 0%, #090b10 100%);
  color: #ffffff;
  font-weight: 900;
}

.kp-auth-submit.kp-auth-submit--ko {
  border-color: #0f4ec4;
  background: linear-gradient(180deg, #1e67ea 0%, #0f4ec4 100%);
}

.kp-auth-submit:disabled,
.kp-auth-submit.kp-auth-submit--ko:disabled,
.kp-auth-secondary:disabled,
.kp-auth-social-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  pointer-events: none;
  filter: saturate(0.65);
}

.kp-auth-link {
  color: #1d5fd4;
  font-weight: 800;
  font-size: 13px;
}

.kp-auth-help {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  border: 0;
  background: transparent;
  padding: 0;
}

.kp-auth-help-text {
  font-size: 18px;
  font-weight: 800;
  color: #3e5478;
  line-height: 1.35;
}

.kp-auth-help-link {
  flex: 0 0 auto;
  min-height: 38px;
  border-radius: var(--btn-radius);
  font-size: 16px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.kp-auth-help-video {
  position: relative;
  border: 1px solid #c63d4d;
  background: linear-gradient(180deg, #14213d 0%, #0a1327 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(9, 19, 39, 0.28);
}

.kp-auth-help-video::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #ff5b6f;
  margin-right: 7px;
}

.kp-auth-help-video:hover {
  border-color: #ff6176;
  background: linear-gradient(180deg, #1a2a4b 0%, #0f1a33 100%);
}

.kp-auth-help--verify {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
  margin-top: 2px;
  margin-bottom: 6px;
}

.kp-auth-help--verify .kp-auth-help-text {
  font-size: 18px;
  line-height: 1.28;
}

.kp-auth-help-sub {
  font-size: 15px;
  line-height: 1.45;
  color: #334765;
}

.kp-auth-verify-email {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd9eb;
  border-radius: 12px;
  background: #eef3ff;
  color: #0d1a33;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  font-weight: 700;
  word-break: break-word;
}

#kp-auth-resend-verify {
  color: #1458d3;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#kp-auth-verify-panel .kp-auth-actions {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: stretch;
}

#kp-auth-verify-panel .kp-auth-secondary {
  width: 100%;
  white-space: nowrap;
  font-size: 13px;
  padding: 0 10px;
}
#kp-auth-resend-verify:hover {
  color: #0d46a8;
}

.kp-auth-legal {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #5a6f92;
}

.kp-auth-legal--compact {
  margin-top: 0;
  text-align: left;
}
.kp-auth-legal a {
  color: #1d5fd4;
  font-weight: 700;
}

.kp-auth-secondary {
  min-height: var(--btn-height);
  border: 1px solid var(--border-strong);
  border-radius: var(--btn-radius);
  background: #ffffff;
  color: var(--text-primary);
  font-weight: var(--btn-font-weight);
  padding: 0 var(--btn-pad-x);
}

.kp-auth-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 13px;
  color: #334765;
  border: 1px solid #dbe4f4;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f3f7ff;
}

.kp-auth-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.kp-legal-modal {
  position: absolute;
  inset: 0;
  z-index: 1250;
}

.kp-legal-modal.hidden {
  display: none;
}

.kp-legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 36, 0.6);
}

.kp-legal-card {
  position: absolute;
  top: clamp(16px, 2.2vw, 26px);
  right: clamp(14px, 2.6vw, 28px);
  width: min(940px, calc(100vw - 56px));
  height: calc(100vh - 52px);
  max-height: calc(100vh - 52px);
  border: 1px solid #d5e0f2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(6, 20, 46, 0.24);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.kp-legal-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid #e2e9f5;
  background: #f4f8ff;
}

.kp-legal-title {
  font-size: 18px;
  font-weight: 800;
  color: #11213e;
}

.kp-legal-close {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid #cdd9ee;
  border-radius: 999px;
  background: #ffffff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
}

.kp-legal-close::before,
.kp-legal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #1a2a45;
  transform-origin: center;
}

.kp-legal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.kp-legal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.kp-legal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

body.kp-auth-open {
  overflow: hidden;
}

.kp-reject-attn-modal {
  position: fixed;
  inset: 0;
  z-index: 1290;
}

.kp-reject-attn-modal.hidden {
  display: none;
}

.kp-reject-attn-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 34, 0.78);
  backdrop-filter: blur(2px);
}

.kp-reject-attn-card {
  position: absolute;
  right: 22px;
  top: 86px;
  width: min(460px, calc(100vw - 24px));
  border-radius: 18px;
  border: 1px solid #f2b2b2;
  background: linear-gradient(180deg, #fff5f5 0%, #ffeaea 100%);
  box-shadow: 0 24px 46px rgba(25, 18, 18, 0.38);
  padding: 18px 16px 16px;
  display: grid;
  gap: 10px;
}

.kp-reject-attn-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #8d1010;
}

.kp-reject-attn-lead {
  margin: 0;
  color: #7f1f1f;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.kp-reject-attn-note {
  margin: 0;
  border: 1px solid #efc0c0;
  border-radius: 12px;
  background: #fffdfd;
  color: #6d1313;
  padding: 12px 12px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  white-space: pre-wrap;
}

.kp-reject-attn-actions {
  display: flex;
  justify-content: flex-end;
}

.kp-reject-attn-ok {
  min-height: 44px;
  border: 1px solid #c52a2a;
  border-radius: 12px;
  background: linear-gradient(180deg, #ea3b3b 0%, #bf1f1f 100%);
  color: #ffffff;
  font-weight: 900;
  padding: 0 16px;
  white-space: nowrap;
}

.kp-reject-attn-ok:hover {
  filter: brightness(1.04);
}

@media (max-width: 760px) {
  .kp-reject-attn-card {
    left: 10px;
    right: 10px;
    top: 16px;
    width: auto;
  }
}

@media (max-width: 760px) {
  .kp-auth-modal-card {
    top: 12px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 24px);
  }

  .kp-auth-title {
    font-size: 24px;
  }

  .kp-legal-card {
    top: 10px;
    right: 8px;
    width: calc(100vw - 16px);
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 12px;
  }

  .kp-legal-head {
    min-height: 48px;
    padding: 0 10px;
  }
  .kp-legal-title {
    font-size: 16px;
  }
}







































.profile-main .profile-muted {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: var(--type-sm);
}

.profile-inline-msg {
  margin: 0;
  min-height: 18px;
  font-size: var(--type-sm);
  color: var(--text-secondary);
}

.profile-textarea {
  min-height: 110px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 12px;
}

.profile-list {
  display: grid;
  gap: var(--space-2);
}

.profile-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  padding: var(--space-3);
  display: grid;
  gap: var(--space-2);
}

.profile-item p {
  margin: 0;
}

.profile-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--type-xs);
}

.profile-item-head strong {
  color: var(--text-primary);
  font-size: var(--type-sm);
}

.profile-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.profile-item-actions .btn {
  min-height: var(--btn-height);
  padding: 0 var(--btn-pad-x);
}

.profile-amount {
  font-family: var(--font-heading);
  color: #0f57d8;
}

.profile-ticket {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #ffffff;
  min-height: 56px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.profile-ticket.is-active {
  border-color: #8eaee9;
  background: #eaf2ff;
}

.profile-ticket strong {
  color: var(--text-primary);
}

.profile-ticket span {
  color: var(--text-secondary);
  font-size: var(--type-xs);
  font-weight: 700;
}
.topbar .auth-actions {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.topbar .auth-actions > .btn.primary {
  min-height: var(--btn-height);
  border: 1px solid var(--accent-primary);
  background: linear-gradient(180deg, #2a67cc 0%, var(--accent-primary) 100%);
  color: #ffffff;
  border-radius: var(--btn-radius);
  font-weight: var(--btn-font-weight);
  padding: 0 var(--btn-pad-x);
}

.topbar .auth-actions > .btn.primary:hover {
  border-color: var(--accent-primary-strong);
  background: linear-gradient(180deg, #1f58be 0%, var(--accent-primary-strong) 100%);
  color: #ffffff;
}

.topbar .topbar-coin-entry {
  min-height: var(--btn-height);
  border-radius: var(--btn-radius);
  border: 1px solid rgba(214, 161, 22, 0.92);
  background: linear-gradient(180deg, #ffd95f 0%, #f4bf24 100%);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  font-size: var(--btn-font-size);
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 18px rgba(171, 118, 14, 0.18);
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease, filter var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

.topbar .topbar-coin-entry:hover {
  border-color: rgba(177, 126, 12, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 26px rgba(171, 118, 14, 0.22);
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.topbar .topbar-coin-entry:focus-visible {
  outline: 2px solid rgba(214, 161, 22, 0.4);
  outline-offset: 2px;
}

.topbar .topbar-coin-entry__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  flex: 0 0 auto;
}

.topbar .topbar-coin-entry__icon img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: cover;
  transform: scale(1.08);
}

.topbar .kp-topbar-user {
  min-height: var(--btn-height);
  border-radius: var(--btn-radius);
  border: 1px solid rgba(125, 146, 184, 0.62);
  background: linear-gradient(180deg, rgba(14, 28, 56, 0.96) 0%, rgba(10, 22, 46, 0.96) 100%);
  color: #f4f8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 210px;
  font-size: var(--type-sm);
  font-weight: var(--btn-font-weight);
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(6, 16, 34, 0.28);
  transition: border-color var(--motion-fast) ease, filter var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.topbar .kp-topbar-user:hover {
  border-color: rgba(158, 184, 230, 0.82);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.topbar .kp-topbar-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  line-height: 1;
  padding: 0;
  background: linear-gradient(135deg, #4a7df0 0%, #2d5ecf 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(29, 73, 168, 0.36);
}

.topbar .kp-topbar-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 130px;
  font-size: inherit;
  font-weight: inherit;
}

@media (max-width: 760px) {
  .topbar .kp-topbar-user,
  .topbar .topbar-coin-entry,
  .topbar .auth-actions > .btn.primary {
    min-height: calc(var(--btn-height) - 2px);
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    row-gap: var(--space-2);
    column-gap: var(--space-2);
  }

  .topbar .brand-wrap {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
  }



  .topbar #kp-developer-link {
    min-width: 0;
    justify-self: stretch;
    align-self: stretch;
    margin: 0;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .topbar .topbar-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-left: 0;
    width: 100%;
    min-width: 0;
    display: block;
    justify-self: stretch;
  }
  .topbar .auth-actions {
    margin-left: 0;
    width: 100%;
    min-width: 0;
    display: flex;
    gap: var(--space-2);
    align-items: stretch;
    flex: 1 1 auto;
  }

  .topbar .auth-actions > * {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
  }

  .topbar .auth-actions > .btn,
  .topbar .auth-actions > .kp-topbar-user {
    justify-content: center;
  }

  .topbar .topbar-coin-entry {
    width: 100%;
    justify-content: center;
    margin-bottom: var(--space-2);
  }

  .topbar .kp-topbar-user {
    max-width: none;
    padding: 0 12px;
  }

  .topbar .kp-topbar-user-name {
    max-width: calc(100% - 30px);
  }
  .mobile-bottom-cta {
    display: grid;
  }

  .mobile-bottom-cta.kp-notifications-cta[data-kp-cta-visible="1"] {
    display: grid !important;
  }
}

























@media (max-width: 760px) {
  .reaction-row {
    gap: 4px;
  }

  .vote-icon-btn {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .vote-icon {
    width: 16px;
    height: 16px;
  }
}

.kp-mobile-quickdrawer {
  display: none;
}

@media (max-width: 760px) {
  .kp-mobile-quickdrawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1300;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion-fast) ease;
  }

  .kp-mobile-quickdrawer.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .kp-mobile-quickdrawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 17, 34, 0.42);
    opacity: 0;
    transition: opacity var(--motion-fast) ease;
  }

  .kp-mobile-quickdrawer.is-open .kp-mobile-quickdrawer-backdrop {
    opacity: 1;
  }

  .kp-mobile-quickdrawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 360px);
    border-right: 1px solid rgba(140, 166, 207, 0.45);
    background: linear-gradient(180deg, rgba(246, 249, 255, 0.36) 0%, rgba(237, 243, 255, 0.32) 100%);
    backdrop-filter: blur(14px);
    box-shadow: 18px 0 34px rgba(10, 22, 46, 0.22);
    transform: translateX(-100%);
    transition: transform var(--motion-fast) ease;
    padding: 16px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
  }

  .kp-mobile-quickdrawer.is-open .kp-mobile-quickdrawer-panel {
    transform: translateX(0);
  }

  .kp-mobile-quickdrawer-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
  }

  .kp-mobile-quickdrawer-title {
    font-family: var(--font-heading);
    font-size: clamp(19px, 5.2vw, 23px);
    letter-spacing: -0.01em;
    color: #0e2144;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .kp-mobile-quickdrawer-nav {
    display: grid;
    align-content: start;
    gap: var(--space-2);
  }

  .kp-mobile-quickdrawer-item {
    min-height: 48px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: clamp(19px, 5.2vw, 23px);
    background: transparent;
  }

  .kp-mobile-quickdrawer-item:hover {
    background: rgba(244, 248, 255, 0.72);
    border-color: rgba(208, 222, 242, 0.8);
  }

  .kp-mobile-quickdrawer-item-danger {
    color: #c1121f;
  }

  .kp-mobile-quickdrawer-item-danger:hover {
    background: rgba(255, 242, 242, 0.8);
    border-color: rgba(239, 193, 193, 0.84);
  }

  .kp-mobile-quickdrawer-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    flex: 0 0 auto;
  }

  .kp-mobile-quickdrawer-item-danger .kp-mobile-quickdrawer-icon {
    color: #c1121f;
  }

  .kp-mobile-quickdrawer-icon-svg {
    width: 27px;
    height: 27px;
    display: block;
    stroke-width: 2.8px;
  }

  .kp-mobile-quickdrawer-icon--coin {
    border-radius: 999px;
    background: rgba(255, 221, 96, 0.26);
    overflow: hidden;
    color: #b7791f;
  }

  .kp-mobile-quickdrawer-coin-img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: cover;
    transform: scale(1.08);
  }

  body.kp-mobile-quickdrawer-open {
    overflow: hidden;
  }
}

.kp-topbar-coin-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 22px;
}

.kp-topbar-coin-modal.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.kp-topbar-coin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 15, 31, 0.56);
  backdrop-filter: blur(10px);
}

.kp-topbar-coin-modal__dialog {
  position: relative;
  width: min(760px, 100%);
}

.kp-topbar-coin-modal__panel {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(189, 210, 235, 0.72);
  background:
    radial-gradient(circle at top right, rgba(255, 227, 147, 0.26), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
  box-shadow: 0 28px 70px rgba(8, 17, 34, 0.22);
  padding: 28px;
  color: #152238;
}

.kp-topbar-coin-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.kp-topbar-coin-modal__head-copy {
  min-width: 0;
}

.kp-topbar-coin-modal__eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(25, 77, 170, 0.82);
  font-weight: 800;
}

.kp-topbar-coin-modal__title {
  margin: 8px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.kp-topbar-coin-modal__subtitle {
  margin: 10px 0 0;
  color: rgba(53, 69, 98, 0.88);
  font-size: 14px;
  line-height: 1.55;
}

.kp-topbar-coin-modal__close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(186, 199, 222, 0.88);
  background: rgba(255, 255, 255, 0.88);
  color: #14213d;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--motion-fast) ease, transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.kp-topbar-coin-modal__close:hover {
  border-color: rgba(143, 171, 215, 0.95);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.kp-topbar-coin-step {
  display: none;
}

.kp-topbar-coin-step.is-active {
  display: grid;
  gap: 16px;
}

.kp-topbar-coin-step--done {
  text-align: center;
  justify-items: center;
}

.kp-topbar-coin-message {
  min-height: 20px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(53, 69, 98, 0.82);
}

.kp-topbar-coin-message.is-error {
  color: #b42318;
}

.kp-topbar-coin-message.is-success {
  color: #0f766e;
}

.kp-topbar-coin-packages {
  display: grid;
  gap: 12px;
}

.kp-topbar-coin-pack {
  width: 100%;
  border: 1px solid rgba(196, 210, 231, 0.86);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #152238;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.kp-topbar-coin-pack:hover,
.kp-topbar-coin-pack.is-selected {
  border-color: rgba(216, 161, 27, 0.92);
  box-shadow: 0 16px 32px rgba(21, 34, 56, 0.1);
  transform: translateY(-1px);
}

.kp-topbar-coin-pack--static {
  cursor: default;
}

.kp-topbar-coin-pack__main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.kp-topbar-coin-pack__media {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(22, 34, 57, 0.06);
  display: grid;
  place-items: center;
}

.kp-topbar-coin-pack__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kp-topbar-coin-pack__fallback {
  font-size: 20px;
  font-weight: 900;
  color: rgba(21, 34, 56, 0.52);
}

.kp-topbar-coin-pack__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.kp-topbar-coin-pack__title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.kp-topbar-coin-pack__meta {
  color: rgba(70, 86, 116, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.kp-topbar-coin-pack__price {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 900;
  color: #0f4bb3;
}

.kp-topbar-coin-empty {
  border: 1px dashed rgba(191, 206, 228, 0.9);
  border-radius: 22px;
  padding: 18px;
  text-align: center;
  color: rgba(53, 69, 98, 0.76);
  background: rgba(250, 252, 255, 0.85);
}

.kp-topbar-coin-transfer {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(209, 220, 239, 0.92);
  background: rgba(248, 251, 255, 0.92);
  color: rgba(32, 46, 74, 0.92);
  line-height: 1.55;
}

.kp-topbar-coin-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kp-topbar-coin-info-card {
  border: 1px solid rgba(209, 220, 239, 0.92);
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.92);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.kp-topbar-coin-info-card__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(25, 77, 170, 0.72);
}

.kp-topbar-coin-info-card__value {
  font-size: 15px;
  font-weight: 800;
  color: #152238;
  word-break: break-word;
}

.kp-topbar-coin-copy {
  border: 1px solid rgba(196, 210, 231, 0.92);
  background: rgba(255, 255, 255, 0.96);
  color: #214b9a;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.kp-topbar-coin-form {
  display: grid;
  gap: 12px;
}

.kp-topbar-coin-field__label {
  font-size: 13px;
  font-weight: 800;
  color: rgba(32, 46, 74, 0.92);
}

.kp-topbar-coin-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.kp-topbar-coin-upload__input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.kp-topbar-coin-upload__name {
  font-size: 13px;
  color: rgba(53, 69, 98, 0.82);
}

.kp-topbar-coin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.kp-topbar-coin-actions--end {
  margin-top: 4px;
}

.kp-topbar-coin-done-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(28, 180, 105, 0.16) 0%, rgba(18, 140, 84, 0.2) 100%);
  color: #0f766e;
  font-size: 34px;
  font-weight: 900;
}

.kp-topbar-coin-done-text {
  margin: 0;
  max-width: 44ch;
  color: rgba(32, 46, 74, 0.92);
  line-height: 1.6;
}

.kp-topbar-coin-done-text--subtle {
  color: rgba(70, 86, 116, 0.82);
}

body.kp-topbar-coin-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .topbar {
    transition: transform .24s ease, opacity .2s ease;
    will-change: transform, opacity;
  }

  .topbar.kp-mobile-header-hidden {
    transform: translateY(calc(-100% - 18px));
    opacity: 0;
    pointer-events: none;
  }

  .topbar.kp-mobile-home-header {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
  }

  .topbar.kp-mobile-home-header .brand-wrap {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    justify-content: center;
    margin: 0 auto;
  }

  .topbar.kp-mobile-home-header .brand-set {
    justify-content: center;
    gap: 12px;
  }

  .topbar.kp-mobile-home-header .brand-logo-icon {
    height: 34px;
  }

  .topbar.kp-mobile-home-header .brand-logo-text {
    height: 30px;
  }

  .kp-mobile-menu-trigger {
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(125, 146, 184, 0.72);
    background: linear-gradient(180deg, rgba(14, 28, 56, 0.92) 0%, rgba(10, 22, 46, 0.92) 100%);
    color: #f4f8ff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(6, 16, 34, 0.28);
    padding: 0;
  }

  .kp-mobile-topbar-coin {
    grid-column: 3;
    grid-row: 1;
    position: relative;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    overflow: visible;
    border: 1px solid rgba(250, 204, 21, 0.48);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(83, 56, 9, 0.98) 0%, rgba(36, 23, 5, 0.98) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 24px rgba(120, 53, 15, 0.28), 0 0 0 1px rgba(245, 158, 11, 0.08);
  }

  .kp-mobile-topbar-coin::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 24%, rgba(255, 247, 204, 0.34) 0%, rgba(255, 247, 204, 0) 42%), linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
  }

  .kp-mobile-topbar-coin__glow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .kp-mobile-topbar-coin__img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(251, 191, 36, 0.38));
  }

  .kp-mobile-topbar-coin__plus {
    position: absolute;
    right: -5px;
    bottom: -5px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(252, 211, 77, 0.42);
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.98) 0%, rgba(245, 158, 11, 0.98) 100%);
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(120, 53, 15, 0.26);
  }

  .kp-mobile-topbar-coin:active {
    transform: translateY(1px) scale(0.98);
  }

  .topbar.kp-mobile-home-header #kp-developer-link,
  .topbar.kp-mobile-home-auth .topbar-actions,
  .topbar.kp-mobile-home-header:not(.kp-mobile-home-auth) #kpTopbarCoinAction {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .kp-topbar-coin-modal {
    padding: 12px;
  }

  .kp-topbar-coin-modal__panel {
    padding: 18px;
    border-radius: 24px;
  }

  .kp-topbar-coin-modal__head {
    gap: 14px;
  }

  .kp-topbar-coin-modal__title {
    font-size: clamp(24px, 7vw, 30px);
  }

  .kp-topbar-coin-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kp-topbar-coin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kp-topbar-coin-actions > .btn:first-child:last-child {
    grid-column: 1 / -1;
  }

  .kp-topbar-coin-actions > .btn {
    width: 100%;
    justify-content: center;
  }

  .kp-topbar-coin-upload {
    align-items: flex-start;
  }
}











.kp-mobile-portrait-guard {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #050c18;
}

.kp-mobile-portrait-guard.is-visible {
  display: flex;
}

.kp-mobile-portrait-guard-card {
  width: min(520px, calc(100vw - 36px));
  border: 1px solid rgba(169, 190, 226, 0.52);
  border-radius: 18px;
  background: linear-gradient(180deg, #12203a 0%, #0b1426 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38);
  padding: 18px 16px;
  display: grid;
  gap: 10px;
  text-align: center;
}

.kp-mobile-portrait-guard-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(176, 197, 230, 0.5);
  background: rgba(13, 24, 44, 0.95);
  display: grid;
  place-items: center;
}

.kp-mobile-portrait-guard-phone {
  position: relative;
  width: 20px;
  height: 32px;
  border: 2px solid #dbe7ff;
  border-radius: 6px;
  transform: rotate(0deg);
}

.kp-mobile-portrait-guard-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: #dbe7ff;
}

.kp-mobile-portrait-guard-title {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(21px, 6.6vw, 28px);
  letter-spacing: -0.01em;
}

.kp-mobile-portrait-guard-text {
  margin: 0;
  color: #d9e7ff;
  font-size: clamp(14px, 4.1vw, 18px);
  line-height: 1.45;
}

body.kp-mobile-portrait-locked {
  overflow: hidden;
}

.kp-a2hs-modal {
  position: fixed;
  inset: 0;
  z-index: 1880;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-fast) ease;
}

.kp-a2hs-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.kp-a2hs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 32, 0.72);
  backdrop-filter: blur(3px);
}

.kp-a2hs-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(430px, calc(100vw - 18px));
  max-height: calc(100dvh - 18px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(182, 202, 235, 0.78);
  background:
    radial-gradient(circle at top right, rgba(74, 144, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(239, 246, 255, 0.98) 100%);
  box-shadow: 0 26px 56px rgba(8, 20, 44, 0.24);
  padding: 16px;
  display: grid;
  gap: 12px;
  scrollbar-width: thin;
}

.kp-a2hs-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kp-a2hs-head-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.kp-a2hs-eyebrow {
  margin: 0;
  color: #2458a8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kp-a2hs-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(22px, 7vw, 30px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #101f3b;
}

.kp-a2hs-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(177, 195, 225, 0.88);
  background: rgba(255, 255, 255, 0.92);
  color: #17325f;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.kp-a2hs-close:hover {
  border-color: rgba(127, 156, 204, 0.96);
  box-shadow: 0 10px 18px rgba(17, 37, 72, 0.1);
  transform: translateY(-1px);
}

.kp-a2hs-text,
.kp-a2hs-note {
  margin: 0;
  color: #274164;
  line-height: 1.45;
}

.kp-a2hs-text {
  font-size: 14px;
}

.kp-a2hs-note {
  font-size: 12px;
  color: #35608f;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(162, 187, 222, 0.56);
  background: rgba(241, 247, 255, 0.92);
}

.kp-a2hs-stage {
  display: grid;
  gap: 10px;
}

.kp-a2hs-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kp-a2hs-choice-card {
  width: 100%;
  border: 1px solid rgba(182, 202, 235, 0.76);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  display: grid;
  gap: 10px;
  text-align: left;
  color: #132849;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.kp-a2hs-choice-card:hover {
  border-color: rgba(83, 127, 196, 0.92);
  box-shadow: 0 14px 22px rgba(16, 35, 69, 0.1);
  transform: translateY(-1px);
}

.kp-a2hs-choice-visual,
.kp-a2hs-guide-visual {
  position: relative;
  min-height: 76px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(173, 196, 232, 0.72);
  background: linear-gradient(180deg, rgba(225, 236, 255, 0.96) 0%, rgba(244, 248, 255, 0.96) 100%);
}

.kp-a2hs-choice-card--ios .kp-a2hs-choice-visual,
.kp-a2hs-card[data-device="ios"] .kp-a2hs-guide-visual {
  background:
    radial-gradient(circle at top left, rgba(84, 149, 255, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(227, 237, 255, 0.98) 0%, rgba(243, 248, 255, 0.98) 100%);
}

.kp-a2hs-choice-card--android .kp-a2hs-choice-visual,
.kp-a2hs-card[data-device="android"] .kp-a2hs-guide-visual {
  background:
    radial-gradient(circle at top right, rgba(111, 190, 129, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(232, 247, 236, 0.98) 0%, rgba(245, 251, 245, 0.98) 100%);
}

.kp-a2hs-device-logo {
  position: absolute;
  left: 14px;
  bottom: 10px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: none;
}

.kp-a2hs-choice-badge,
.kp-a2hs-guide-badge,
.kp-a2hs-guide-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.kp-a2hs-choice-badge,
.kp-a2hs-guide-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid rgba(152, 177, 218, 0.82);
  background: rgba(255, 255, 255, 0.9);
  color: #234d8e;
}

.kp-a2hs-choice-copy,
.kp-a2hs-step-copy,
.kp-a2hs-guide-summary {
  display: grid;
  gap: 4px;
}

.kp-a2hs-choice-title,
.kp-a2hs-step-title {
  font-size: 14px;
  font-weight: 800;
  color: #132849;
}

.kp-a2hs-choice-text,
.kp-a2hs-step-note,
.kp-a2hs-guide-summary-text {
  font-size: 12px;
  color: #476382;
  line-height: 1.45;
}

.kp-a2hs-guide-hero {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.kp-a2hs-guide-chip {
  justify-self: start;
  border: 1px solid rgba(166, 189, 224, 0.82);
  background: rgba(255, 255, 255, 0.92);
  color: #1f4f93;
}

.kp-a2hs-steps {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.kp-a2hs-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(183, 204, 236, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.kp-a2hs-step-index {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(36, 91, 182, 0.16) 0%, rgba(36, 91, 182, 0.28) 100%);
  color: #1f4f93;
  font-size: 15px;
  font-weight: 900;
}

.kp-a2hs-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #253a59;
  font-size: 13px;
}

.kp-a2hs-check input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.kp-a2hs-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.kp-a2hs-actions.is-single {
  grid-template-columns: 1fr;
}

.kp-a2hs-actions .btn {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}

.kp-a2hs-actions [hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .kp-a2hs-card {
    width: calc(100vw - 14px);
    max-height: calc(100dvh - 12px);
    padding: 14px;
    gap: 10px;
  }

  .kp-a2hs-choice-grid {
    grid-template-columns: 1fr;
  }

  .kp-a2hs-choice-card {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .kp-a2hs-choice-visual,
  .kp-a2hs-guide-visual {
    min-height: 74px;
    border-radius: 16px;
  }

  .kp-a2hs-device-logo {
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
  }

  .kp-a2hs-guide-hero {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
  }

  .kp-a2hs-step {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 10px;
  }

  .kp-a2hs-step-index {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

/* Mobile topbar override: full-width, no card background, smooth page-synced upward scroll */
@media (max-width: 760px) {
  .topbar {
    border-radius: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(166, 187, 221, 0.6) !important;
    background: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: calc(env(safe-area-inset-top) + 10px) 5% 10px !important;
    transform: translateY(calc(-1 * var(--kp-mobile-scroll-shift, 0px)));
    transition: opacity .22s ease, filter .22s ease;
    will-change: transform, opacity, filter;
  }

  .topbar.kp-mobile-header-hidden {
    opacity: 1;
    filter: none;
    pointer-events: auto;
  }

  .topbar.kp-mobile-home-header {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
  }

  .topbar.kp-mobile-home-header .brand-wrap {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    justify-content: center;
    margin: 0 auto;
  }

  .topbar.kp-mobile-home-header .brand-set {
    justify-content: center;
    gap: 12px;
  }

  .topbar.kp-mobile-home-header .brand-logo-icon {
    height: 34px;
  }

  .topbar.kp-mobile-home-header .brand-logo-text {
    height: 30px;
  }

  .kp-mobile-menu-trigger {
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(125, 146, 184, 0.72);
    background: linear-gradient(180deg, rgba(14, 28, 56, 0.92) 0%, rgba(10, 22, 46, 0.92) 100%);
    color: #f4f8ff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(6, 16, 34, 0.28);
    padding: 0;
  }

  .kp-mobile-topbar-coin {
    grid-column: 3;
    grid-row: 1;
    position: relative;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    overflow: visible;
    border: 1px solid rgba(250, 204, 21, 0.48);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(83, 56, 9, 0.98) 0%, rgba(36, 23, 5, 0.98) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 24px rgba(120, 53, 15, 0.28), 0 0 0 1px rgba(245, 158, 11, 0.08);
  }

  .kp-mobile-topbar-coin::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 24%, rgba(255, 247, 204, 0.34) 0%, rgba(255, 247, 204, 0) 42%), linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
  }

  .kp-mobile-topbar-coin__glow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .kp-mobile-topbar-coin__img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(251, 191, 36, 0.38));
  }

  .kp-mobile-topbar-coin__plus {
    position: absolute;
    right: -5px;
    bottom: -5px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(252, 211, 77, 0.42);
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.98) 0%, rgba(245, 158, 11, 0.98) 100%);
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(120, 53, 15, 0.26);
  }

  .kp-mobile-topbar-coin:active {
    transform: translateY(1px) scale(0.98);
  }

  .topbar.kp-mobile-home-header #kp-developer-link,
  .topbar.kp-mobile-home-auth .topbar-actions,
  .topbar.kp-mobile-home-header:not(.kp-mobile-home-auth) #kpTopbarCoinAction {
    display: none !important;
  }
}

/* Mobile visual override: white page and soft card body gradient */
@media (max-width: 760px) {
  html,
  body,
  .app-shell,
  .content-shell {
    background: #ffffff;
  }

  body,
  .app-shell,
  .content-shell {
    min-height: 100dvh;
  }

  .game-card .game-body {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  }
}

.kp-brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.kp-brand-wordmark .kp-brand-sep {
  display: inline-block;
  font-size: 1.16em;
  line-height: 0.86;
  margin-inline: -0.01em;
  transform: translateY(0.02em);
}

@media (max-width: 760px) {
  .kp-brand-wordmark {
    letter-spacing: -0.035em;
  }

  .kp-brand-wordmark .kp-brand-sep {
    font-size: 1.28em;
    line-height: 0.78;
    margin-left: -0.055em;
    margin-right: -0.04em;
    transform: translateY(0.045em);
  }
}


