/* laneD: accessibility (colour-blind symbols, text size, reduced motion), Draft sheet, Legendary reveal flash. */

/* ---- colour-blind symbols: Gold star, Cobalt circle, Emerald triangle, Garnet square, Quartz diamond ---- */
body.cb .lcpips i { width: 12px; height: 12px; border-radius: 0; }
body.cb .lcpips i[style*="#e8b730"] { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
body.cb .lcpips i[style*="#2f9be8"] { border-radius: 50%; }
body.cb .lcpips i[style*="#3cc460"] { clip-path: polygon(50% 4%, 98% 94%, 2% 94%); }
body.cb .lcpips i[style*="#e0473a"] { border-radius: 1px; transform: scale(.86); }
body.cb .lcpips i[style*="#a44ee0"] { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
body.cb .card .face.lcf::after { position: absolute; z-index: 3; right: 5%; top: 56.5%; width: 9cqw; height: 9cqw; display: grid; place-items: center;
  border-radius: 50%; background: rgba(10, 6, 20, .82); color: #fff; font: 900 6cqw/1 system-ui, sans-serif; box-shadow: 0 0 0 .6cqw var(--fc); pointer-events: none; }
body.cb .card .face.lcf.f-gold::after { content: "\2605"; }
body.cb .card .face.lcf.f-cobalt::after { content: "\25CF"; }
body.cb .card .face.lcf.f-emerald::after { content: "\25B2"; }
body.cb .card .face.lcf.f-garnet::after { content: "\25A0"; }
body.cb .card .face.lcf.f-quarts::after { content: "\25C6"; }
body.cb .dr-lead[data-sym]::before { content: attr(data-sym); margin-right: 6px; }

/* ---- text size: card rules (flavour text steps aside to make room) and menu text ---- */
body.ts-large .lcf .cf-rules { font-size: calc(var(--fs) * 1.1); }
body.ts-larger .lcf .cf-rules { font-size: calc(var(--fs) * 1.2); line-height: 1.12; }
body:is(.ts-large, .ts-larger) .lcf .cf-f { display: none; }
/* menu text: zoom scales each element's own px size (a % font-size would be relative to the parent and could shrink it) */
body.ts-large :is(#sheet .box p, #sheet .box .lead, .settings .settxt p, .settings .settxt b, .mt-txt > span > span, .muted, #toast .tmsg, .modesub .ms-t) { zoom: 1.12; }
body.ts-larger :is(#sheet .box p, #sheet .box .lead, .settings .settxt p, .settings .settxt b, .mt-txt > span > span, .muted, #toast .tmsg, .modesub .ms-t) { zoom: 1.25; }
body.ts-larger .btn { zoom: 1.08; }

/* ---- reduced motion (forced by the setting, or the OS): no shakes, flashes or long animations ---- */
body.rm *, body.rm *::before, body.rm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }

/* ---- Draft sheet ---- */
.draftsheet .dr-rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 12px 0; }
.draftsheet .dr-rw { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(242, 193, 78, .25); }
.draftsheet .dr-rw b { display: block; color: #f2c14e; font-size: 18px; }
.draftsheet .dr-rw span { font-size: 16px; opacity: .9; }
.draftsheet .dr-leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 14px 0; }
.draftsheet .dr-lead { text-align: left; padding: 14px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 35%, #120a22), #120a22);
  border: 2px solid var(--c); color: #fff; cursor: pointer; font: inherit; }
.draftsheet .dr-lead b { display: block; font-size: 19px; }
.draftsheet .dr-lead span { font-size: 15px; opacity: .85; }
.draftsheet .dr-offer { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.draftsheet .dr-offer .card { position: relative; width: 170px; height: 238px; cursor: pointer; transition: transform .15s; }
.draftsheet .dr-offer .card:hover, .draftsheet .dr-offer .card:focus-visible { transform: translateY(-6px); outline: 2px solid #f2c14e; outline-offset: 3px; }
.draftsheet .dr-pips { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.draftsheet .dr-pips i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #7dffb0; }
.draftsheet .dr-pips i.l { border-color: #ff6a5a; border-radius: 3px; }
.draftsheet .dr-pips i.w.on { background: #7dffb0; } .draftsheet .dr-pips i.l.on { background: #ff6a5a; }
@media (max-width: 600px) { .draftsheet .dr-offer { gap: 6px; } .draftsheet .dr-offer .card { width: 31%; height: auto; aspect-ratio: 170 / 238; } }

/* ---- Legendary pack reveal moment ---- */
#lcLegFlash { position: fixed; inset: 0; z-index: 9999; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(255, 226, 140, .85), rgba(255, 180, 60, .25) 45%, transparent 75%);
  animation: lcLegFlash .7s ease-out forwards; }
@keyframes lcLegFlash { from { opacity: 1; } to { opacity: 0; } }
.lc-legshake { animation: lcLegShake .45s ease-out; }
@keyframes lcLegShake { 0%, 100% { translate: 0 0; } 20% { translate: -6px 3px; } 40% { translate: 5px -3px; } 60% { translate: -3px 2px; } 80% { translate: 2px -1px; } }
body.lite #lcLegFlash { animation-duration: .45s; opacity: .6; }
body:is(.rm, .fx-low) .lc-legshake { animation: none; }
body.rm #lcLegFlash { display: none; }
@media (prefers-reduced-motion: reduce) { .lc-legshake { animation: none; } #lcLegFlash { display: none; } }

/* ---- Play sheet: Draft (and Arcade) share the compact Free-for-All row, so the sheet still fits at 1280x720 ---- */
.modesheet .modes:has(#mFFA):has(#mDraft) #mFFA { grid-column: span 2; }
.modesheet .modes:has(#mFFA):has(#mDraft):has(#mArcade) #mFFA { grid-column: span 1; }
.modesheet .modes:has(#mFFA):has(#mDraft):has(#mArcade) #mFFA .mt-txt { left: 92px; }
.modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade) { height: 112px; }
.modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade)::before { background: linear-gradient(90deg, rgba(8, 4, 18, .94) 0%, rgba(8, 4, 18, .7) 55%, rgba(8, 4, 18, .2) 100%); }
.modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade) .mt-ic { top: 50%; margin-top: -25px; }
.modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade) .mt-txt { left: 92px; right: 12px; bottom: auto; top: 50%; transform: translateY(-50%); }
.modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade) .mt-lock { top: auto; bottom: 10px; left: 92px; right: auto; transform: none; font-size: 10px; padding: 5px 10px; }
.modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade).off .mt-txt { top: 36%; }
.modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade).off .mt-txt > span { display: none; }
.modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade).off .mt-tag { display: none; }
body.portrait .modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade) { height: 206px; }
body.portrait .modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade) .mt-ic { top: 26px; margin-top: 0; }
body.portrait .modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade) .mt-txt { left: 28px; top: auto; bottom: 26px; transform: none; }
body.portrait .modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade) .mt-lock { top: 22px; bottom: auto; left: auto; right: 22px; font-size: 17px; }
body.portrait .modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade).off .mt-txt { top: auto; }
body.portrait .modesheet .modes:has(#mFFA) .mode:is(#mDraft, #mArcade).off .mt-txt > span { display: block; }
body:not(.portrait).ul-lock-ffa .modesheet .modes:has(#mDraft) #mFFA::after { left: auto; right: 12px; top: 12px; transform: none; font-size: 12px; padding: 6px 12px 6px 32px; }
