/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(200,168,75,.05) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(85,100,200,.04) 0%, transparent 55%);
}

/* ── LOADING ── */
#ls {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .5s;
}
#ls.hidden { opacity: 0; pointer-events: none; }
.ll  { font-family: 'Cinzel', serif; font-size: 28px; font-weight: 700; color: var(--gold); letter-spacing: 3px; }
.ls2 { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 5px; color: var(--text3); text-transform: uppercase; }
.lbw { width: 260px; height: 3px; background: var(--surf2); border-radius: 2px; overflow: hidden; }
.lb  { height: 100%; background: var(--gold); border-radius: 2px; transition: width .4s; width: 0%; }
.lm  { font-size: 13px; color: var(--text3); font-style: italic; }

/* ── HEADER ── */
header {
  background: rgba(8,9,13,.93);
  border-bottom: 1px solid var(--bord);
  padding: 11px 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
}
:root.light header { background: rgba(244,240,232,.95); }
.logo { font-family: 'Cinzel', serif; font-size: 17px; font-weight: 700; color: var(--gold); letter-spacing: 2px; }
.logo span { color: var(--text3); font-weight: 400; font-size: 10px; display: block; letter-spacing: 4px; }
.header-right { display: flex; gap: 5px; align-items: center; }
.streak-badge { font-family: 'Cinzel', serif; font-size: 11px; color: var(--gold); background: rgba(200,168,75,.1); border: 1px solid var(--gold-dim); border-radius: 20px; padding: 4px 11px; }

/* ── BUTTONS ── */
.btn {
  font-family: 'Cinzel', serif; font-size: 10px; font-weight: 600; letter-spacing: 1px;
  padding: 6px 12px; border-radius: 6px; border: 1px solid var(--bord2);
  background: var(--surf); color: var(--text2); cursor: pointer; transition: all .16s;
  text-transform: uppercase;
}
.btn:hover { background: var(--surf2); color: var(--text); border-color: var(--gold-dim); }
.btn.primary { background: rgba(200,168,75,.14); border-color: var(--gold); color: var(--gold2); }
.btn.primary:hover { background: rgba(200,168,75,.26); }
.btn.danger { border-color: var(--red); color: var(--red2); }
.btn.danger:hover { background: rgba(217,64,64,.12); }
.btn.sm { padding: 4px 9px; font-size: 9px; }
.btn.icon-btn { padding: 6px 9px; font-size: 14px; }
.btn.atk-active { background: rgba(240,80,80,.18); border-color: var(--red2); color: var(--red2); animation: pred .9s ease-in-out infinite; }
.btn:disabled { opacity: .3; cursor: default; }

/* ── LAYOUT ── */
.gw {
  display: grid; grid-template-rows: auto auto auto auto auto auto;
  padding: 13px; gap: 10px;
  max-width: 1180px; margin: 0 auto;
}

/* ── CHALLENGE BANNER ── */
.challenge-banner {
  background: rgba(200,168,75,.12); border-bottom: 1px solid var(--gold-dim);
  padding: 9px 20px; display: flex; align-items: center; justify-content: space-between;
  font-family: 'Cinzel', serif; font-size: 12px; color: var(--gold); letter-spacing: .5px;
}

/* ── PUZZLE INFO ── */
.pinfo {
  display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
  background: var(--bg2); border: 1px solid var(--bord);
  border-radius: var(--r); padding: 12px 16px;
}
.ptitle  { font-family: 'Cinzel', serif; font-size: 14px; color: var(--gold); font-weight: 600; }
.pflavor { font-style: italic; color: var(--text2); font-size: 14px; flex: 1; min-width: 160px; }
.life-disp { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.life-blk  { text-align: center; min-width: 52px; }
.life-lbl  { font-size: 10px; letter-spacing: 3px; color: var(--text3); text-transform: uppercase; font-family: 'Cinzel', serif; }
.life-val  { font-family: 'Cinzel', serif; font-size: 30px; font-weight: 700; line-height: 1; }
.life-val.you { color: var(--green2); }
.life-val.opp { color: var(--red2); }
.life-div  { width: 1px; height: 42px; background: var(--bord); }
.hint-bar  { background: rgba(200,168,75,.07); border: 1px solid var(--gold-dim); border-radius: 8px; padding: 9px 13px; font-style: italic; color: var(--gold); font-size: 14px; display: none; margin-top: 6px; }
.hint-bar.vis { display: block; }

/* Opp face targeting */
#opp-face { cursor: default; border-radius: 8px; padding: 2px 6px; transition: box-shadow .15s; display: inline-block; }
body.targeting #opp-face { cursor: crosshair; box-shadow: 0 0 0 2px var(--green2), 0 0 16px rgba(61,214,138,.5); animation: tpulse .7s infinite; }
@keyframes tpulse { 0%,100% { box-shadow: 0 0 0 2px var(--green2), 0 0 10px rgba(61,214,138,.35); } 50% { box-shadow: 0 0 0 2px var(--green2), 0 0 22px rgba(61,214,138,.65); } }

/* ── TARGETING BANNER ── */
.tbar {
  display: none; position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: rgba(15,17,25,.97); border: 1px solid var(--green2); border-radius: 50px;
  padding: 10px 20px; z-index: 400; align-items: center; gap: 12px; box-shadow: var(--shadow); white-space: nowrap;
}
.tbar.vis { display: flex; }
:root.light .tbar { background: rgba(240,236,228,.97); }
.tbar-icon { font-size: 18px; }
.tbar-msg  { font-family: 'Cinzel', serif; font-size: 12px; color: var(--green2); letter-spacing: .5px; }

/* ── ZONES ── */
.zone {
  background: var(--bg2); border: 1px solid var(--bord);
  border-radius: var(--r); padding: 12px 15px; min-height: 220px;
}
.your-zone { border-top-color: rgba(200,168,75,.12); }
.zone-lbl {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 3px;
  color: var(--text3); text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.zone-lbl::after { content: ''; flex: 1; height: 1px; background: var(--bord); }
.cards-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: center; min-height: 90px; }
.hand-zone { background: var(--bg2); border: 1px solid var(--bord); border-radius: var(--r); padding: 12px 15px; min-height: 210px; }
.empty-zone { border: 2px dashed var(--bord); border-radius: 8px; padding: 20px; text-align: center; color: var(--text3); font-style: italic; font-size: 14px; width: 100%; }
.ac-ctr { font-family: 'Cinzel', serif; font-size: 11px; color: var(--text3); margin-left: auto; }

/* ── CARDS ── */
.card {
  width: var(--cw); height: var(--ch);
  border-radius: 10px; position: relative; cursor: pointer;
  transition: transform .2s cubic-bezier(.15,.8,.25,1.2), box-shadow .18s, filter .18s;
  flex-shrink: 0; user-select: none; overflow: visible;
}
.card img.ci {
  width: 100%; height: 100%; border-radius: 10px; display: block;
  object-fit: cover; pointer-events: none; border: 1px solid var(--card-border);
}
.card-ph {
  width: 100%; height: 100%; border-radius: 10px;
  background: var(--card-ph-bg); border: 1px solid var(--bord2);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.card-ph-icon { font-size: 26px; }
.card-ph-name { font-family: 'Cinzel', serif; font-size: 8px; color: var(--text3); text-align: center; padding: 0 6px; line-height: 1.3; }

/* Card hover */
.card:hover { transform: translateY(-10px) scale(1.04); z-index: 30; }
.card:hover .ci { filter: brightness(1.08) saturate(1.08); }

/* Card states */
.card.playable { box-shadow: 0 0 0 2.5px var(--gold), 0 4px 20px rgba(200,168,75,.45); }
.card.playable:hover { box-shadow: 0 0 0 2.5px var(--gold2), 0 8px 28px rgba(200,168,75,.65); }
.card.can-attack { box-shadow: 0 0 0 2.5px var(--red2), 0 4px 18px rgba(240,80,80,.35); animation: patk .9s ease-in-out infinite; }
.card.selected { box-shadow: 0 0 0 2.5px var(--blue2), 0 4px 22px rgba(85,170,238,.55); transform: translateY(-14px); }
.card.tapped { transform: rotate(90deg); margin: 20px 10px; }
.card.tapped:hover { transform: rotate(90deg) translateY(-8px) scale(1.04); z-index: 30; }
.card.sick { filter: brightness(.65) saturate(.3); cursor: not-allowed; }
.card.sick:hover { transform: none; filter: brightness(.65) saturate(.3); }
body.targeting .card.targetable { cursor: crosshair; box-shadow: 0 0 0 2.5px var(--green2), 0 4px 18px rgba(61,214,138,.45); animation: tpulse .7s infinite; }
body.targeting .card.targetable:hover { transform: translateY(-10px) scale(1.04); }

/* Card badges */
.cb     { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,.88); border-radius: 5px; padding: 2px 6px; font-family: 'Cinzel', serif; font-size: 10px; font-weight: 700; color: #fff; pointer-events: none; border: 1px solid rgba(255,255,255,.12); z-index: 5; }
.cb-tl  { position: absolute; top: 5px; left: 5px; border-radius: 4px; padding: 2px 5px; font-family: 'Cinzel', serif; font-size: 7px; font-weight: 700; pointer-events: none; z-index: 5; }
.cb-tr  { position: absolute; top: 5px; right: 5px; border-radius: 4px; padding: 2px 5px; font-family: 'Cinzel', serif; font-size: 7px; font-weight: 700; pointer-events: none; z-index: 5; }
.bg-haste   { background: rgba(200,60,40,.9);  color: #fff; }
.bg-sick    { background: rgba(70,70,180,.9);   color: #ddf; }
.bg-prowess { background: rgba(200,168,75,.92); color: #1a1200; }
.bg-buff    { background: rgba(61,214,138,.9);  color: #042c18; }
.bg-dmg     { background: rgba(240,60,60,.9);   color: #fff; }
.cb-mana { position: absolute; bottom: 5px; left: 5px; display: flex; gap: 2px; z-index: 5; pointer-events: none; flex-wrap: wrap; max-width: 58px; }
.mp { width: 13px; height: 13px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 700; font-family: 'Cinzel', serif; border: 1px solid rgba(0,0,0,.5); }
.mp-R { background: #c83020; color: #ffe0d0; } .mp-W { background: #f0e8c8; color: #443300; }
.mp-U { background: #1850a0; color: #cce; }    .mp-B { background: #502080; color: #e0d0ff; }
.mp-G { background: #1a7840; color: #c0ffd8; } .mp-C { background: #505868; color: #fff; }

/* ── MANA PANEL ── */
.mpanel { background: var(--bg2); border: 1px solid var(--bord); border-radius: var(--r); padding: 10px 15px; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.ml    { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 2px; color: var(--text3); text-transform: uppercase; }
.mpips { display: flex; gap: 7px; align-items: center; }
.mpw   { display: flex; align-items: center; gap: 3px; }
.mpp   { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; font-family: 'Cinzel', serif; border: 2px solid rgba(0,0,0,.45); }
.mc    { font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700; color: var(--text); min-width: 12px; text-align: center; }
.md2   { width: 1px; height: 26px; background: var(--bord); margin: 0 2px; }
.phase-row { margin-left: auto; display: flex; gap: 7px; align-items: center; }
.phase-badge { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 1px; padding: 5px 11px; border-radius: 20px; background: var(--surf2); border: 1px solid var(--bord2); color: var(--text2); }
.phase-badge.main   { background: rgba(200,168,75,.1); border-color: var(--gold-dim); color: var(--gold); }
.phase-badge.combat { background: rgba(240,80,80,.15); border-color: var(--red2); color: var(--red2); }

/* ── LOG ── */
.log { background: var(--bg2); border: 1px solid var(--bord); border-radius: var(--r); padding: 10px 15px; max-height: 108px; overflow-y: auto; }
.le  { font-size: 13px; color: var(--text2); padding: 2px 0; display: flex; gap: 6px; }
.le.good .lt { color: var(--green2); } .le.bad .lt { color: var(--red2); } .le.info .lt { color: var(--gold); }
.li  { flex-shrink: 0; width: 14px; font-size: 10px; } .lt { flex: 1; }

/* ── TOOLTIP ── */
#tt { position: fixed; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .1s; width: 250px; filter: drop-shadow(0 10px 36px rgba(0,0,0,.95)); }
#tt.vis { opacity: 1; }
#tt-img { width: 250px; height: 349px; border-radius: 14px; display: block; object-fit: cover; }
.tt-fb  { background: var(--bg3); border: 1px solid var(--bord); border-radius: 8px; padding: 10px 12px; margin-top: 6px; }
.tt-n   { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 600; color: var(--text); }
.tt-t   { font-size: 11px; color: var(--text3); margin: 2px 0; }
.tt-h   { font-size: 12px; color: var(--gold); font-style: italic; line-height: 1.4; margin-top: 4px; }

/* ── MODALS ── */
.mbg {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.88); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
:root.light .mbg { background: rgba(100,90,80,.6); }
.mbg.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg2); border: 1px solid var(--bord);
  border-radius: 16px; padding: 26px; max-width: 520px; width: 92%;
  box-shadow: var(--shadow); transform: translateY(14px); transition: transform .22s;
  max-height: 92vh; overflow-y: auto;
}
.mbg.open .modal { transform: translateY(0); }
.mt     { font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.ms     { color: var(--text2); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.mbtns  { display: flex; gap: 9px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

/* Modal options (Boros Charm) */
.modal-options { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.modal-opt-btn {
  background: var(--surf); border: 1px solid var(--bord2); border-radius: 8px;
  padding: 13px 16px; cursor: pointer; transition: all .16s; text-align: left;
  font-family: 'Crimson Pro', serif; font-size: 15px; color: var(--text);
}
.modal-opt-btn:hover { background: var(--surf2); border-color: var(--gold-dim); color: var(--gold); }
.modal-opt-label { font-family: 'Cinzel', serif; font-size: 10px; color: var(--text3); letter-spacing: 1px; margin-bottom: 3px; text-transform: uppercase; }

/* ── VICTORY ── */
.vtitle { font-family: 'Cinzel', serif; font-size: 32px; font-weight: 700; color: var(--gold); text-align: center; animation: pg 1.5s ease-in-out infinite; }
@keyframes pg { 0%,100% { text-shadow: 0 0 16px rgba(200,168,75,.4); } 50% { text-shadow: 0 0 40px rgba(200,168,75,.85), 0 0 65px rgba(200,168,75,.3); } }
.vemoji  { font-size: 50px; display: block; text-align: center; margin: 12px 0; }
.vstats  { display: flex; justify-content: center; gap: 20px; margin: 14px 0; flex-wrap: wrap; }
.vs      { text-align: center; }
.vsv     { font-family: 'Cinzel', serif; font-size: 24px; font-weight: 700; color: var(--text); }
.vsl     { font-size: 10px; color: var(--text3); letter-spacing: 2px; text-transform: uppercase; }
.share-box { background: var(--surf); border: 1px solid var(--bord); border-radius: 8px; padding: 11px 14px; font-family: monospace; font-size: 13px; color: var(--text); white-space: pre; margin: 12px 0; }

/* ── COLOR PICKER ── */
.cpick  { display: flex; gap: 16px; justify-content: center; margin: 18px 0; }
.cpbtn  { width: 60px; height: 60px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; font-family: 'Cinzel', serif; font-size: 16px; font-weight: 700; transition: all .18s; display: flex; align-items: center; justify-content: center; }
.cpbtn:hover { transform: scale(1.15); border-color: rgba(255,255,255,.5); }
.cp-R { background: #c83020; color: #ffe0d0; } .cp-W { background: #f0e8c8; color: #443300; }
.cp-U { background: #1850a0; color: #cce; }    .cp-G { background: #1a7840; color: #c0ffd8; }

/* ── PUZZLE LIST ── */
.plist { display: flex; flex-direction: column; gap: 7px; max-height: 300px; overflow-y: auto; margin: 12px 0; }
.pi    { background: var(--surf); border: 1px solid var(--bord); border-radius: 8px; padding: 10px 13px; cursor: pointer; transition: all .16s; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pi:hover  { border-color: var(--gold-dim); background: var(--surf2); }
.pi.active { border-color: var(--gold); background: rgba(200,168,75,.08); }
.pn        { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 600; color: var(--text); }
.pfl       { font-size: 12px; color: var(--text3); margin-top: 2px; font-style: italic; }
.pi-right  { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.pi-stars  { font-size: 12px; letter-spacing: -1px; }
.diff-easy   { color: var(--green2); font-family: 'Cinzel', serif; font-size: 11px; }
.diff-medium { color: var(--gold);   font-family: 'Cinzel', serif; font-size: 11px; }
.diff-hard   { color: var(--red2);   font-family: 'Cinzel', serif; font-size: 11px; }

/* ── FORMS ── */
.fg { margin-bottom: 11px; }
.fl { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 2px; color: var(--text2); text-transform: uppercase; margin-bottom: 5px; display: block; }
.fi { width: 100%; background: var(--surf); border: 1px solid var(--bord2); border-radius: 6px; padding: 7px 10px; color: var(--text); font-family: 'Crimson Pro', serif; font-size: 14px; outline: none; transition: border-color .16s; }
.fi:focus { border-color: var(--gold-dim); }
textarea.fi { min-height: 65px; resize: vertical; }

/* ── HOW TO PLAY ── */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 12px 0; }
.how-card  { background: var(--surf); border: 1px solid var(--bord); border-radius: 8px; padding: 12px; }
.how-icon  { font-size: 20px; margin-bottom: 6px; }
.how-title { font-family: 'Cinzel', serif; font-size: 11px; font-weight: 600; color: var(--gold); margin-bottom: 4px; }
.how-txt   { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ── PUZZLE EDITOR ── */
.editor-modal { max-width: 960px; width: 96%; max-height: 92vh; overflow-y: auto; }
.editor-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 16px 0; }
.editor-left, .editor-right { display: flex; flex-direction: column; gap: 10px; }
.editor-section { background: var(--surf); border: 1px solid var(--bord); border-radius: 8px; padding: 14px; }

.zone-tabs { display: flex; gap: 6px; }
.zone-tab { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 1px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--bord2); background: var(--surf); color: var(--text3); cursor: pointer; text-transform: uppercase; transition: all .16s; }
.zone-tab.active { border-color: var(--gold); color: var(--gold); background: rgba(200,168,75,.1); }

.editor-card-list { flex: 1; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.ed-card-item { background: var(--surf); border: 1px solid var(--bord); border-radius: 6px; padding: 8px 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all .15s; }
.ed-card-item:hover { border-color: var(--gold-dim); background: var(--surf2); }
.ed-card-thumb { width: 36px; height: 50px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: var(--bord); }
.ed-card-info { flex: 1; }
.ed-card-name { font-family: 'Cinzel', serif; font-size: 11px; font-weight: 600; color: var(--text); }
.ed-card-type { font-size: 11px; color: var(--text3); }
.ed-card-mana { font-size: 11px; color: var(--gold); font-family: 'Cinzel', serif; }

.ed-preview-label { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 3px; color: var(--text3); text-transform: uppercase; }
.ed-zone-preview { background: var(--surf); border: 1px solid var(--bord); border-radius: 8px; padding: 10px; }
.ed-zone-title { font-family: 'Cinzel', serif; font-size: 10px; color: var(--text3); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.ed-card-row { display: flex; flex-wrap: wrap; gap: 6px; min-height: 56px; align-items: flex-end; }
.ed-card-chip { position: relative; cursor: pointer; }
.ed-card-chip img { width: 44px; height: 61px; border-radius: 4px; object-fit: cover; border: 1px solid var(--bord); }
.ed-card-chip:hover img { filter: brightness(.7); }
.ed-card-chip .remove-x { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; background: var(--red2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #fff; font-weight: 700; display: none; }
.ed-card-chip:hover .remove-x { display: flex; }

.editor-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── ANIMATIONS ── */
@keyframes pred { 0%,100% { box-shadow: 0 0 0 0 rgba(240,80,80,0); } 50% { box-shadow: 0 0 0 4px rgba(240,80,80,.25); } }
@keyframes patk { 0%,100% { box-shadow: 0 0 0 2.5px var(--red2), 0 4px 16px rgba(240,80,80,.25); } 50% { box-shadow: 0 0 0 2.5px var(--red2), 0 4px 26px rgba(240,80,80,.65); } }
@keyframes lpng  { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
.ping { animation: lpng .3s ease-out; }
@keyframes card-in { 0% { opacity:0; transform: translateY(22px) scale(.9); } 100% { opacity:1; transform: translateY(0); } }
.card-entering { animation: card-in .28s ease-out; }
@keyframes dpulse { 40% { filter: brightness(1.5) saturate(1.8); } }
.df { animation: dpulse .5s; }
.float-text { position: fixed; pointer-events: none; z-index: 300; font-family: 'Cinzel', serif; font-size: 28px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.9); animation: fu 1.2s ease-out forwards; }
@keyframes fu { 0% { opacity:1; transform: translateY(0); } 100% { opacity:0; transform: translateY(-65px); } }
.float-red   { color: var(--red2); }
.float-green { color: var(--green2); }
.conf { position: fixed; pointer-events: none; z-index: 600; top: -10px; font-size: 18px; animation: fall linear forwards; }
@keyframes fall { 0% { opacity:1; transform: translateY(0) rotate(0deg); } 100% { opacity:0; transform: translateY(100vh) rotate(720deg); } }

/* ── SCROLLBARS ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bord); border-radius: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  :root { --cw: 90px; --ch: 125px; }
  header { padding: 9px 11px; }
  .logo { font-size: 14px; }
  .gw { padding: 8px; gap: 8px; }
  .editor-layout { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
}
