/* gift.css — Knox Plus gift windows (gift.js). Builds on flamefest.css's
   .ff-modal / .ff-card / .ff-pop look. */
.kg-card { width: min(440px, 100%); }
.kg-form { display: flex; gap: 8px; margin-top: 14px; }
.kg-input { flex: 1; min-width: 0; padding: 11px 12px; border-radius: 12px; border: 2px solid var(--border); background: var(--cream-warm); color: var(--text);
  font-family: 'Courier New', monospace; font-size: 15px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.kg-input:focus { outline: none; border-color: var(--orange); }
.kg-form .ff-claim { animation: none; padding: 10px 16px; }
.kg-msg { min-height: 18px; margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--text-light); }
.kg-msg.err { color: var(--red); }
.kg-bought:empty { display: none; }
.kg-bought { margin-top: 12px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.kg-bought-title { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); }
.kg-bought-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--border); background: var(--cream-warm); }
.kg-bought-row span { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.kg-bought-row code { font-size: 13px; font-weight: 800; color: var(--orange); overflow-wrap: anywhere; }
.kg-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.kg-option { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; border: 2px solid var(--border);
  background: var(--cream-warm); color: var(--text); font: inherit; cursor: pointer; box-shadow: 0 3px 0 var(--border); }
.kg-option b { font-size: 15px; font-weight: 900; }
.kg-price { font-size: 19px; font-weight: 900; color: var(--orange); }
.kg-option small { font-size: 11px; font-weight: 700; color: var(--text-light); line-height: 1.3; }
.kg-option.on { border-color: var(--orange); box-shadow: 0 3px 0 var(--orange-dark); background: var(--orange-cream); }
.kg-fine { margin-top: 10px !important; font-size: 11.5px !important; }
@media (max-width: 420px) { .kg-options { grid-template-columns: 1fr; } .kg-option { flex-direction: row; justify-content: space-between; padding: 10px 12px; } .kg-option small { display: none; } }

/* Knox sticker cards and inputs (like the welcome cards and Flashcards) */
.kg-option { background: var(--surface); border-radius: 18px; box-shadow: 0 4px 0 var(--border); transition: transform .12s, box-shadow .12s, border-color .12s; }
.kg-option:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--border); }
.kg-option.on { background: var(--orange-cream); border-color: var(--orange); box-shadow: 0 4px 0 var(--orange-dark); }
.kg-option.on:hover { box-shadow: 0 6px 0 var(--orange-dark); }
.kg-input { background: var(--surface); border-radius: 14px; min-height: 44px; box-shadow: 0 3px 0 var(--border); }
.kg-form .ff-claim { min-height: 44px; }
.kg-bought-row { background: var(--surface); box-shadow: 0 2px 0 var(--border); }
/* Plan picker (Knox Plus / Mega Knox) */
.kg-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.kg-plan { min-height: 42px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; box-shadow: 0 3px 0 var(--border); transition: transform .12s, box-shadow .12s; }
.kg-plan:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--border); }
.kg-plan.on { border-color: var(--orange); background: var(--orange-cream); color: var(--orange); box-shadow: 0 3px 0 var(--orange-dark); }
.kg-plan.mega.on { border-color: #F2B705; background: linear-gradient(135deg, #FFF3C4, #FFE08A); color: #8A5A00; box-shadow: 0 3px 0 #C99404; }
.kg-blurb { margin: 8px auto 0 !important; font-size: 13px !important; min-height: 2.6em; }

/* Depth, like the plan windows: a warm wash at the top fading to the card,
   a raised edge and a soft shadow. Gold while Mega Knox is picked. */
.kg-card { background: linear-gradient(180deg, var(--orange-cream) 0%, var(--surface) 45%); box-shadow: 0 7px 0 var(--orange-dark), 0 24px 60px rgba(0,0,0,.35); }
.kg-card.kg-mega { background: linear-gradient(180deg, #FFF3C4 0%, var(--surface) 45%); border-color: #F2B705; box-shadow: 0 7px 0 #C99404, 0 24px 60px rgba(0,0,0,.35); transition: background .2s, border-color .2s; }
html[data-theme="dark"]:not(.knox-seasonal) .kg-card.kg-mega { background: linear-gradient(180deg, rgba(242,183,5,.16) 0%, transparent 45%), var(--surface); }
