/* ════════════════════════════════════════════════════════════════════════
 * Min Konto — player-portal account page redesign (2026-05-02)
 * Vanilla CSS (no build step). All classes prefixed `mk-` to avoid
 * collisions with profile.js / spillvett.js / lobby.js.
 * Design tokens mirror COLORS-konstant fra min-konto.jsx (line 4-18).
 * ════════════════════════════════════════════════════════════════════════ */

:root {
  --mk-bg-top: #5a1318;
  --mk-bg-mid: #3d0d11;
  --mk-bg-bot: #2a0a0d;
  --mk-card: #f7eedd;
  --mk-card-active: #efe1c9;
  --mk-ink: #2a1a0e;
  --mk-ink-soft: #6a4a3a;
  --mk-divider: rgba(42, 26, 14, 0.08);
  --mk-outline: rgba(247, 238, 221, 0.10);
  --mk-gold-line: #d4a64a;
  --mk-vip-bg: #3a1410;
  --mk-vip-border: #7a4a1e;
  --mk-vip-text: #f4d99a;
  --mk-card-soft: rgba(247, 238, 221, 0.55);
  --mk-card-mute: rgba(247, 238, 221, 0.7);
}

/* ── Overlay layering ─────────────────────────────────────────────────── */
/* z-index 10800 sits above profile-overlay (5000), info-overlay (6000),
 * spillregnskap-view (10500), and matches/overrides candy-overlay (10000),
 * but stays below mandatory-pause-modal (99999) and the login-overlay
 * (10000) so unauthenticated users can't bypass login by triggering Min
 * Konto. The compliance-critical mandatory-pause modal must always win. */
.mk-overlay {
  position: fixed;
  inset: 0;
  z-index: 10800;
  display: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mk-overlay.is-open {
  display: block;
}

.mk-screen {
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 80% at 50% 0%, var(--mk-bg-top) 0%, var(--mk-bg-mid) 45%, var(--mk-bg-bot) 100%);
  padding: 18px 22px 32px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--mk-card);
  transform: translateX(0);
}

.mk-gold-strip {
  position: absolute;
  top: 8px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--mk-gold-line) 30%, var(--mk-gold-line) 70%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.mk-account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 4px 18px;
}

.mk-account-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.mk-account-kallenavn {
  font-size: 12.5px;
  color: var(--mk-card-mute);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.mk-account-kallenavn strong {
  font-weight: 700;
  color: var(--mk-card);
}

.mk-saldo-label {
  font-size: 12px;
  color: var(--mk-card-soft);
  margin-top: 10px;
  font-weight: 500;
}

.mk-saldo-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 2px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mk-saldo-value .mk-saldo-suffix {
  font-size: 16px;
  font-weight: 600;
  margin-left: 4px;
  color: var(--mk-card-mute);
}

.mk-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1.5px solid rgba(247, 238, 221, 0.25);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--mk-card);
  flex-shrink: 0;
  font-family: inherit;
  /* Master design (line 287-292): close button has slight top margin so
   * its visual centre aligns with the player's name baseline rather than
   * the top of the header block. */
  margin-top: 4px;
}

.mk-icon-btn:hover {
  background: rgba(247, 238, 221, 0.06);
}

/* ── Pills ────────────────────────────────────────────────────────────── */
.mk-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

/* Master design: pills are content-width, NOT stretched (no flex:1).
 * Two pills sit side-by-side with 10px gap. */
.mk-pill {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(247, 238, 221, 0.25);
  background: transparent;
  color: var(--mk-card);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  font-family: inherit;
}

.mk-pill:hover {
  background: rgba(247, 238, 221, 0.06);
}

.mk-pill:active {
  background: rgba(247, 238, 221, 0.12);
}

/* ── Hall info card ───────────────────────────────────────────────────── */
.mk-hall-card {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--mk-outline);
  border-radius: 12px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mk-hall-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mk-hall-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--mk-card-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mk-hall-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mk-card);
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}

.mk-hall-divider {
  height: 1px;
  background: rgba(247, 238, 221, 0.08);
}

.mk-limit-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mk-limit-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(247, 238, 221, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.mk-limit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mk-limit-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(247, 238, 221, 0.64);
  letter-spacing: 0;
}

.mk-limit-total {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(247, 238, 221, 0.55);
  font-variant-numeric: tabular-nums;
  min-width: 0;
  text-align: right;
}

.mk-limit-total b {
  color: var(--mk-card);
  font-weight: 700;
}

.mk-limit-big {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mk-limit-number {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mk-card);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: 0;
}

.mk-limit-unit {
  font-size: 13px;
  font-weight: 500;
  color: rgba(247, 238, 221, 0.55);
  white-space: nowrap;
}

.mk-limit-tag {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(70, 213, 134, 0.12);
  color: #46d586;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mk-limit-tag.is-warning {
  background: rgba(240, 181, 74, 0.13);
  color: #f0b54a;
}

.mk-limit-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(247, 238, 221, 0.10);
  overflow: hidden;
}

.mk-limit-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3fcf7d, #46d586);
}

.mk-limit-bar i.is-warning {
  background: linear-gradient(90deg, #e7a93f, #f0b54a);
}

/* Hall-velger dropdown i Min Konto — gjenbruker .hall-dd-designet fra
   shell-headeren (definert i index.html sin \3c style>), men:
   - full bredde i hall-kortet (selector fyller kortet),
   - absolutt-posisjonert meny (game-bar «overflow:hidden»-fix-trikset med
     position:fixed trengs ikke her; .mk-screen har dessuten en transform som
     ville brutt fixed-koordinatene). */
.mk-hall-card .hall-dd { width: 100%; }
.mk-hall-card .hall-dd-selector { min-width: 0; max-width: none; width: 100%; }
.hall-dd--abs .hall-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: auto;
}

/* ── Menu group ───────────────────────────────────────────────────────────
 * Master design uses ONE combined menu group containing both Konto-items
 * AND Spillvett-items, with no SectionLabel between them.
 * (See min-konto.jsx line 2526: <MenuGroup items={[...kontoItems, ...spillevettItems]} />) */
.mk-menu-group {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--mk-outline);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 18px;
}

.mk-menu-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  background: transparent;
  border-bottom: 1px solid rgba(247, 238, 221, 0.08);
  cursor: pointer;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  text-align: left;
  color: var(--mk-card);
  font-family: inherit;
}

.mk-menu-row:last-child {
  border-bottom: none;
}

.mk-menu-row:hover {
  background: rgba(247, 238, 221, 0.06);
}

.mk-menu-row.is-active {
  background: rgba(247, 238, 221, 0.06);
}

.mk-menu-row.is-active .mk-menu-label {
  font-weight: 700;
}

.mk-menu-label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--mk-card);
  letter-spacing: -0.005em;
}

.mk-menu-row .mk-chev {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}

.mk-section-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(247, 238, 221, 0.5);
  letter-spacing: 0.02em;
  margin: 24px 4px 10px;
  text-transform: none;
}

/* ── Logout button ────────────────────────────────────────────────────── */
.mk-logout {
  margin-top: 18px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--mk-outline);
  color: var(--mk-card);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}

.mk-logout:hover {
  background: rgba(247, 238, 221, 0.06);
}

/* ── Sub-screen (modal full-screen) ───────────────────────────────────── */
.mk-subscreen {
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 80% at 50% 0%, var(--mk-bg-top) 0%, var(--mk-bg-mid) 45%, var(--mk-bg-bot) 100%);
  padding: 22px 22px 28px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 60;
  box-sizing: border-box;
  animation: mk-fade-in 0.18s ease-out;
}

.mk-subscreen.is-open {
  display: flex;
}

@keyframes mk-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mk-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 18px;
  gap: 12px;
}

.mk-sub-back {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid rgba(247, 238, 221, 0.25);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--mk-card);
  font-family: inherit;
}

.mk-sub-back:hover {
  background: rgba(247, 238, 221, 0.06);
}

.mk-sub-title {
  flex: 1;
  font-size: 19px;
  font-weight: 700;
  color: var(--mk-card);
  letter-spacing: -0.015em;
  text-align: center;
  margin-right: 36px;
}

.mk-sub-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Centered confirmation layouts ────────────────────────────────────── */
.mk-confirm-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 8px 40px;
}

.mk-warning-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 2px solid var(--mk-gold-line);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(247, 238, 221, 0.06);
  color: var(--mk-card);
}

.mk-confirm-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--mk-card);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
  max-width: 320px;
}

.mk-confirm-text {
  font-size: 14px;
  color: var(--mk-card-mute);
  line-height: 1.5;
  max-width: 300px;
  margin-bottom: 32px;
}

.mk-confirm-text strong {
  font-weight: 700;
  color: var(--mk-card);
}

.mk-action-btn {
  width: 100%;
  max-width: 320px;
  padding: 15px 24px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--mk-outline);
  color: var(--mk-card);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  margin-bottom: 14px;
  font-family: inherit;
}

.mk-action-btn:disabled {
  background: rgba(247, 238, 221, 0.04);
  color: rgba(247, 238, 221, 0.3);
  cursor: not-allowed;
}

.mk-action-btn:hover:not(:disabled) {
  background: rgba(247, 238, 221, 0.06);
}

.mk-action-btn--danger {
  background: linear-gradient(180deg, #b91c1c 0%, #ef4444 100%);
  border-color: rgba(247, 238, 221, 0.18);
}

.mk-action-btn--danger:hover:not(:disabled) {
  filter: brightness(1.05);
}

.mk-link-btn {
  background: transparent;
  border: none;
  color: rgba(247, 238, 221, 0.6);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  font-family: inherit;
}

.mk-link-btn:hover {
  color: var(--mk-card);
}

/* ── Form inputs ──────────────────────────────────────────────────────── */
.mk-input {
  width: 100%;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(247, 238, 221, 0.25);
  background: rgba(0, 0, 0, 0.25);
  font-size: 15px;
  font-family: inherit;
  color: var(--mk-card);
  font-weight: 600;
  margin-bottom: 22px;
  text-align: center;
  color-scheme: dark;
  box-sizing: border-box;
  outline: none;
}

.mk-input:focus {
  border-color: rgba(247, 238, 221, 0.5);
}

/* ── Listing rows (varslinger, transaksjoner) ─────────────────────────── */
.mk-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mk-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--mk-outline);
  border-radius: 12px;
}

.mk-list-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(247, 238, 221, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--mk-card);
}

.mk-list-content {
  flex: 1;
  min-width: 0;
}

.mk-list-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--mk-card);
  letter-spacing: -0.005em;
}

.mk-list-meta {
  font-size: 12px;
  color: var(--mk-card-mute);
  margin-top: 3px;
}

.mk-list-amount {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--mk-card);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.mk-list-amount--positive {
  color: #6cd86c;
}

.mk-list-amount--negative {
  color: #ef6b6b;
}

/* ── Transaksjoner-skjerm (Claude Design "Transaksjoner.html" 2026-05-30) ──
   Fire klare typer gruppert per dato, med saldo, måned-chip og filterchips.
   Verdier 1:1 fra transaksjoner.jsx. */
.mk-tx-saldo {
  margin: 4px 2px 18px;
}
.mk-tx-saldo-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mk-card-soft);
}
.mk-tx-saldo-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 3px;
  color: var(--mk-card);
  font-variant-numeric: tabular-nums;
}

.mk-tx-month {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--mk-outline);
}
.mk-tx-month svg {
  color: var(--mk-gold-line);
  flex-shrink: 0;
}
.mk-tx-month span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mk-card);
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.mk-tx-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
}
.mk-tx-filters::-webkit-scrollbar {
  height: 0;
}
.mk-tx-chip {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: rgba(0, 0, 0, 0.22);
  border: 1.5px solid var(--mk-outline);
  color: var(--mk-card-soft);
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.mk-tx-chip.is-active {
  background: var(--mk-card);
  border-color: var(--mk-card);
  color: #3d0d11;
  font-weight: 700;
}

.mk-tx-groups {
  display: flex;
  flex-direction: column;
}
.mk-tx-group {
  margin-bottom: 22px;
}
.mk-tx-group-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--mk-card-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 2px 10px;
}
.mk-tx-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--mk-outline);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(247, 238, 221, 0.04);
}

.mk-tx-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(247, 238, 221, 0.08);
}
.mk-tx-row.is-last {
  border-bottom: none;
}
.mk-tx-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 238, 221, 0.07);
  border: 1px solid var(--mk-outline);
  color: var(--mk-card);
}
.mk-tx-content {
  flex: 1;
  min-width: 0;
}
.mk-tx-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--mk-card);
  letter-spacing: -0.01em;
}
.mk-tx-meta {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(247, 238, 221, 0.42);
  margin-top: 3px;
}
.mk-tx-amount {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.mk-tx-amount--pos {
  color: #6fc27a;
}
.mk-tx-amount--neg {
  color: #e8636f;
}

/* Tobias 2026-06-17: avlyst-runde-rad (trykkbar) + forklaringsdetalj. */
.mk-tx-row--tappable {
  cursor: pointer;
}
.mk-tx-row--tappable:hover {
  background: rgba(247, 238, 221, 0.05);
}
.mk-tx-cancelled-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  color: var(--mk-gold-line);
  background: rgba(212, 166, 74, 0.14);
  border: 1px solid rgba(212, 166, 74, 0.3);
}
/* Forhåndskjøp-merke (Tobias 2026-07-09) — nøytral chip på transaksjonsrad. */
.mk-tx-fh-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  color: rgba(247, 238, 221, 0.72);
  background: rgba(247, 238, 221, 0.08);
  border: 1px solid rgba(247, 238, 221, 0.18);
}
.mk-tx-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: rgba(247, 238, 221, 0.4);
  margin-left: 2px;
}
.mk-txd-cause {
  font-size: 15px;
  font-weight: 700;
  color: var(--mk-card);
  line-height: 1.4;
  margin-bottom: 16px;
}
.mk-txd-card {
  background: rgba(212, 166, 74, 0.07);
  border: 1px solid rgba(212, 166, 74, 0.22);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.mk-txd-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(247, 238, 221, 0.78);
  font-variant-numeric: tabular-nums;
}
.mk-txd-row--strong {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--mk-gold-line);
}
.mk-txd-framing {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(247, 238, 221, 0.6);
}

.mk-tx-empty {
  padding: 48px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(247, 238, 221, 0.42);
}

/* ── Info card rows (personlig info) ──────────────────────────────────── */
.mk-info-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--mk-outline);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}

.mk-info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(247, 238, 221, 0.08);
}

.mk-info-row:last-child {
  border-bottom: none;
}

.mk-info-row-content {
  flex: 1;
  min-width: 0;
}

.mk-info-label {
  font-size: 12px;
  color: var(--mk-card-soft);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.mk-info-value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--mk-card);
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}

.mk-info-sub {
  font-size: 12.5px;
  color: var(--mk-card-soft);
  margin-top: 1px;
}

.mk-info-edit-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(247, 238, 221, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mk-card);
  font-family: inherit;
  flex-shrink: 0;
}

.mk-info-edit-btn:hover {
  background: rgba(247, 238, 221, 0.06);
}

/* Verdi-linje: verdi + valgfritt status-merke på samme rad. */
.mk-info-value-line {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.mk-info-value--empty {
  color: rgba(247, 238, 221, 0.4);
  font-weight: 600;
}

/* Grønt "Verifisert"-merke (design-handoff 2026-06-28). */
.mk-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(111, 194, 122, 0.14);
  border: 1px solid rgba(111, 194, 122, 0.4);
  color: #7fcf89;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Nøytralt "Til godkjenning"-merke (KYC PENDING). */
.mk-pending-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(212, 166, 74, 0.14);
  border: 1px solid rgba(212, 166, 74, 0.4);
  color: #f4d99a;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* "Avslutt konto"-kort (design-handoff 2026-06-28). */
.mk-danger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--mk-outline);
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: inset 0 1px 0 rgba(247, 238, 221, 0.04);
}

.mk-danger-text {
  flex: 1;
  min-width: 0;
}

.mk-danger-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--mk-card);
  letter-spacing: -0.01em;
}

.mk-danger-desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--mk-card-soft);
  letter-spacing: -0.005em;
  margin-top: 6px;
  line-height: 1.5;
}

.mk-danger-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid rgba(232, 99, 111, 0.55);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  color: #e8636f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.15s;
}

.mk-danger-btn:hover {
  background: rgba(232, 99, 111, 0.12);
}

/* ── Stats display (spillregnskap) ────────────────────────────────────── */
.mk-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.mk-stat-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--mk-outline);
  border-radius: 12px;
  padding: 14px 16px;
}

.mk-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--mk-card-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mk-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--mk-card);
  letter-spacing: -0.02em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.mk-stat-value-sub {
  font-size: 13px;
  color: var(--mk-card-mute);
  margin-top: 2px;
  font-weight: 500;
}

/* ── Spillegrenser sliders ────────────────────────────────────────────── */
.mk-grense-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--mk-outline);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.mk-grense-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--mk-card);
  margin-bottom: 4px;
}

.mk-grense-sub {
  font-size: 12.5px;
  color: var(--mk-card-mute);
  margin-bottom: 14px;
}

.mk-grense-row {
  margin-bottom: 14px;
}

.mk-grense-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.mk-grense-row-label {
  font-size: 12.5px;
  color: var(--mk-card-mute);
  font-weight: 500;
}

.mk-grense-row-value {
  font-size: 14px;
  color: var(--mk-card);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mk-progress-bar {
  height: 6px;
  background: rgba(247, 238, 221, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.mk-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ── VIP callout ──────────────────────────────────────────────────────── */
.mk-vip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--mk-vip-bg) 0%, #2e0d0a 100%);
  border: 1px solid var(--mk-vip-border);
  box-shadow: inset 0 1px 0 rgba(244, 217, 154, 0.18), 0 4px 14px rgba(0, 0, 0, 0.25);
  margin-top: 18px;
}

.mk-vip-pinwheel {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--mk-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.mk-vip-text {
  flex: 1;
  line-height: 1.3;
}

.mk-vip-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--mk-vip-text);
  letter-spacing: -0.005em;
}

.mk-vip-sub {
  font-size: 12.5px;
  color: rgba(244, 217, 154, 0.78);
  margin-top: 2px;
}

/* ── Empty state ──────────────────────────────────────────────────────── */
.mk-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--mk-card-mute);
  font-size: 14px;
}

/* ── Toast / inline error ─────────────────────────────────────────────── */
.mk-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: var(--mk-card);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 2000;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  animation: mk-toast-in 0.25s ease-out;
}

@keyframes mk-toast-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.mk-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fbb;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
}

.mk-success {
  background: rgba(108, 216, 108, 0.14);
  border: 1px solid rgba(108, 216, 108, 0.4);
  color: #cfe9cf;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* ── Tablet/desktop: right-aligned account drawer ─────────────────────── */
@media (min-width: 640px) {
  .mk-screen,
  .mk-subscreen {
    max-width: 460px;
    margin-left: auto;
    margin-right: 0;
    box-shadow: 0 0 0 1px rgba(212, 166, 74, 0.08), 0 30px 80px rgba(0, 0, 0, 0.5);
  }

  .mk-screen {
    transform: translateX(100%);
    transition: transform 180ms ease-out;
  }

  .mk-overlay.is-open .mk-screen {
    transform: translateX(0);
  }

  /* NB: backdrop-filter er forbudt over Pixi-canvas (flimmer-policy, se
   * packages/game-client/src/games/game1/ARCHITECTURE.md). Bruker solid
   * semi-transparent bakgrunn med alpha >= 0.85 i stedet. */
  .mk-overlay {
    background: rgba(0, 0, 0, 0.88);
  }
}

/* ── Grense-detaljer («Se hva som teller inn», design-handoff 2026-07-11) ── */
.mk-limit-card[data-mk-limit] {
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.mk-limit-card[data-mk-limit]:hover {
  border-color: rgba(212, 166, 74, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.mk-limit-more,
.mk-grense-more {
  font-size: 11.5px;
  font-weight: 700;
  color: #d4a64a;
  margin-top: 8px;
}
.mk-grense-row--tappable {
  cursor: pointer;
  border-radius: 8px;
}
.mk-grense-row--tappable:hover .mk-grense-more {
  text-decoration: underline;
}
.mk-gd-sum {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}
.mk-gd-cell .mk-gd-l {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(247, 238, 221, 0.55);
  margin-bottom: 3px;
}
.mk-gd-cell .mk-gd-v {
  font-size: 18px;
  font-weight: 800;
  color: #f7eedd;
  font-variant-numeric: tabular-nums;
}
.mk-gd-cell .mk-gd-v--pos {
  color: #7fd49a;
}
.mk-gd-info {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(247, 238, 221, 0.65);
  background: rgba(247, 238, 221, 0.06);
  border: 1px solid rgba(247, 238, 221, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
}
.mk-gd-info b {
  color: #f7eedd;
}
