/* English Section · Play with friends (duel.js) */

/* The menu button: a soft violet gradient; it beats in red while a match request is waiting */
#section-eng .eng-menu-card.eng-menu-duel{background:linear-gradient(135deg,#f6f1ff 0%,#e9ddff 55%,#dccbff 100%);border-color:#cdb6f5}
#section-eng .eng-menu-card.eng-menu-duel:hover{border-color:#8b5cf6;box-shadow:0 20px 44px rgba(139,92,246,.22)}
.eng-menu-duel .eng-menu-icon{position:relative;background:linear-gradient(145deg,#fff,#ebe1ff);color:#6d3fd6}
.eng-menu-duel .eng-menu-icon svg{width:28px;height:28px}
.eng-menu-duel h3{color:#4c1d95}
.duel-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#e11d48;color:#fff;font-size:11.5px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #fff}
.duel-badge[hidden]{display:none}
#section-eng .eng-menu-card.eng-menu-duel.is-alert{border-color:#f43f5e;animation:duelPulse 1.4s ease-in-out infinite}
@keyframes duelPulse{0%,100%{box-shadow:0 0 0 0 rgba(244,63,94,.55)}50%{box-shadow:0 0 0 10px rgba(244,63,94,0)}}

/* The red dot on the English icon of the bottom bar */
.bottom-nav-btn[data-section="eng"]{position:relative}
.bottom-nav-btn[data-section="eng"].has-duel::after{content:"";position:absolute;top:6px;right:6px;width:10px;height:10px;border-radius:50%;background:#e11d48;box-shadow:0 0 0 2px #fff;animation:duelDot 1.4s ease-in-out infinite}
@keyframes duelDot{0%,100%{transform:scale(1)}50%{transform:scale(1.25)}}

/* Top bar: the title keeps to the middle, on one line, whatever the phone */
#screen-eng-duel .eng-sub-bar .eng-brand-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;font-size:clamp(17px,4.6vw,26px)}

/* Computers: Learning, Practice, Play with friends, Ranking beside the profile; Request a level change last */
@media (min-width:1100px){
  #screen-english.active > .eng-container > .eng-profile-card{grid-row:2 / span 3}
  #screen-english.active > .eng-container > #engLearnBtn{grid-row:2}
  #screen-english.active > .eng-container > #engPracticeBtn{grid-row:3}
  #screen-english.active > .eng-container > #engDuelBtn{grid-row:4}
  #screen-english.active > .eng-container > #engTournamentBtn{grid-column:1/-1;grid-row:5}
  #screen-english.active > .eng-container > #engLevelRequestBtn{grid-column:1/-1;grid-row:6}
  #screen-eng-duel.active > .eng-container{max-width:980px}
}

/* Screens */
#duelRoot{display:block}
.duel-back{border:0;background:none;color:#4c1d95;font:inherit;font-weight:800;padding:4px 0 10px;cursor:pointer}
.duel-btn{border:0;border-radius:12px;padding:11px 18px;font:inherit;font-weight:800;color:#fff;background:linear-gradient(135deg,#7c3aed,#5b21b6);cursor:pointer;min-height:42px}
.duel-btn.ghost{background:#fff;color:#4c1d95;border:1.5px solid #cdb6f5}
.duel-btn.small{padding:6px 12px;min-height:32px;font-size:13px}
.duel-btn:disabled{opacity:.5;cursor:default}
.duel-row{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin:6px 0 20px}
.duel-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#c3c9d6;vertical-align:middle}
.duel-dot.on{background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.18)}
.duel-req{display:flex;align-items:center;gap:12px;justify-content:space-between;width:100%;box-sizing:border-box;padding:12px 14px;border-radius:14px;border:1.5px solid #e4dafa;background:#faf7ff;margin-bottom:10px;text-align:left;font:inherit;color:#05143F}
.duel-req.is-mine{cursor:pointer}
.duel-req-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.duel-req-main small{color:#5f6b82;font-weight:600;font-size:12.5px}
/* A match request: who and what on top, the details as small boxes, the two buttons across the bottom */
.duel-inbox .duel-req{display:block;padding:14px;border-color:#fbc4cf;background:linear-gradient(135deg,#fff7f9,#fdf0ff)}
.duel-req-head{display:flex;align-items:center;gap:12px}
.duel-req-head > div{display:flex;flex-direction:column;gap:2px;min-width:0}
.duel-req-head b{font-size:16px}
.duel-req-head small{color:#5f6b82;font-weight:600;font-size:12.5px}
.duel-req-ico{flex-shrink:0;width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#fff,#ebe1ff);color:#6d3fd6;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:16px}
.duel-req-head small .duel-dot{width:8px;height:8px;margin-right:2px}
.duel-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:12px}
.duel-tags-label{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#8a7aa8;margin-right:2px}
.duel-tag{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;background:#fff;border:1px solid #e9def9;font-size:13px;font-weight:700;color:#05143F;white-space:nowrap}
.duel-tag.is-unit{background:#efe6ff;border-color:#dccbff;color:#4c1d95}
.duel-tag.is-ready::before,.duel-tag.is-wait::before{content:"";width:7px;height:7px;border-radius:50%;background:#16a34a}
.duel-tag.is-wait{color:#7b89a8}
.duel-tag.is-wait::before{background:#c3c9d6}
.duel-req-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
@media (min-width:700px){
  .duel-inbox .duel-req{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:center}
  .duel-inbox .duel-req > .duel-req-btns{grid-column:2;grid-row:1 / span 3;margin:0;grid-template-columns:auto auto}
  .duel-inbox .duel-req > .duel-req-btns .duel-btn{min-width:110px}
}
.duel-req-btns .duel-btn{width:100%}
#duelRoot .eng-primary-btn.duel-send{background:linear-gradient(135deg,#7c3aed,#5b21b6);color:#fff;border:0}
#duelRoot .eng-primary-btn.duel-send:disabled{background:#d9cdf3;color:#fff}
.duel-game.is-off{opacity:.5}
.duel-ico-letter{font-size:20px;color:#6d3fd6;font-weight:900;letter-spacing:1px}
.duel-search{width:100%;min-height:42px;border-radius:12px;border:1.5px solid #cdb6f5;padding:0 14px;font:inherit;font-weight:700;margin:6px 0 12px;box-sizing:border-box}
.duel-cands{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.duel-cand{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:2px 8px;padding:10px 12px;border-radius:12px;border:1.5px solid #e4dafa;background:#fff;font:inherit;text-align:left;cursor:pointer}
.duel-cand small{grid-column:2;color:#7b89a8;font-size:11.5px;font-weight:600}
.duel-cand .duel-tick{grid-row:1 / span 2;grid-column:3;width:22px;height:22px;border-radius:50%;border:1.5px solid #cdb6f5;color:transparent;display:flex;align-items:center;justify-content:center;font-weight:900}
.duel-cand.on{border-color:#7c3aed;background:#f3edff}
.duel-cand.on .duel-tick{background:#7c3aed;border-color:#7c3aed;color:#fff}
.duel-send{margin:14px 0 24px}
.duel-warn{background:#fff7e6;color:#9a5b00;border-radius:12px;padding:10px 12px;font-weight:700;font-size:13px}

/* The game */
.duel-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 10px;font-weight:700;color:#05143F}
.duel-clock{font-size:20px;font-weight:900;color:#4c1d95;min-width:70px;text-align:center}
.duel-clock.low{color:#e11d48}
.duel-board{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}
.duel-pl{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:12px;background:#fff;border:1.5px solid #e4dafa}
.duel-pl small{color:#5f6b82;font-weight:700}
.duel-pl.me{border-color:#7c3aed;background:#f3edff}
.duel-pl.gone{opacity:.55;text-decoration:line-through}
.duel-pause{background:#fff1f2;color:#be123c;border:1.5px solid #fbc4cf;border-radius:14px;padding:10px 14px;font-weight:700;font-size:13px;margin-bottom:12px}
.duel-letter{font-size:64px;font-weight:900;text-align:center;color:#5b21b6;line-height:1.1;margin:4px 0}
.duel-words{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.duel-w{display:inline-flex;flex-direction:column;padding:6px 10px;border-radius:10px;background:#eef2f9;font-weight:800;color:#05143F}
.duel-w small{font-size:10.5px;color:#7b89a8;font-weight:700}
.duel-w.mine{background:#dcfce7;color:#166534}
.duel-sentence{font-size:17px;line-height:1.6;font-weight:600;color:#05143F;margin:4px 0 8px}
.duel-answer{color:#16a34a}
.duel-found{font-weight:800;color:#be123c;margin:6px 0}
.duel-found.mine{color:#16a34a}
.duel-form{display:flex;gap:8px;margin-top:10px;align-items:stretch}
.duel-form input,#duelRoot .duel-form .duel-search{flex:1;min-width:0;height:48px;min-height:48px;margin:0;box-sizing:border-box;border-radius:14px;border:1.5px solid #cdb6f5;padding:0 14px;font:inherit;font-size:16px;font-weight:700;background:#fff}
.duel-form input:focus{outline:none;border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.15)}
.duel-form .duel-btn{height:48px;min-height:48px;border-radius:14px;padding:0 20px;flex-shrink:0}
.duel-form input:disabled{background:#f3f4f6}
.duel-mins{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 14px}
.duel-mins button{border:1.5px solid #cdb6f5;background:#fff;color:#4c1d95;border-radius:12px;padding:8px 14px;font:inherit;font-weight:800;cursor:pointer}
.duel-mins button.on{background:linear-gradient(135deg,#7c3aed,#5b21b6);color:#fff;border-color:#7c3aed}
.duel-clock small{display:block;font-size:11px;font-weight:700;color:#7b89a8}
.duel-w.missed{background:#fff1f2;color:#9f1239}
.duel-skip{margin-top:6px}
.duel-msg{min-height:20px;font-weight:700;font-size:13px;color:#4c1d95;margin:8px 0 0}
.duel-end{text-align:center}
.duel-end h3{font-size:24px;margin:6px 0 10px}
.duel-end.is-win h3{color:#16a34a}
.duel-end.is-lose h3{color:#be123c}
.duel-end .duel-board{justify-content:center}

/* Word search: the same grid as Practice (style.css .ws-grid / .ws-cell); here only what a match adds */
.duel-ws-grid{max-width:460px}
.duel-ws-grid .ws-cell.bad{background:#e11d48;color:#fff;transform:scale(1.04)}
.duel-ws-grid.off .ws-cell{cursor:default}
.duel-ws-grid.off .ws-cell:not(.found){opacity:.6}
.dws-clue{cursor:default}
.dws-clue .duel-sentence{margin:4px 0}
.dws-clue .pr-units-hint{margin:4px 0 0}
.dws-def{margin:0;font-size:15px;line-height:1.5;font-weight:600}
/* Word Definition */
.duel-def{font-size:16px;line-height:1.55;font-weight:600;color:#05143F;padding:6px 2px}
.duel-skip{margin-top:10px}
/* the time sliders of a new match */
.duel-sl{margin:6px -4px 0}
.duel-modes button{flex:1}
/* the two ways to play: the same segmented switch as in Practice */
.duel-mins.duel-modes{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:16px;background:rgba(5,20,63,.06)}
.duel-mins.duel-modes button{border:0;border-radius:12px;background:transparent;color:rgba(5,20,63,.6);padding:11px 8px;font-weight:800;font-size:14px;box-shadow:none;transition:background-color .25s,color .25s,box-shadow .25s}
.duel-mins.duel-modes button.on{background:#fff;color:#05143F;box-shadow:0 2px 10px rgba(5,20,63,.12)}
/* Word Definition in a match: Practice's card */
.duel-defbox{flex-direction:column;gap:8px;margin-bottom:10px}
.duel-choices{margin:6px 0 4px}
.duel-play form[hidden]{display:none}
/* ===== Play with friends on computers: like Practice — requests and units on the left, the games on
   the right; a match uses the width (Word Search: the question beside the grid) ===== */
@media (min-width:1100px){
  #screen-eng-duel.active > .eng-container{max-width:1300px}
  #duelRoot:has(> .duel-game){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:24px;row-gap:14px;align-items:start}
  #duelRoot:has(> .duel-game) > *{grid-column:1;margin:0}
  #duelRoot:has(> .duel-game) > .pr-step-title{grid-column:2;grid-row:1;align-self:start;margin:4px 0 0}
  /* the units panel (the last one on the left) spans the rows of the games, so both columns start together */
  #duelRoot:has(> .duel-game) > div.eng-panel:last-of-type{grid-row:span 4}
  #duelRoot:has(> .duel-game) > .duel-game{grid-column:2}
  #duelRoot:has(> .duel-game) > .duel-game:nth-of-type(1){grid-row:2}
  #duelRoot:has(> .duel-game) > .duel-game:nth-of-type(2){grid-row:3}
  #duelRoot:has(> .duel-game) > .duel-game:nth-of-type(3){grid-row:4}
  /* the page of a new match and the waiting room: one tidy column in the middle */
  #duelRoot:has(.duel-search),#duelRoot:has(> .duel-row){max-width:780px;margin:0 auto}
  /* a match: board and question side by side */
  #duelRoot:has(#duelPlay),#duelRoot:has(#duelWsGrid){max-width:1180px;margin:0 auto}
  #duelRoot .duel-play:has(#duelWsGrid){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:26px;align-items:start}
  #duelRoot .duel-play:has(#duelWsGrid) > #duelWsClue{grid-column:1}
  #duelRoot .duel-play:has(#duelWsGrid) > #duelMsg{grid-column:1}
  #duelRoot .duel-play:has(#duelWsGrid) > #duelWsGrid{grid-column:2;grid-row:1 / span 3;width:min(calc(100vh - 260px),620px);margin:0}
}
/* The first letter shows inside the blank (same length for every word: no letter count) */
.gs-blank.duel-blank{color:#0d6b48;min-width:96px;text-align:left;padding:0 4px;font-weight:800;line-height:1.1}
/* Score board for 2 to 60 players: a ranked list, or groups with their totals */
.duel-rank{display:flex;flex-direction:column;gap:6px;margin:8px 0 12px}
.duel-rank.is-many{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.duel-rk{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:12px;background:#fff;border:1.5px solid #ece6fb;transition:transform .35s cubic-bezier(.22,1,.36,1)}
.duel-rk b{flex:1;min-width:0;color:#05143F;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.duel-rk-n{min-width:24px;text-align:center;font-weight:800;color:#7b89a8}
.duel-rk-pts{font-weight:800;color:#5f6b82;font-size:13px;white-space:nowrap}
.duel-rk.me{border-color:#7c3aed;background:#f3edff}
.duel-rk.gone{opacity:.5}.duel-rk.gone b{text-decoration:line-through}
.duel-rank > .duel-rk:first-child:not(.gone) .duel-rk-pts{color:#7c3aed}
.duel-teams{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:8px 0 12px}
.duel-team{border:2px solid color-mix(in srgb,var(--tc) 30%,transparent);border-radius:16px;padding:10px;background:color-mix(in srgb,var(--tc) 6%,#fff)}
.duel-team.lead{border-color:var(--tc);box-shadow:0 6px 18px color-mix(in srgb,var(--tc) 22%,transparent)}
.duel-team.mine .duel-team-h b::after{content:' · you';font-weight:600;color:#7b89a8}
.duel-team-h{display:flex;justify-content:space-between;align-items:center;margin:0 4px 6px}
.duel-team-h b{color:var(--tc);font-size:15px}
.duel-team-h span{font-weight:800;font-size:18px;color:#05143F}
.duel-team .duel-rank{margin:0}
/* The host's group editor */
.duel-gbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 4px;font-weight:700;color:#5f6b82}
.duel-gbar b{min-width:18px;text-align:center;color:#05143F}
.duel-gedit{display:flex;flex-direction:column;gap:6px;margin:6px 0 10px}
.duel-grow{display:flex;align-items:center;gap:10px;justify-content:space-between;background:#fff;border:1.5px solid #ece6fb;border-radius:12px;padding:6px 8px 6px 12px}
.duel-grow b{color:#05143F;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.duel-gpick{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.duel-gpick button{width:34px;height:34px;border-radius:10px;border:1.5px solid color-mix(in srgb,var(--tc) 35%,transparent);background:#fff;color:var(--tc);font:inherit;font-weight:800;cursor:pointer;transition:background .2s,color .2s,transform .2s}
.duel-gpick button:active{transform:scale(.92)}
.duel-gpick button.on{background:var(--tc);border-color:var(--tc);color:#fff}
.duel-gsum{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.duel-gsum .duel-tag{border-left:4px solid var(--tc)}
.duel-chips{display:flex;flex-wrap:wrap;gap:5px}
.duel-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#fff;border:1px solid #ece6fb;font-size:12.5px;font-weight:700;color:#05143F}
.duel-chip b{color:var(--tc)}
.duel-chip.me{border-color:var(--tc);background:color-mix(in srgb,var(--tc) 12%,#fff)}
.duel-chip.gone{opacity:.5;text-decoration:line-through}
.duel-all{margin:-4px 0 12px}
.duel-all summary{cursor:pointer;font-weight:800;color:#7c3aed;font-size:13px;padding:4px 2px}
/* The ranking as a stack of cards in depth (Individual, 3 players or more): drag up / down */
.dstk{position:relative;z-index:0;height:142px;margin:4px 0 8px;clip-path:inset(0 -30px -40px -30px);perspective:700px;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;overflow:visible}
.dstk.is-drag{cursor:grabbing}
.dstk-card{position:absolute;left:50%;top:0;width:min(90%,460px);height:54px;display:flex;align-items:center;gap:14px;padding:0 18px;border-radius:18px;
  background:#fff;border:1.5px solid #e4dafa;box-shadow:0 8px 22px rgba(60,30,140,.12);will-change:transform,opacity,filter;transform-origin:50% 0;backface-visibility:hidden}
.dstk-card b{flex:1;min-width:0;font-size:17px;color:#05143F;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dstk-rank{min-width:44px;font-weight:900;font-size:17px;color:#7c3aed}
.dstk-pts{font-weight:800;font-size:16px;color:#5f6b82;white-space:nowrap}
.dstk-card.me{border-color:#7c3aed;background:#f3edff}
.dstk-card.gone b{text-decoration:line-through;color:#9aa6bd}
@media (prefers-reduced-motion:reduce){.dstk-card{filter:none!important}}
/* The word whose time ran out: shown to everyone in orange */
.duel-answer.is-late,.duel-found.is-late,.duel-found.is-late b{color:#f07a12}
.duel-answer.is-late{background:#fff3e6;border-radius:8px;padding:0 6px}

/* the header row stays above the ranking (Leave always works) */
.duel-top{position:relative;z-index:3}
.duel-again{margin-bottom:10px}
.eng-primary-btn.duel-home-ghost{background:#fff;color:#5b21b6;border:1.5px solid #e4dafa;box-shadow:none}

/* What just happened in the round, under the ranking */
.duel-info{margin:0 0 10px;padding:9px 14px;border-radius:14px;background:#fff;border:1.5px solid #ece6fb;font-weight:700;font-size:14px;color:#5f6b82;text-align:center}
.duel-info b{color:#05143F}
.duel-info.is-me{background:#ecfdf3;border-color:#a7f0c6;color:#15803d}.duel-info.is-me b{color:#15803d}
.duel-info.is-ok{background:#f3edff;border-color:#e4dafa;color:#5b21b6}
.duel-info.is-late{background:#fff3e6;border-color:#ffd9b3;color:#c2570c}.duel-info.is-late b{color:#f07a12}
.duel-info.is-skip{background:#f6f8fc;color:#5f6b82}

/* Letter: found / total as one clear badge */
.duel-lcount{display:table;margin:2px auto 12px;padding:6px 18px;border-radius:999px;background:#f3edff;border:1.5px solid #e4dafa;color:#5b21b6;font-weight:800;font-size:20px;letter-spacing:.5px}
.duel-lcount b{color:#05143F}.duel-lcount span{margin:0 4px;opacity:.5}

/* Find screen: clear blocks */
.dfx-sec{margin:14px 0 4px;padding-top:14px;border-top:1px solid #eee8fb}
.dfx-sec:first-of-type{border-top:0;padding-top:4px}
.dfx-h{margin:0 0 10px;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#7c3aed}
.dfx-opts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dfx-opt{display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 8px;border-radius:16px;border:2px solid #e4dafa;background:#fff;font:inherit;cursor:pointer;transition:border-color .2s,background-color .2s,transform .15s}
.dfx-opt b{font-size:16px;color:#05143F}.dfx-opt small{font-size:12px;color:#5f6b82;font-weight:600;text-align:center}
.dfx-opt .dfx-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#f3edff;color:#5b21b6;font-weight:900;font-size:18px}
.dfx-opt.on{border-color:#7c3aed;background:#f7f2ff;box-shadow:0 4px 16px rgba(124,58,237,.18)}
.dfx-opt.on .dfx-ic{background:linear-gradient(135deg,#7c3aed,#5b21b6);color:#fff}
.dfx-opt:active{transform:scale(.97)}
/* Individual or Group, asked on Send */
.dfx-ask{position:fixed;inset:0;z-index:1000;background:rgba(5,20,63,.45);display:flex;align-items:flex-end;justify-content:center;animation:dfxIn .2s ease}
.dfx-ask-card{width:min(100%,480px);background:#fff;border-radius:24px 24px 0 0;padding:20px 16px calc(16px + env(safe-area-inset-bottom));animation:dfxUp .28s cubic-bezier(.2,.8,.2,1)}
.dfx-ask-card h4{margin:0 0 14px;text-align:center;font-size:18px;color:#05143F}
.dfx-big{display:flex;align-items:center;gap:12px;width:100%;margin:0 0 10px;padding:14px;border-radius:16px;border:2px solid #e4dafa;background:#fff;font:inherit;text-align:left;cursor:pointer}
.dfx-big:hover,.dfx-big:active{border-color:#7c3aed;background:#f7f2ff}
.dfx-big .dfx-ic{font-size:24px;width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#f3edff;flex:none}
.dfx-big b{display:block;font-size:16px;color:#05143F}.dfx-big small{color:#5f6b82;font-weight:600;font-size:12.5px}
.dfx-cancel{width:100%;padding:12px;border:0;background:none;font:inherit;font-weight:800;color:#5f6b82;cursor:pointer}
@keyframes dfxIn{from{opacity:0}}@keyframes dfxUp{from{transform:translateY(100%)}}

/* Play with friends: the game cards lean to violet (Practice stays green) */
#duelRoot .eng-menu-card.duel-game{background:linear-gradient(135deg,#fff 0%,#f6f1ff 55%,#efe7ff 100%);border-color:#e4dafa}
#duelRoot .duel-game .eng-menu-icon{background:linear-gradient(135deg,#f3edff,#e9defc);color:#6d28d9}
#duelRoot .duel-game .eng-menu-icon .ico{color:#6d28d9}
#duelRoot .duel-game .eng-menu-arrow{color:#7c3aed}
#duelRoot .duel-game:hover{border-color:#c4b0f3;box-shadow:0 8px 24px rgba(124,58,237,.14)}

/* Play with friends: dark violet bar with the game's name */
#screen-eng-duel .eng-topbar{background:linear-gradient(135deg,#2e0a6e,#4c1d95 60%,#5b21b6)!important;box-shadow:0 10px 28px rgba(76,29,149,.3)}
/* the row under it: three equal parts (round · clock · Leave), same height */
#duelRoot .duel-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}
#duelRoot .duel-top > :last-child{justify-self:end}
#duelRoot .duel-rnd{justify-self:start;display:inline-flex;align-items:center;gap:4px;height:40px;padding:0 14px;border-radius:12px;background:#f3edff;border:1.5px solid #e4dafa;color:#4c1d95;font-size:14px;font-weight:800;white-space:nowrap}
#duelRoot .duel-rnd b{color:#05143F}
#duelRoot .duel-top .duel-btn.small{height:40px;padding:0 16px}
#duelRoot .duel-clock{display:flex;flex-direction:column;align-items:center;justify-content:center;height:40px;line-height:1}
/* the game's name on the left of the bar, Back on the right */
#screen-eng-duel .eng-topbar{display:flex!important;align-items:center;gap:10px}
#screen-eng-duel .eng-topbar > div[style]{display:none}
#screen-eng-duel .eng-brand-title{order:-1;flex:1;min-width:0;text-align:left!important;position:static!important;transform:none!important;margin:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#screen-eng-duel .eng-back-btn{order:1;margin-left:auto}

/* the word in the Time is up toast, in orange */
.duel-late-w{color:#f07a12;font-weight:800}
/* space before the game name on the left */
#screen-eng-duel .eng-topbar{padding-left:22px!important;padding-right:14px!important}
#screen-eng-duel .eng-brand-title{padding-left:2px}
/* the whole name; a long one fades out just before Back */
#screen-eng-duel .eng-brand-title{max-width:none!important;flex:1 1 auto;overflow:hidden!important;text-overflow:clip!important;min-width:0}
#screen-eng-duel .eng-topbar > div[style]{display:none!important}
#screen-eng-duel .eng-brand-title.is-long{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
#screen-eng-duel .eng-back-btn{flex:0 0 auto;position:relative;z-index:2}

/* Setup in two steps: a quick light blur between them */
.dfx-step.dfx-out,.duel-send.dfx-out{opacity:0;filter:blur(6px);transform:translateY(-4px);transition:opacity .17s ease,filter .17s ease,transform .17s ease}
.dfx-step.dfx-in{animation:dfxStep .24s ease both}
@keyframes dfxStep{from{opacity:0;filter:blur(6px);transform:translateY(6px)}}
/* Word Definition: the level card, its colour follows the level */
.dfx-lv{display:flex;flex-direction:column;align-items:center;gap:4px;padding:18px 12px;border-radius:18px;border:2px solid var(--lc);background:var(--lb);transition:background-color .25s,border-color .25s;margin-bottom:6px}
.dfx-lv b{font-size:22px;font-weight:900;color:var(--lc);transition:color .25s}
.dfx-lv small{font-size:13.5px;font-weight:700;color:#5f6b82}
.dfx-lv[data-lv="1"]{--lc:#16a34a;--lb:#ecfdf3}
.dfx-lv[data-lv="2"]{--lc:#ea7a0c;--lb:#fff4e8}
.dfx-lv[data-lv="3"]{--lc:#7c3aed;--lb:#f5efff}
.dfx-next{margin-top:14px}
/* waiting room: a player who accepted is green; the host's remove button */
.duel-rk.ok{border-color:#86efac!important;background:#f0fdf4!important}
.duel-rk.ok .duel-rk-pts{color:#15803d!important}

/* step change: the same card; the old content blurs away, the new one comes in */
.dfx-step > *,.duel-send{transition:opacity .26s ease,filter .26s ease,transform .26s ease}
.dfx-fade{opacity:0!important;filter:blur(5px);transform:translateY(-3px)}
.dfx-pre{opacity:0;filter:blur(5px);transform:translateY(6px);transition:none!important}
/* the host's remove button in the waiting room */
#duelRoot .duel-rk .duel-rk-pts{margin-left:auto}
#duelRoot .duel-rk .duel-rk-x{all:unset;box-sizing:border-box;flex:none;width:30px;height:30px;margin-left:6px;border-radius:10px;display:grid;place-items:center;cursor:pointer;color:#e11d48;background:#fff1f3;border:1px solid #ffd3dc;transition:background-color .2s,color .2s,transform .15s}
#duelRoot .duel-rk .duel-rk-x svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
#duelRoot .duel-rk .duel-rk-x:hover{background:#e11d48;color:#fff;border-color:#e11d48}
#duelRoot .duel-rk .duel-rk-x:active{transform:scale(.9)}
#duelRoot .duel-rk .duel-rk-x:disabled{opacity:.45;cursor:default}

/* Invite friends button (setup) and the invite form (waiting room) */
.duel-invite-btn{display:flex;align-items:center;justify-content:center;gap:10px}
.duel-invite-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.duel-form.duel-invite{margin:12px 0 4px}

/* Waiting room: mode on top, IDs list, groups A to D */
.duel-lmodes{margin:0 0 14px}
.duel-stage{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 10px}
#duelRoot .duel-chip-x{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:#f3edff;border:1.5px solid #e4dafa;color:#4c1d95;font-weight:800;font-size:14px}
#duelRoot .duel-chip-x span{color:#e11d48;font-size:16px;line-height:1}
.duel-sendinv{margin:0 0 12px}
#duelInvMsg:empty{display:none}
.duel-gl{flex:none;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;font-weight:900;font-size:13px;color:#fff;background:var(--tc);margin-left:auto}
.duel-gl + .duel-rk-pts{margin-left:8px!important}
.duel-gpanel .duel-gq{margin:6px 0 8px;font-weight:800;color:#05143F}
.duel-gmine{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:10px}
.duel-gmine button{height:48px;font-size:18px!important}
.duel-gmine button{width:auto!important}

/* skip like time up (orange); a word found by a friend in red */
.duel-answer.is-other{color:#e11d48!important}
.duel-other-w{color:#e11d48;font-weight:800}

/* Level: green / orange / red; the slider's own bubble is hidden (the card is the bubble) */
.dfx-lv[data-lv="3"]{--lc:#e11d48;--lb:#fff1f3}
.dfx-lv{will-change:clip-path,transform}

/* the level's drop */
.dfx-drop{position:fixed;z-index:50;width:22px;height:22px;border-radius:50%;pointer-events:none;box-shadow:0 4px 12px rgba(0,0,0,.18);will-change:transform}
.dfx-drop.is-held{left:0;top:0;transition:background-color .25s}
/* the slider's drop and thumb always share the level's colour (the one being chosen while held) */
#duelLvSl .nbs-sl-goo i{transition:background-color .25s}
#duelLvSl[data-lv="1"] .nbs-sl{--ink:#16a34a!important}
#duelLvSl[data-lv="2"] .nbs-sl{--ink:#ea7a0c!important}
#duelLvSl[data-lv="3"] .nbs-sl{--ink:#e11d48!important}
#duelLvSl.is-fly .nbs-sl-bub{opacity:0!important;transition:none!important}
/* the new level spreading over the card (a layer on top, the card itself stays) */
.dfx-lv{position:relative}
.dfx-lv-new{position:absolute;inset:-2px;margin:0;pointer-events:none;clip-path:circle(0 at 50% 100%)}
.dfx-lv-new b,.dfx-lv-new small{animation:dfxTxt .45s ease both}
@keyframes dfxTxt{from{filter:blur(3px)}}
/* the drop melting into the card's edge */
.dfx-goo{position:fixed;inset:0;z-index:50;pointer-events:none;filter:url(#dfxGooF)}
.dfx-goo i{position:absolute;left:0;top:0;border-radius:50%;will-change:transform}
.dfx-goo i.dfx-pull{border-radius:45% 45% 50% 50% / 30% 30% 70% 70%}
/* the card's bottom edge bending towards the drop */
.dfx-edge{position:absolute;top:calc(100% - 2px);z-index:3;overflow:visible;pointer-events:none}
.dfx-edge .f{fill:var(--lb)}
.dfx-edge .l{fill:none;stroke:var(--lc);stroke-width:2;stroke-linecap:round}
/* the level card changes softly (colours cross-fade, the text blurs in) */
.dfx-lv{transition:background-color .45s ease,border-color .45s ease!important}
.dfx-lv b{transition:color .45s ease}
/* Practice · Word Definition: the level first (alone), Continue shows the game */
#screen-eng-guess.gs-pick .gs-norep,#screen-eng-guess.gs-pick .eng-stat-row,#screen-eng-guess.gs-pick .eng-game-card{display:none!important}
#screen-eng-guess:not(.gs-pick) #gsLevelBox{display:none!important}
#screen-eng-guess.gs-in .gs-norep,#screen-eng-guess.gs-in .eng-stat-row,#screen-eng-guess.gs-in .eng-game-card{animation:dfxStep .32s ease both}
#gsLevelBox[data-lv="1"] .nbs-sl{--ink:#16a34a}
#gsLevelBox[data-lv="2"] .nbs-sl{--ink:#ea7a0c}
#gsLevelBox[data-lv="3"] .nbs-sl{--ink:#e11d48}
#gsLevelBox .nbs-sl-goo i{transition:background-color .25s}
#gsLevelBox .dfx-lv{margin-bottom:4px}
/* English home: Learning and Practice icons without their square */
.eng-menu-icon.is-bare{background:none!important;box-shadow:none!important;border:0!important;overflow:visible}
.eng-menu-icon.is-bare::before,.eng-menu-icon.is-bare::after{display:none!important}
.eng-pro-ico{width:46px;height:46px;display:block;transition:transform .3s cubic-bezier(.22,1,.36,1)}
.eng-menu-card:hover .eng-pro-ico{transform:scale(1.08) rotate(-3deg)}
/* Practice · Word Definition: Continue in the screen's navy */
#gsLevelBox .gs-lv-go{background:linear-gradient(135deg,#05143F 0%,#0a1d54 100%)!important;color:#fff!important;box-shadow:0 10px 24px rgba(5,20,63,.22)!important;border:0!important}
#gsLevelBox .gs-lv-go:hover{background:linear-gradient(135deg,#0a1d54 0%,#11266e 100%)!important}
/* Home cards and English home: professional icons without their square */
.card-icon.is-bare,.eng-menu-icon.eng-rank-icon.is-bare{background:none!important;box-shadow:none!important;border:0!important;overflow:visible}
.card-icon.is-bare::before,.card-icon.is-bare::after{display:none!important}
.card-icon.is-bare .eng-pro-ico{width:48px;height:48px}
.card:hover .eng-pro-ico{transform:scale(1.08) rotate(-3deg)}
.eng-rank-icon.is-bare{display:flex;flex-direction:column;align-items:center;gap:0}
.eng-rank-icon.is-bare .eng-pro-ico{width:38px;height:38px}
.eng-rank-icon.is-bare b{color:#b86e00}

/* Ranking medal: gold, silver, bronze, then grey with a red ribbon; the rank written on it */
.eng-rank-icon.is-bare{position:relative;width:48px;height:52px}
.eng-rank-icon.is-bare .eng-medal{width:46px;height:46px;display:block!important}
.eng-rank-icon.is-bare b{position:absolute;left:0;right:0;top:19px;transform:translateY(-50%) translateY(-1px);text-align:center;font:900 15px/1 'Plus Jakarta Sans',Inter,sans-serif;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.25)}
.eng-medal .m1{stop-color:#2fd69b}.eng-medal .m2{stop-color:#12a877}.eng-medal .m3{stop-color:#0a7a59}
.eng-medal .r1{stop-color:#0b8f69}.eng-medal .r2{stop-color:#05143F}
/* Play with friends: a little bigger, in line with the others */
.eng-menu-duel .eng-pro-ico{width:58px;height:58px;margin:-4px}
/* Level box: the swap icon in its corner */
.eng-info-lv{position:relative}
.eng-lvswap{all:unset;box-sizing:border-box;position:absolute;top:6px;right:6px;width:28px;height:28px;border-radius:9px;display:grid;place-items:center;cursor:pointer;color:#0b8f69;background:rgba(11,143,105,.1);transition:background-color .2s,transform .3s cubic-bezier(.22,1,.36,1)}
.eng-lvswap svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.eng-lvswap:hover{background:rgba(11,143,105,.2)}
.eng-lvswap:active{transform:rotate(180deg) scale(.92)}
.eng-lvswap.hidden{display:none!important}
/* Icons stay still when a card is touched or hovered; every icon sits in the same column, same size */
.card .eng-pro-ico,.card:hover .eng-pro-ico,.card:active .eng-pro-ico,
.eng-menu-card .eng-pro-ico,.eng-menu-card:hover .eng-pro-ico,.eng-menu-card:active .eng-pro-ico{transform:none!important;transition:none!important}
.card-icon.is-bare,.card-icon.is-bare:hover,.eng-menu-icon.is-bare,.eng-menu-icon.is-bare:hover{transform:none!important;transition:none!important}
.card-icon.is-bare{flex:0 0 56px!important;width:56px!important;height:56px!important;display:flex!important;align-items:center;justify-content:center;align-self:center;margin:0}
.card-icon.is-bare .eng-pro-ico{width:46px!important;height:46px!important;display:block}
.eng-menu-icon.is-bare{flex:0 0 56px;width:56px;height:56px;display:flex;align-items:center;justify-content:center}
.eng-menu-icon.is-bare .eng-pro-ico{width:46px;height:46px;display:block}
.eng-menu-duel .eng-menu-icon.is-bare .eng-pro-ico{width:52px;height:52px;margin:0}
.eng-rank-icon.is-bare b{top:23px!important}
/* Course Resources: search with an AI-like glow, tidy filter tiles, a chevron that turns on open */
#booksSearch .bs-field.bs-ai{position:relative;border:0;padding:0 16px;border-radius:18px;background:#fff;color:#0b8f69;box-shadow:0 6px 22px rgba(52,204,153,.16);isolation:isolate}
#booksSearch .bs-field.bs-ai::before{content:"";position:absolute;inset:0;padding:2px;border-radius:inherit;z-index:-1;
  background:linear-gradient(110deg,#34CC99,#3b82f6,#8b5cf6,#ec4899,#34CC99);background-size:300% 100%;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
  animation:bsGlow 4s linear infinite}
#booksSearch .bs-field.bs-ai::after{content:"";position:absolute;inset:-4px;border-radius:22px;z-index:-2;opacity:.35;filter:blur(10px);
  background:linear-gradient(110deg,#34CC99,#3b82f6,#8b5cf6,#ec4899,#34CC99);background-size:300% 100%;animation:bsGlow 4s linear infinite;transition:opacity .3s}
#booksSearch .bs-field.bs-ai:focus-within{box-shadow:0 8px 28px rgba(139,92,246,.2)}
#booksSearch .bs-field.bs-ai:focus-within::after{opacity:.6}
#booksSearch .bs-spark{flex:none;fill:currentColor;color:#8b5cf6;animation:bsSpark 2.4s ease-in-out infinite}
#booksSearch .bs-field input{font-weight:600;padding:15px 0}
#booksSearch .bs-field input::placeholder{color:#8a96b0;font-weight:600}
@keyframes bsGlow{to{background-position:300% 0}}
@keyframes bsSpark{0%,100%{transform:scale(1) rotate(0);color:#8b5cf6}50%{transform:scale(1.15) rotate(12deg);color:#34CC99}}
@media (prefers-reduced-motion:reduce){#booksSearch .bs-field.bs-ai::before,#booksSearch .bs-field.bs-ai::after,#booksSearch .bs-spark{animation:none}}
#booksSugg{display:grid!important;grid-template-columns:repeat(4,1fr);gap:8px!important;margin-top:12px!important}
@media (max-width:560px){#booksSugg{grid-template-columns:1fr 1fr}}
#booksSugg button{display:flex;align-items:center;justify-content:center;gap:7px;padding:11px 8px!important;border-radius:14px!important;font-size:13.5px!important;white-space:nowrap;box-shadow:0 2px 8px rgba(5,20,63,.05)}
#booksSugg button svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:#0b8f69}
#booksSugg button.on svg{color:#34CC99}
.book-head .ico.book-chev{width:38px;height:38px;border-radius:12px;background:#f1f9f5;color:#0b8f69}
.book-head .ico.book-chev svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.book-item.open .book-head .ico.book-chev{transform:rotate(90deg)!important;background:#0b8f69;color:#fff}
/* the moving border drawn with two backgrounds (white inside, the colours on the 2px border) */
#booksSearch .bs-field.bs-ai{border:2px solid transparent!important;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(110deg,#34CC99,#3b82f6,#8b5cf6,#ec4899,#34CC99) border-box!important;background-size:100% 100%,300% 100%!important;animation:bsGlow2 4s linear infinite}
#booksSearch .bs-field.bs-ai::before{display:none}
@keyframes bsGlow2{to{background-position:0 0,300% 0}}
@media (prefers-reduced-motion:reduce){#booksSearch .bs-field.bs-ai{animation:none}}
#booksSearch .bs-field.bs-ai{isolation:auto!important}
#booksSearch .bs-field.bs-ai::after{z-index:-1!important}
/* Course Resources search, Apple Intelligence style: a soft edge of light turning around the box (mostly
   blue and green), a glow behind it, and the word Search shining with the same colours */
@property --bsA{syntax:'<angle>';inherits:false;initial-value:0deg}
#booksSearch .bs-field.bs-ai{--bsC:conic-gradient(from var(--bsA),#0a84ff,#34CC99,#30d5c8,#0a84ff,#5ac8fa,#34CC99,#7c5cff,#0a84ff);
  border:2px solid transparent!important;background:linear-gradient(#fff,#fff) padding-box,var(--bsC) border-box!important;background-size:auto!important;
  animation:bsTurn 5s linear infinite!important;box-shadow:none!important}
#booksSearch .bs-field.bs-ai::after{inset:-6px!important;border-radius:24px!important;background:var(--bsC)!important;background-size:auto!important;
  filter:blur(14px)!important;opacity:.45!important;animation:bsTurn 5s linear infinite!important}
#booksSearch .bs-field.bs-ai:focus-within::after{opacity:.7!important}
@keyframes bsTurn{to{--bsA:360deg}}
#booksSearch .bs-spark{color:#0a84ff;animation:bsSpark2 3s ease-in-out infinite!important}
@keyframes bsSpark2{0%,100%{color:#0a84ff;transform:scale(1)}50%{color:#34CC99;transform:scale(1.15) rotate(10deg)}}
#booksSearch .bs-field{position:relative}
#booksSearch .bs-ph{position:absolute;left:48px;top:50%;transform:translateY(-50%);pointer-events:none;font-weight:700;font-size:15.5px;letter-spacing:.01em;
  background:linear-gradient(100deg,#5f7090 0%,#5f7090 35%,#0a84ff 45%,#34CC99 52%,#5f7090 62%,#5f7090 100%);background-size:250% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;animation:bsShine 3.2s ease-in-out infinite;transition:opacity .2s}
#booksSearch input:not(:placeholder-shown) + .bs-ph{opacity:0}
@keyframes bsShine{0%{background-position:100% 0}60%,100%{background-position:0 0}}
@media (prefers-reduced-motion:reduce){#booksSearch .bs-field.bs-ai,#booksSearch .bs-field.bs-ai::after,#booksSearch .bs-ph,#booksSearch .bs-spark{animation:none!important}}
/* the books fill their whole square: a little smaller so they match the compass and the calculator */
#booksCard .card-icon.is-bare .eng-pro-ico{width:38px!important;height:38px!important}
/* Play with friends: back to the size of the other icons (it reached past their left edge) */
.eng-menu-duel .eng-menu-icon.is-bare .eng-pro-ico{width:44px!important;height:44px!important;margin:0!important}
/* Admin → Calendar: show / hide an event's name on the home page */
.cal-eye{all:unset;box-sizing:border-box;flex:none;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;cursor:pointer;color:#0b8f69;background:#eefaf4;border:1px solid #cdeedd}
.cal-eye svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cal-eye.off{color:#8a96b0;background:#f2f4f8;border-color:#e3e7ef}
.cal-ev-line.is-hidden .cal-in[data-f="t"]{opacity:.55;text-decoration:line-through}
/* today's column keeps its pulse even in the lighter mode (a cheap transform) */
html.lite .wr-today .wr-tk{animation:wr-pulse 1.1s ease-in-out infinite}
/* Today's column: instead of the pulse, red rises from the bottom to the top, then goes back down */
.wr-today .wr-tk,html.lite .wr-today .wr-tk{
  background-image:linear-gradient(to top,#a5121a 0%,#e5252a 42%,#ff7a7e 50%,#ffd6d8 58%,#ffe9ea 100%)!important;
  background-size:100% 240%!important;
  animation:wr-rise 2.2s cubic-bezier(.45,0,.25,1) infinite!important}
@keyframes wr-rise{0%,8%{background-position:0 0}50%,58%{background-position:0 100%}100%{background-position:0 0}}
@media (prefers-reduced-motion:reduce){.wr-today .wr-tk{animation:none!important;background-position:0 100%}}
/* today: red at the bottom and a very light red at the top from the start; the red rises up, then goes back */
@keyframes wr-rise{0%,8%{background-position:0 32%}50%,58%{background-position:0 100%}100%{background-position:0 32%}}
.wr-today .wr-tk,html.lite .wr-today .wr-tk{background-position:0 32%}
@media (prefers-reduced-motion:reduce){.wr-today .wr-tk{background-position:0 32%!important}}
/* Accueil hero: the building, part of the background (hero-bld.js) */
#section-accueil .hero > .hero-bld{position:absolute;inset:-8% -6%;z-index:0;pointer-events:none;opacity:0;transition:opacity 1.6s ease;
  transform-origin:50% 40%;will-change:transform;contain:strict}
#section-accueil .hero > .hero-bld.ready{opacity:.5}
#section-accueil .hero > .hero-bld img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 55%;display:block;will-change:opacity}
@media (max-width:700px){#section-accueil .hero > .hero-bld.ready{opacity:.42}#section-accueil .hero > .hero-bld img{object-position:47% 60%}}
#section-accueil .hero > .hero-inner{position:relative;z-index:2}
/* tall (portrait) screens: the building stays in the lower part, smaller and fainter, away from the title */
@media (max-aspect-ratio:4/5){
  #section-accueil .hero > .hero-bld{inset:auto -10% -6% -10%;height:66%}
  #section-accueil .hero > .hero-bld.ready{opacity:.34}
  #section-accueil .hero > .hero-bld img{object-position:47% 45%;-webkit-mask-image:linear-gradient(transparent,#000 30%);mask-image:linear-gradient(transparent,#000 30%)}
}
#section-accueil .hero > .hero-bld.ready{opacity:.42}
@media (max-aspect-ratio:4/5){#section-accueil .hero > .hero-bld.ready{opacity:.34}}
/* the building in the hero and in Specialisations (hero-bld.js) */
#section-accueil .sec-bld{position:absolute;inset:-8% -6%;z-index:0;pointer-events:none;opacity:0;transition:opacity 1.6s ease;transform-origin:50% 40%;will-change:transform;contain:strict}
#section-accueil .sec-bld.ready{opacity:.42}
#section-accueil .sec-bld img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 55%;display:block;will-change:opacity}
#section-accueil .sec-bld-spec.ready{opacity:.3}
#section-accueil .specialisations{position:relative;overflow:hidden;isolation:isolate}
#section-accueil .specialisations > :not(.sec-bld){position:relative;z-index:1}
@media (max-aspect-ratio:4/5){
  #section-accueil .sec-bld-hero{inset:auto -10% -6% -10%;height:66%}
  #section-accueil .sec-bld-hero.ready{opacity:.34}
  #section-accueil .sec-bld-hero img{object-position:47% 45%;-webkit-mask-image:linear-gradient(transparent,#000 30%);mask-image:linear-gradient(transparent,#000 30%)}
  #section-accueil .sec-bld-spec.ready{opacity:.24}
  #section-accueil .sec-bld-spec img{object-position:45% 50%}
}
/* hero building a little higher (a nicer place, more of the building in view) */
#section-accueil .sec-bld-hero{inset:-16% -6% -2% -6%}
#section-accueil .sec-bld-hero img{object-position:50% 62%}
@media (max-aspect-ratio:4/5){
  #section-accueil .sec-bld-hero{inset:auto -10% 8% -10%;height:62%}
  #section-accueil .sec-bld-hero img{object-position:47% 42%;-webkit-mask-image:linear-gradient(transparent,#000 28%,#000 82%,transparent);mask-image:linear-gradient(transparent,#000 28%,#000 82%,transparent)}
}
/* Specialisations: frosted glass cards over the building */
#section-accueil .spec{background:rgba(255,255,255,.06);-webkit-backdrop-filter:blur(12px) saturate(1.3);backdrop-filter:blur(12px) saturate(1.3);box-shadow:0 8px 28px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.08)}
#section-accueil .spec.open{background:rgba(255,255,255,.09)}
html.lite #section-accueil .spec{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
/* hero building: a long, soft fade at the top (no visible edge of the gradient) */
#section-accueil .sec-bld-hero img{-webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.05) 12%,rgba(0,0,0,.25) 26%,rgba(0,0,0,.6) 40%,#000 56%);mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.05) 12%,rgba(0,0,0,.25) 26%,rgba(0,0,0,.6) 40%,#000 56%)}
@media (max-aspect-ratio:4/5){
  #section-accueil .sec-bld-hero img{-webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.06) 14%,rgba(0,0,0,.3) 30%,rgba(0,0,0,.7) 46%,#000 60%,#000 80%,transparent);mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.06) 14%,rgba(0,0,0,.3) 30%,rgba(0,0,0,.7) 46%,#000 60%,#000 80%,transparent)}
}
/* Specialisations: room for the 3D camera (the layer is a little larger) */
#section-accueil .sec-bld-spec{inset:-14% -12%}
/* Specialisations: the new low view, a little more transparent; the cards' glass blur lighter (smoother scroll) */
#section-accueil .sec-bld-spec{inset:-12% -10%}
#section-accueil .sec-bld-spec.ready{opacity:.22}
#section-accueil .sec-bld-spec img{object-position:50% 40%}
@media (max-aspect-ratio:4/5){#section-accueil .sec-bld-spec.ready{opacity:.18}#section-accueil .sec-bld-spec img{object-position:52% 40%}}
#section-accueil .spec{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html.lite #section-accueil .spec{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(14,30,80,.55)}
/* Specialisations cards: clearly frosted (also in lite mode, a bit lighter there) */
#section-accueil .spec{background:rgba(255,255,255,.07);-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2)}
html.lite #section-accueil .spec{background:rgba(255,255,255,.08);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
/* The building's camera as a scroll-driven animation (runs with the scroll itself: no lag on a fast
   scroll). The same move for both photos: down (slower than the page) and a little to the left, a
   touch of zoom-out. */
@supports (animation-timeline: view()){
  #section-accueil #specialisations{view-timeline:--bldSpec block}
  #section-accueil .sec-bld.is-css{will-change:transform;animation-timing-function:linear;animation-fill-mode:both;animation-duration:auto}
  #section-accueil .sec-bld-hero.is-css{animation-name:bldHero;animation-timeline:scroll(root block);animation-range:0 100vh}
  #section-accueil .sec-bld-spec.is-css{animation-name:bldSpec;animation-timeline:--bldSpec;animation-range:cover 0% cover 100%}
}
@keyframes bldHero{from{transform:translate3d(0,0,0) scale(1.07)}to{transform:translate3d(2.5vw,27vh,0) scale(1.03)}}
@keyframes bldSpec{from{transform:translate3d(-1.25vw,-18vh,0) scale(1.07)}to{transform:translate3d(1.25vw,18vh,0) scale(1.03)}}
@media (prefers-reduced-motion:reduce){#section-accueil .sec-bld.is-css{animation:none}}
/* Specialisations: zooms in softly while a specialisation is open */
#section-accueil #specialisations .sec-bld img{transition:transform 1.3s cubic-bezier(.22,1,.36,1);will-change:opacity,transform}
#section-accueil #specialisations.has-open .sec-bld img{transform:scale(1.16)}
/* phones: the Specialisations photo zoomed out, the whole building in view */
@media (max-aspect-ratio:4/5){
  #section-accueil .sec-bld-spec{inset:-4% -4%}
  #section-accueil .sec-bld-spec img{object-fit:contain;object-position:50% 30%}
}
/* phones: the Specialisations photo zoomed out only a little (about 1.7 screen widths wide), the
   building in full and well framed, not tiny */
@media (max-aspect-ratio:4/5){
  #section-accueil .sec-bld-spec img{object-fit:cover;width:175vw;height:auto;aspect-ratio:1534/1025;inset:6% auto auto 50%;margin-left:-87.5vw}
}
@media (max-aspect-ratio:4/5){
  #section-accueil .sec-bld-spec img{max-width:none}
  #section-accueil .sec-bld-spec.ready{opacity:.32}
}
#section-accueil .sec-bld-spec.ready{opacity:.3}
/* today's column: a softer red gradient (long, gentle steps instead of a sharp band) */
.wr-today .wr-tk,html.lite .wr-today .wr-tk{background-image:linear-gradient(to top,#a5121a 0%,#c91a22 18%,#e5252a 32%,#ee5a5e 46%,#f48d90 58%,#f9bcbe 72%,#fde0e1 86%,#fff1f1 100%)!important}
/* Mandatory schedule: the table at its own height, right under the title (the free space stays below it),
   its bottom corners rounded */
.flip-card.forced .saved-content{display:block!important}
.flip-card.forced .forced-wrap{display:block}
.flip-card.forced .forced-wrap .week-grid{display:table!important;width:100%!important;border-radius:0 0 16px 16px!important;overflow:hidden;border-collapse:separate;border-spacing:0;box-shadow:0 6px 16px rgba(150,40,27,.08)!important}
.flip-card.forced .forced-wrap .week-grid tbody tr:last-child td:first-child{border-bottom-left-radius:16px}
.flip-card.forced .forced-wrap .week-grid tbody tr:last-child td:last-child{border-bottom-right-radius:16px}
.flip-card.forced .forced-wrap .week-grid tbody td{vertical-align:middle}
.flip-card.forced .forced-desc{margin:10px 0 0;border-radius:12px;padding:10px 14px;font-size:13px;color:#7a1f14;background:#fdf3f2;border-top:1px solid #f6d5d1}

/* Admin → Mandatory schedule: edited like Schedule → Edit Grid (no colours); specialisation tabs under the year tabs */
#forcedMajorBar{margin-top:8px}
#forcedMajorBar[hidden]{display:none}
#forcedGrid .ge-palette{padding:10px 12px;margin-bottom:10px}
#forcedGrid .ge-head{margin-bottom:8px}
#forcedGrid .ge-palette .ge-chips{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
#forcedGrid .ge-palette .ge-chip{min-height:32px;padding:5px 8px;font-size:12px}
#forcedGrid .ge-hint{margin-top:6px;font-size:11.5px}
#forcedGrid .group-editor-grid input{transition:border-color .15s,box-shadow .15s,transform .15s}
#forcedGrid .group-editor-grid input[readonly]{cursor:pointer;caret-color:transparent}
#forcedGrid .group-editor-grid input.ge-sel{border-color:var(--green) !important;border-style:solid;box-shadow:0 0 0 3px rgba(52,204,153,.35);transform:scale(1.03)}
#forcedGrid .group-editor-grid.swapping input:not(.ge-sel){border-style:dashed;border-color:rgba(31,156,114,.5)}
#forcedGrid .group-editor-grid input.ge-editing{border-color:#0d2a72 !important;box-shadow:0 0 0 3px rgba(52,204,153,.3);cursor:text;caret-color:auto}
#forcedGrid{--red:#0d2a72;--red-dark:#05143F}
@media (max-width:700px){
  #forcedGrid .ge-days{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:8px}
  #forcedGrid .ge-palette .ge-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
  #forcedGrid .group-editor-grid[data-day="0"] :is(th,td):nth-child(n+3),
  #forcedGrid .group-editor-grid[data-day="1"] :is(th,td):is(:nth-child(2),:nth-child(n+4)),
  #forcedGrid .group-editor-grid[data-day="2"] :is(th,td):is(:nth-child(-n+3):not(:first-child),:nth-child(n+5)),
  #forcedGrid .group-editor-grid[data-day="3"] :is(th,td):is(:nth-child(-n+4):not(:first-child),:nth-child(n+6)),
  #forcedGrid .group-editor-grid[data-day="4"] :is(th,td):nth-child(-n+5):not(:first-child){display:none}
  #forcedGrid .group-editor-grid input{font-size:16px;min-height:44px}
  #forcedGrid .group-editor-grid,#forcedGrid table{width:100%}
}

/* Bottom bar: smoother pill, and it can be swiped (the pill follows the finger) as well as tapped */
.bottom-nav{touch-action:none;-webkit-user-select:none;user-select:none}
.bn-pill.ready{will-change:transform;transition:transform .42s cubic-bezier(.22,1,.36,1),width .3s ease,height .3s ease,opacity .25s ease,background .25s ease !important}
.bn-pill.ready.dragging{transition:transform .09s linear,background .25s ease !important}
.bottom-nav.dragging .bottom-nav-btn.active:not(.bn-near){color:#7b89a8 !important}
.bottom-nav.dragging .bottom-nav-btn.bn-near{color:#fff !important}
.bottom-nav-btn .bn-icon{transition:opacity .2s ease,transform .25s ease,color .25s ease}
.bottom-nav.dragging .bottom-nav-btn.bn-near .bn-icon{transform:scale(1.12)}
@media (prefers-reduced-motion:reduce){.bn-pill.ready{transition:none !important}}

/* Course Resources search, all phones: no zoom on iPhone (16px text), no native search look, a soft glow
   that never repaints (shadows breathing on the compositor instead of a blurred turning gradient), and
   a clear sign when it is tapped: a small press, a quick pulse, the light turning faster and brighter */
#booksSearch .bs-field input{font-size:16px!important;-webkit-appearance:none;appearance:none;border-radius:0;-webkit-tap-highlight-color:transparent}
#booksSearch .bs-field input::-webkit-search-decoration,#booksSearch .bs-field input::-webkit-search-cancel-button{-webkit-appearance:none}
#booksSearch .bs-ph{font-size:16px}
#booksSearch .bs-field.bs-ai{-webkit-tap-highlight-color:transparent;transform:translateZ(0);transition:transform .25s cubic-bezier(.22,1,.36,1)}
#booksSearch .bs-field.bs-ai::after{inset:0!important;border-radius:18px!important;background:none!important;filter:none!important;
  box-shadow:-10px 4px 22px rgba(10,132,255,.32),10px 4px 22px rgba(52,204,153,.32),0 10px 26px rgba(124,92,255,.18)!important;
  opacity:.55!important;animation:bsBreath 3.2s ease-in-out infinite!important;will-change:opacity;transition:opacity .35s ease}
#booksSearch .bs-field.bs-ai:active{transform:scale(.985)}
#booksSearch .bs-field.bs-ai:focus-within{animation:bsTurn 1.8s linear infinite,bsTap .5s cubic-bezier(.22,1,.36,1)!important}
#booksSearch .bs-field.bs-ai:focus-within::after{opacity:1!important;animation:bsBreathOn 1.4s ease-in-out infinite!important}
@keyframes bsBreath{0%,100%{opacity:.4}50%{opacity:.7}}
@keyframes bsBreathOn{0%,100%{opacity:.75}50%{opacity:1}}
@keyframes bsTap{0%{transform:scale(.985)}45%{transform:scale(1.02)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){#booksSearch .bs-field.bs-ai,#booksSearch .bs-field.bs-ai::after,#booksSearch .bs-field.bs-ai:focus-within,#booksSearch .bs-field.bs-ai:focus-within::after{animation:none!important}}
/* iPhone, Accueil: the building layers move as one ready-made picture (no inner layers redrawn while
   scrolling), and the frosted cards over them blur a little less */
html.ios #section-accueil .sec-bld{-webkit-backface-visibility:hidden;backface-visibility:hidden}
html.ios #section-accueil .sec-bld img{will-change:auto}
html.ios #section-accueil #specialisations .sec-bld img{will-change:auto}
html.ios #section-accueil .spec{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}

/* Mandatory schedule description: plain red text (no box), its red gently pulsing to catch the eye; the
   line breaks and spaces typed by the admin are kept */
.flip-card.forced .forced-desc,.forced-desc{background:none!important;border:0!important;border-radius:0!important;padding:4px 12px 2px!important;
  color:#C0392B;font-weight:700;white-space:pre-wrap;animation:forcedPulse 2.4s ease-in-out infinite}
@keyframes forcedPulse{0%,100%{color:#C0392B}50%{color:#ff3b30}}
@media (prefers-reduced-motion:reduce){.forced-desc{animation:none}}

/* Mandatory schedule card: the exam title in plain white on the red header (no shine) */
.flip-card.forced .forced-own-title{color:#fff}

/* Mandatory schedule: a larger, soft red shadow under the table itself (layered, spreading gently downwards) */
.flip-card.forced .forced-wrap .week-grid{box-shadow:0 6px 10px -4px rgba(192,57,43,.16),0 14px 24px -8px rgba(192,57,43,.22),0 26px 40px -14px rgba(192,57,43,.22)!important}
.flip-card.forced .forced-wrap{padding-bottom:16px}

/* Sign-in and Access Denied (every screen size)
   · the screen fills the window exactly and does not scroll (no white band under it); a very small
     window may still scroll inside the screen itself
   · background: a green sweep in the top-left corner and green/navy from the bottom-right (slow
     drift), and two soft blue lights that float around — transform and opacity only, nothing repainted
   · the card and the lights come in softly when the screen opens and leave softly (also before the
     Google sign-in page opens) */
html:has(#section-student.active #screen-login.active),html:has(#section-student.active #screen-blocked.active),
html:has(#section-student.active #screen-login.active) body,html:has(#section-student.active #screen-blocked.active) body{overflow:hidden;overscroll-behavior:none}
#screen-login.active,#screen-blocked.active{position:fixed!important;inset:0;z-index:20;margin:0!important;width:auto!important;max-width:none!important;
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;padding:24px 18px 104px;box-sizing:border-box;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:#f6f9fd;isolation:isolate}
#screen-login.active::before,#screen-blocked.active::before{content:"";position:fixed;inset:-12%;z-index:-2;pointer-events:none;will-change:transform;
  background:
    radial-gradient(58% 40% at 14% 13%,rgba(0,196,140,.85) 0%,rgba(0,211,151,.55) 30%,rgba(0,211,151,.18) 58%,rgba(0,211,151,0) 76%),
    radial-gradient(50% 38% at 88% 88%,rgba(5,20,63,.95) 0%,rgba(13,42,114,.65) 22%,rgba(0,196,140,.55) 44%,rgba(0,211,151,.18) 64%,rgba(0,211,151,0) 80%);
  animation:authIn .9s cubic-bezier(.22,1,.36,1) both,authDrift 24s ease-in-out .9s infinite alternate}
/* the two blue lights: one high on the right, one low on the left, each floating on its own path */
#screen-login.active::after,#screen-blocked.active::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;will-change:transform,opacity;
  background:
    radial-gradient(circle at 78% 24%,rgba(37,99,235,.40) 0,rgba(59,130,246,.18) 11vmax,rgba(59,130,246,0) 22vmax),
    radial-gradient(circle at 20% 76%,rgba(37,99,235,.30) 0,rgba(96,165,250,.14) 10vmax,rgba(96,165,250,0) 20vmax);
  animation:authLightsIn 1.1s cubic-bezier(.22,1,.36,1) both,authFloat 14s ease-in-out 1.1s infinite alternate}
@keyframes authIn{from{opacity:0;transform:scale(1.08)}to{opacity:1;transform:none}}
@keyframes authLightsIn{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}
@keyframes authDrift{0%{transform:translate3d(0,0,0) rotate(0deg) scale(1)}50%{transform:translate3d(2%,1.5%,0) rotate(3deg) scale(1.03)}100%{transform:translate3d(-1.5%,2.5%,0) rotate(-2deg) scale(1.02)}}
@keyframes authFloat{0%{transform:translate3d(0,0,0) scale(1)}33%{transform:translate3d(-6vmin,5vmin,0) scale(1.08)}66%{transform:translate3d(4vmin,-4vmin,0) scale(.95)}100%{transform:translate3d(-3vmin,-6vmin,0) scale(1.05)}}

/* the white card (both screens): comes in softly */
#screen-login .login-card,#screen-blocked .blocked-card{position:relative;z-index:1;width:min(430px,100%);max-width:430px;margin:auto;box-sizing:border-box;text-align:center;flex:none;
  background:rgba(255,255,255,.95);border:1px solid rgba(255,255,255,.95);border-radius:30px;padding:36px 28px 28px;
  box-shadow:0 30px 70px rgba(5,20,63,.12),0 6px 18px rgba(5,20,63,.06)}
#screen-login.active .login-card,#screen-blocked.active .blocked-card{animation:authCardIn .75s cubic-bezier(.22,1,.36,1) .08s both}
#screen-login.active .login-card > *,#screen-blocked.active .blocked-card > *{animation:authItemIn .6s cubic-bezier(.22,1,.36,1) both}
#screen-login.active .login-card > :nth-child(1),#screen-blocked.active .blocked-card > :nth-child(1){animation-delay:.18s}
#screen-login.active .login-card > :nth-child(2),#screen-blocked.active .blocked-card > :nth-child(2){animation-delay:.26s}
#screen-login.active .login-card > :nth-child(3),#screen-blocked.active .blocked-card > :nth-child(3){animation-delay:.34s}
#screen-login.active .login-card > :nth-child(4),#screen-blocked.active .blocked-card > :nth-child(4){animation-delay:.42s}
#screen-login.active .login-card > :nth-child(n+5),#screen-blocked.active .blocked-card > :nth-child(n+5){animation-delay:.5s}
@keyframes authCardIn{from{opacity:0;transform:translate3d(0,26px,0) scale(.96)}to{opacity:1;transform:none}}
@keyframes authItemIn{from{opacity:0;transform:translate3d(0,12px,0)}to{opacity:1;transform:none}}
/* leaving (Continue with Google): the card rises and fades, the lights fade */
#screen-login.auth-out .login-card{animation:authCardOut .36s cubic-bezier(.4,0,1,1) both!important}
#screen-login.auth-out::before,#screen-login.auth-out::after{animation:authBgOut .36s ease-in both!important}
@keyframes authCardOut{to{opacity:0;transform:translate3d(0,-18px,0) scale(.97)}}
@keyframes authBgOut{to{opacity:0}}
@media (prefers-reduced-motion:reduce){
  #screen-login.active::before,#screen-blocked.active::before,#screen-login.active::after,#screen-blocked.active::after,
  #screen-login.active .login-card,#screen-blocked.active .blocked-card,#screen-login.active .login-card > *,#screen-blocked.active .blocked-card > *{animation:none!important}}

/* sign-in card */
#screen-login .login-logo{width:146px;height:auto;margin:0 auto 20px}
#screen-login .login-card h1{font-size:clamp(21px,5.6vw,25px);color:#0a1d54;margin-bottom:14px;letter-spacing:-.01em}
#screen-login .lg-lead{display:flex;flex-direction:column;gap:6px;margin:0 auto 24px!important;max-width:350px}
#screen-login .lg-lead b{font-size:16px;font-weight:700;color:#0a1d54;line-height:1.4}
#screen-login .lg-lead span{font-size:14.5px;color:#5f6b82;line-height:1.6}
#screen-login .btn-google,#screen-blocked .bl-btn{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;box-sizing:border-box;
  min-height:58px;padding:12px 22px 12px 26px;border-radius:999px;font-size:16.5px;font-weight:700;font-family:'Plus Jakarta Sans',sans-serif;
  transition:transform .2s cubic-bezier(.22,1,.36,1),box-shadow .25s ease,background-color .25s ease;-webkit-tap-highlight-color:transparent;cursor:pointer}
#screen-login .btn-google{background:#dbe8fd;border:0;color:#0a1d54;box-shadow:0 10px 24px rgba(37,99,235,.14),0 1px 0 rgba(255,255,255,.8) inset}
#screen-login .btn-google:hover{background:#cfe0fc;transform:translateY(-1px);box-shadow:0 14px 30px rgba(37,99,235,.2)}
#screen-login .btn-google:active,#screen-blocked .bl-btn:active{transform:scale(.98)}
#screen-login .btn-google > svg:first-child{width:26px;height:26px;flex:none}
.lg-sep{display:block;width:1.5px;height:28px;border-radius:2px;background:currentColor;opacity:.25;flex:none}
.lg-txt{flex:1;text-align:center;white-space:nowrap}
.lg-chev{flex:none;opacity:.85}
/* the note under the button: a soft red reminder */
#screen-login .lg-note{display:flex;align-items:center;justify-content:center;gap:8px;margin:18px auto 0!important;padding:9px 14px;border-radius:14px;
  background:#fff1f1;border:1px solid #fbd5d5;color:#c62828;font-size:13px;font-weight:600;line-height:1.4;width:fit-content;max-width:100%;box-sizing:border-box}
#screen-login .lg-note svg{flex:none}

/* Access Denied */
#screen-blocked .bl-ban{width:96px;height:96px;margin:0 auto 14px;display:grid;place-items:center;filter:drop-shadow(0 10px 18px rgba(200,16,46,.22))}
#screen-blocked .bl-ban svg{width:96px;height:96px;overflow:visible}
#screen-blocked.active .bl-shield{stroke-dasharray:170;stroke-dashoffset:170;animation:blDraw 1s cubic-bezier(.65,0,.35,1) .3s forwards}
#screen-blocked.active .bl-ring{stroke-dasharray:70;stroke-dashoffset:70;animation:blDraw .6s cubic-bezier(.65,0,.35,1) .9s forwards}
#screen-blocked.active .bl-slash{stroke-dasharray:23;stroke-dashoffset:23;animation:blDraw .35s ease-out 1.35s forwards}
@keyframes blDraw{to{stroke-dashoffset:0}}
#screen-blocked .blocked-card h2{font-size:clamp(27px,7.4vw,33px);margin-bottom:10px;letter-spacing:-.01em;font-weight:800;
  background:linear-gradient(100deg,#c8102e 0%,#c8102e 38%,#ff8a8a 50%,#c8102e 62%,#c8102e 100%);background-size:260% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:blShine 3.4s linear 1.4s infinite}
@keyframes blShine{0%{background-position:100% 0}100%{background-position:-160% 0}}
#screen-blocked .bl-sub{font-size:17px;font-weight:700;color:#0a1d54;line-height:1.45;margin:0 auto 12px;max-width:340px}
#screen-blocked .bl-who{font-size:14px;color:#5f6b82;line-height:1.7;margin:0 auto 10px}
#screen-blocked .bl-help{font-size:15.5px;color:#3c4a6b;line-height:1.55;margin:0 auto 24px;max-width:340px}
#screen-blocked .bl-nbs{color:#00b884}
#screen-blocked .bl-help b:not(.bl-nbs){color:#0a1d54}
#screen-blocked .bl-btn{background:#0a1d54;border:0;color:#fff;box-shadow:0 12px 28px rgba(5,20,63,.25)}
#screen-blocked .bl-btn:hover{background:#0d2a72}
@media (prefers-reduced-motion:reduce){#screen-blocked .bl-shield,#screen-blocked .bl-ring,#screen-blocked .bl-slash{stroke-dashoffset:0!important;animation:none!important}
  #screen-blocked .blocked-card h2{animation:none;color:#c8102e;-webkit-text-fill-color:#c8102e}}
@media (max-width:420px){#screen-login .login-card,#screen-blocked .blocked-card{padding:30px 20px 24px;border-radius:26px}
  #screen-login .login-logo{width:126px}
  #screen-login .btn-google,#screen-blocked .bl-btn{gap:12px;padding:10px 16px 10px 20px;font-size:15.5px}}#screen-login .lg-note span{text-align:left}

/* Sign-in / Access Denied never scroll: the screen is exactly the window, and the moving lights are
   drawn inside it (clipped), so their movement can never make the page bigger. On short windows the
   card gets tighter so it always fits. */
#screen-login.active,#screen-blocked.active{overflow:hidden!important;contain:layout paint;height:100dvh;padding:16px 16px 96px}
#screen-login.active::before,#screen-blocked.active::before,#screen-login.active::after,#screen-blocked.active::after{position:absolute!important}
#screen-login .login-card,#screen-blocked .blocked-card{max-height:calc(100dvh - 120px);margin:auto}
@media (max-height:720px){
  #screen-login .login-card,#screen-blocked .blocked-card{padding:24px 20px 20px}
  #screen-login .login-logo{width:108px;margin-bottom:12px}
  #screen-login .login-card h1{margin-bottom:8px}
  #screen-login .lg-lead{margin-bottom:16px!important}
  #screen-blocked .bl-ban,#screen-blocked .bl-ban svg{width:72px;height:72px}
  #screen-blocked .bl-help{margin-bottom:16px}
  #screen-login .lg-note{margin-top:12px!important}}
@media (max-height:580px){
  #screen-login .login-logo{width:84px;margin-bottom:8px}
  #screen-login .login-card h1{font-size:19px}
  #screen-login .lg-lead{font-size:14px!important}
  #screen-login .btn-google,#screen-blocked .bl-btn{min-height:48px}
  #screen-blocked .bl-who{display:none}}
/* one sentence, one colour */
#screen-login .lg-lead{display:block;font-size:15.5px;font-weight:500;line-height:1.6;color:#3c4a6b;max-width:340px;margin:0 auto 24px!important;text-wrap:balance}
/* Contact administration: a light button above Sign Out */
#screen-blocked .bl-contact{display:flex;text-decoration:none;background:#eef3fb;color:#0a1d54;border:1px solid #dbe4f3;margin-bottom:10px;box-shadow:0 6px 16px rgba(5,20,63,.06)}
#screen-blocked .bl-contact.hidden{display:none}
#screen-blocked .bl-contact:hover{background:#e3ebf8}

/* Admin: the Access & permissions page and its button (next to the Attendance panel) */
.ap-page{max-width:900px;margin:0 auto;padding:6px 0 120px}
.ap-head{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.ap-head h3{margin:0;font-size:20px;font-weight:800;color:#05143F;font-family:'Plus Jakarta Sans',sans-serif}
.ap-back{display:inline-flex;align-items:center;gap:4px;border:1px solid #d9e3f5;background:#fff;color:#05143F;border-radius:999px;padding:8px 14px 8px 10px;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.ap-back:active{transform:scale(.97)}
.ap-row{display:flex;gap:10px;flex-wrap:wrap}
.ap-row input{flex:1 1 220px;min-width:0;padding:12px 14px;border:1.5px solid #d9e3f5;border-radius:12px;font:inherit;font-size:16px}
.ap-row .btn-red{width:auto;padding:12px 22px}
#screen-access .admin-card h4{color:#05143F}
@media (max-width:640px){html.is-admin .sched-split{flex-wrap:wrap}html.is-admin .sched-split > .btn-green{flex:1 1 calc(50% - 4px)}html.is-admin .sched-split > #chooseScheduleBtn{flex-basis:100%}}
/* a finger on the sign-in / denied screen never drags the page underneath (phones scroll the page behind a fixed screen otherwise) */
#screen-login.active,#screen-blocked.active{touch-action:none;overscroll-behavior:none}

/* ---- Sign-in polish ---- */
/* the card: one column, everything centred, the same width for the button and the note, even spacing */
#screen-login .login-card{display:flex;flex-direction:column;align-items:center;gap:0;width:min(400px,100%);max-width:400px;padding:34px 26px 26px}
#screen-login .login-card > *{margin-left:auto!important;margin-right:auto!important}
#screen-login .login-logo{display:flex;justify-content:center;margin:0 auto 18px}
#screen-login .login-card h1{margin:0 0 10px;text-align:center}
#screen-login .lg-lead{margin:0 0 22px!important;text-align:center}
#screen-login .btn-google,#screen-login .lg-note{width:100%;box-sizing:border-box}
#screen-login .lg-note{justify-content:center;margin:14px 0 0!important}
#screen-login .lg-note span{text-align:center}
/* the Google button: its own clear colour (deep NBS blue), the G on a white disc; pressed: it sinks,
   a light ripples out from the middle and it turns green while Google opens */
#screen-login .btn-google{position:relative;overflow:hidden;isolation:isolate;color:#fff;border:0;
  background:linear-gradient(135deg,#1d4ed8 0%,#0a1d54 100%);box-shadow:0 12px 28px rgba(10,29,84,.32),0 1px 0 rgba(255,255,255,.18) inset;
  transition:transform .2s cubic-bezier(.22,1,.36,1),box-shadow .3s ease,filter .3s ease}
#screen-login .btn-google > svg:first-child{box-sizing:content-box;padding:6px;background:#fff;border-radius:50%;width:22px;height:22px;box-shadow:0 2px 6px rgba(0,0,0,.15)}
#screen-login .btn-google .lg-sep{opacity:.35}
#screen-login .btn-google:hover{background:linear-gradient(135deg,#2563eb 0%,#0d2a72 100%);box-shadow:0 16px 34px rgba(10,29,84,.38)}
#screen-login .btn-google::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;
  background:linear-gradient(135deg,#00D397 0%,#009970 100%);opacity:0;transition:opacity .35s ease}
#screen-login .btn-google::before{content:"";position:absolute;left:50%;top:50%;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;
  background:rgba(255,255,255,.55);transform:scale(0);opacity:0;pointer-events:none}
#screen-login .btn-google.is-go{transform:scale(.97);box-shadow:0 8px 20px rgba(0,153,112,.35)}
#screen-login .btn-google.is-go::after{opacity:1}
#screen-login .btn-google.is-go::before{animation:lgRipple .6s cubic-bezier(.22,1,.36,1) forwards}
@keyframes lgRipple{0%{transform:scale(0);opacity:.9}100%{transform:scale(22);opacity:0}}

/* the moving lights: their layers are much bigger than the window, so while they drift and turn
   their edges never come into view (no hard line any more) */
#screen-login.active::before,#screen-blocked.active::before{inset:-25%!important;
  background:
    radial-gradient(40% 28% at 26% 25%,rgba(0,196,140,.85) 0%,rgba(0,211,151,.55) 30%,rgba(0,211,151,.18) 58%,rgba(0,211,151,0) 76%),
    radial-gradient(36% 27% at 75% 75%,rgba(5,20,63,.95) 0%,rgba(13,42,114,.65) 22%,rgba(0,196,140,.55) 44%,rgba(0,211,151,.18) 64%,rgba(0,211,151,0) 80%)!important}
#screen-login.active::after,#screen-blocked.active::after{inset:-20%!important;
  background:
    radial-gradient(circle at 70% 31%,rgba(37,99,235,.40) 0,rgba(59,130,246,.18) 11vmax,rgba(59,130,246,0) 22vmax),
    radial-gradient(circle at 29% 69%,rgba(37,99,235,.30) 0,rgba(96,165,250,.14) 10vmax,rgba(96,165,250,0) 20vmax)!important}
@keyframes authDrift{0%{transform:translate3d(0,0,0) rotate(0deg) scale(1)}50%{transform:translate3d(1.5%,1%,0) rotate(2deg) scale(1.03)}100%{transform:translate3d(-1%,1.5%,0) rotate(-1.5deg) scale(1.02)}}

/* entrance with a soft blur: the card and its lines come in from a blur */
@keyframes authCardIn{from{opacity:0;transform:translate3d(0,26px,0) scale(.96);filter:blur(12px)}to{opacity:1;transform:none;filter:blur(0)}}
@keyframes authItemIn{from{opacity:0;transform:translate3d(0,12px,0);filter:blur(6px)}to{opacity:1;transform:none;filter:blur(0)}}
@keyframes authCardOut{to{opacity:0;transform:translate3d(0,-18px,0) scale(.97);filter:blur(10px)}}
html.lite #screen-login.active .login-card,html.lite #screen-login.active .login-card > *{animation-name:authCardInLite}
@keyframes authCardInLite{from{opacity:0;transform:translate3d(0,20px,0)}to{opacity:1;transform:none}}

/* bottom-right: a soft green light right in the far corner (no dark blob above the bar) */
#screen-login.active::before,#screen-blocked.active::before{
  background:
    radial-gradient(40% 28% at 26% 25%,rgba(0,196,140,.85) 0%,rgba(0,211,151,.55) 30%,rgba(0,211,151,.18) 58%,rgba(0,211,151,0) 76%),
    radial-gradient(30% 22% at 84% 84%,rgba(0,190,140,.75) 0%,rgba(0,211,151,.45) 28%,rgba(13,42,114,.14) 52%,rgba(0,211,151,0) 74%)!important}
/* a slightly larger logo, in proportion with the card */
#screen-login .login-logo{width:182px!important;margin-bottom:20px}
@media (max-height:720px){#screen-login .login-logo{width:140px!important}}
@media (max-height:580px){#screen-login .login-logo{width:104px!important}}
/* opening Student (sign-in asked): the logo and the lines come in from a light blur */
@keyframes authItemIn{from{opacity:0;transform:translate3d(0,12px,0);filter:blur(8px)}to{opacity:1;transform:none;filter:blur(0)}}
/* Continue with Google: the lights drift away out of the window and fade, the card leaves softly */
#screen-login.auth-out::before{animation:authBgAway .55s cubic-bezier(.55,0,.3,1) both!important}
#screen-login.auth-out::after{animation:authLightsAway .55s cubic-bezier(.55,0,.3,1) both!important}
@keyframes authBgAway{to{opacity:0;transform:scale(1.35) rotate(6deg)}}
@keyframes authLightsAway{to{opacity:0;transform:translate3d(0,-10vh,0) scale(1.6)}}
#screen-login.auth-out .login-card{animation:authCardOut .45s cubic-bezier(.4,0,1,1) both!important}

/* bottom-right: green in the far corner with some blue around it (not all pushed away) */
#screen-login.active::before,#screen-blocked.active::before{
  background:
    radial-gradient(40% 28% at 26% 25%,rgba(0,196,140,.85) 0%,rgba(0,211,151,.55) 30%,rgba(0,211,151,.18) 58%,rgba(0,211,151,0) 76%),
    radial-gradient(30% 22% at 85% 85%,rgba(0,190,140,.72) 0%,rgba(0,211,151,.42) 26%,rgba(0,211,151,0) 60%),
    radial-gradient(34% 26% at 80% 80%,rgba(29,78,216,.42) 0%,rgba(37,99,235,.20) 40%,rgba(37,99,235,0) 70%)!important}
/* the lights come in softly when the sign-in screen opens: they rise from the corners and grow into place */
#screen-login.active::before,#screen-blocked.active::before{animation:authIn 1.4s cubic-bezier(.22,1,.36,1) both,authDrift 24s ease-in-out 1.4s infinite alternate}
#screen-login.active::after,#screen-blocked.active::after{animation:authLightsIn 1.6s cubic-bezier(.22,1,.36,1) .1s both,authFloat 14s ease-in-out 1.7s infinite alternate}
@keyframes authIn{from{opacity:0;transform:scale(1.15)}to{opacity:1;transform:none}}
@keyframes authLightsIn{from{opacity:0;transform:translate3d(0,6vh,0) scale(.7)}to{opacity:1;transform:none}}
/* a slightly taller card: more room above the logo and under the note */
#screen-login .login-card{padding:46px 26px 34px}
@media (max-height:720px){#screen-login .login-card{padding:30px 20px 24px}}

/* Access & permissions page: the site's blue title bar (same as the other pages) */
#screen-access .ap-nbs-head{margin:0 0 18px}
/* the three buttons under the profile: one icon style, the same size and weight */
.sched-split .pa-ico svg{width:17px!important;height:17px!important;stroke-width:2}
@media (max-width:640px){html.is-admin .sched-split > .att-panel-btn{white-space:nowrap;font-size:clamp(12px,3.4vw,14px);gap:6px;padding-left:8px;padding-right:8px}}

/* the three buttons under the profile: bare icons (no little box), duotone, same size */
.sched-split .pa-ico{display:inline-grid;place-items:center;width:22px;height:22px;flex:none;background:none!important;box-shadow:none!important;border:0!important;padding:0!important;border-radius:0!important}
.sched-split .pa-ico svg{width:22px!important;height:22px!important;display:block}
@media (max-width:640px){.sched-split .pa-ico,.sched-split .pa-ico svg{width:20px!important;height:20px!important}}

/* Course Resources search: a search icon (no AI sparkle) */
#booksSearch .bs-lens{flex:none;color:#2563eb;transition:color .3s ease,transform .3s cubic-bezier(.22,1,.36,1)}
#booksSearch .bs-field.bs-ai:focus-within .bs-lens{color:#0b8f69;transform:scale(1.08)}
/* tapped: a strong colourful glow and the colours turn faster */
#booksSearch .bs-field.bs-ai:focus-within{animation:bsTurn 1.1s linear infinite,bsTap .5s cubic-bezier(.22,1,.36,1)!important}
#booksSearch .bs-field.bs-ai:focus-within::after{opacity:1!important;
  box-shadow:-14px 6px 30px rgba(10,132,255,.55),14px 6px 30px rgba(52,204,153,.55),0 14px 34px rgba(124,92,255,.40),0 0 0 3px rgba(10,132,255,.12)!important;
  animation:bsBreathOn .9s ease-in-out infinite!important}
/* results found: a light sweeps once across the box, in the site's green and blue */
#booksSearch .bs-field{overflow:visible}
#booksSearch .bs-field .bs-shine{display:none}
#booksSearch .bs-field.bs-found{background:
    linear-gradient(105deg,rgba(255,255,255,0) 30%,rgba(52,204,153,.30) 45%,rgba(10,132,255,.30) 55%,rgba(255,255,255,0) 70%) padding-box,
    linear-gradient(#fff,#fff) padding-box,var(--bsC) border-box!important;
  background-size:250% 100%,100% 100%,auto!important;background-repeat:no-repeat!important;animation:bsTurn 1.1s linear infinite,bsFound 1s cubic-bezier(.4,0,.2,1) both!important}
@keyframes bsFound{from{background-position:120% 0,0 0,0 0}to{background-position:-120% 0,0 0,0 0}}
/* where a found file is: its path in the site's green, the steps separated by › */
.bs-files .bs-where{display:flex;flex-wrap:wrap;align-items:center;gap:2px 5px;margin-top:3px;color:#0b8f69!important;font-size:12px;font-weight:700}
.bs-files .bs-where i{font-style:normal;color:#7fd3b5;font-weight:800}
@media (prefers-reduced-motion:reduce){#booksSearch .bs-field.bs-found{animation:none!important}}

/* a filter tapped (Lessons, Midterm…): the whole bar "thinks" like an AI search — a soft band of
   blue / green / violet light runs across it twice, its glow swells and the edge colours race */
#booksSearch .bs-field.bs-ai::before{display:block!important;content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;
  background:linear-gradient(100deg,rgba(255,255,255,0) 20%,rgba(10,132,255,.28) 38%,rgba(52,204,153,.34) 50%,rgba(124,92,255,.26) 62%,rgba(255,255,255,0) 80%);
  background-size:260% 100%;background-repeat:no-repeat;background-position:130% 0;opacity:0;-webkit-mask:none;mask:none;padding:0;animation:none}
#booksSearch .bs-field.bs-think::before{animation:bsThink 1.4s cubic-bezier(.45,0,.25,1) both!important}
#booksSearch .bs-field.bs-think{animation:bsTurn .7s linear infinite,bsTap .5s cubic-bezier(.22,1,.36,1)!important}
#booksSearch .bs-field.bs-think::after{opacity:1!important;animation:bsThinkGlow 1.4s ease-in-out both!important;
  box-shadow:-14px 6px 30px rgba(10,132,255,.55),14px 6px 30px rgba(52,204,153,.55),0 14px 34px rgba(124,92,255,.40)!important}
#booksSearch .bs-field input,#booksSearch .bs-lens{position:relative;z-index:2}
#booksSearch .bs-ph{z-index:2}
@keyframes bsThink{0%{opacity:0;background-position:130% 0}12%{opacity:1}48%{background-position:-30% 0}50%{background-position:130% 0}88%{opacity:1}100%{opacity:0;background-position:-30% 0}}
@keyframes bsThinkGlow{0%{opacity:.5;transform:scale(1)}40%{opacity:1;transform:scale(1.03)}100%{opacity:.7;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){#booksSearch .bs-field.bs-think::before,#booksSearch .bs-field.bs-think,#booksSearch .bs-field.bs-think::after{animation:none!important}}

/* no grey/white tap rectangle from the phone on the filters and the search bar */
#booksSugg button,#booksSearch,#booksSearch *{-webkit-tap-highlight-color:transparent}
#booksSugg button:focus{outline:none}
#booksSugg button:focus-visible{outline:2px solid #34CC99;outline-offset:2px}
/* the "thinking" light runs across the bar once */
#booksSearch .bs-field.bs-think::before{animation:bsThinkOnce 1.1s cubic-bezier(.45,0,.25,1) both!important}
@keyframes bsThinkOnce{0%{opacity:0;background-position:130% 0}15%{opacity:1}85%{opacity:1}100%{opacity:0;background-position:-30% 0}}
#booksSearch .bs-field.bs-think::after{animation:bsThinkGlow 1.1s ease-in-out both!important}

/* the "thinking" light stays inside the bar's coloured edge (it washed the left and right edges white)
   and fades in the light's own colours, not through white */
#booksSearch .bs-field.bs-ai::before{inset:2px!important;border-radius:16px!important;
  background-image:linear-gradient(100deg,rgba(10,132,255,0) 20%,rgba(10,132,255,.22) 38%,rgba(52,204,153,.28) 50%,rgba(124,92,255,.22) 62%,rgba(124,92,255,0) 80%)!important;
  background-size:260% 100%!important;background-repeat:no-repeat!important}
/* the glow behind it no longer grows past the bar's sides */
@keyframes bsThinkGlow{0%{opacity:.5}40%{opacity:1}100%{opacity:.75}}
/* the results light also stays inside the edge */
#booksSearch .bs-field.bs-found{background:
    linear-gradient(105deg,rgba(52,204,153,0) 30%,rgba(52,204,153,.26) 45%,rgba(10,132,255,.26) 55%,rgba(10,132,255,0) 70%) padding-box,
    linear-gradient(#fff,#fff) padding-box,var(--bsC) border-box!important;background-size:250% 100%,100% 100%,auto!important;background-repeat:no-repeat!important}

/* the thinking light: a band a third of the bar wide that travels from the far left to the far right
   (the same on a phone and on a wide computer screen) */
#booksSearch .bs-field.bs-ai::before{background-size:38% 100%!important;background-position:-70% 0}
#booksSearch .bs-field.bs-think::before{animation:bsLeftRight 1.1s cubic-bezier(.45,0,.25,1) both!important}
@keyframes bsLeftRight{0%{opacity:0;background-position:-70% 0}12%{opacity:1}88%{opacity:1}100%{opacity:0;background-position:170% 0}}
/* the coloured glow around the bar: no jumps — it fades in when the bar is tapped (or a filter is
   chosen) and fades out when it is left, over 0.6 s, instead of switching on and off */
#booksSearch .bs-field.bs-ai::after{animation:none!important;opacity:.45!important;
  box-shadow:-10px 4px 22px rgba(10,132,255,.30),10px 4px 22px rgba(52,204,153,.30),0 10px 26px rgba(124,92,255,.16)!important;
  transition:opacity .6s ease,box-shadow .6s ease!important}
#booksSearch .bs-field.bs-ai:focus-within::after,#booksSearch .bs-field.bs-ai.bs-think::after{opacity:1!important;
  box-shadow:-14px 6px 30px rgba(10,132,255,.55),14px 6px 30px rgba(52,204,153,.55),0 14px 34px rgba(124,92,255,.40),0 0 0 3px rgba(10,132,255,.12)!important}
@media (prefers-reduced-motion:reduce){#booksSearch .bs-field.bs-ai::after{transition:none!important}}

/* the thinking light: a wide, soft band that fades in and out gradually on both sides (no hard edge) */
#booksSearch .bs-field.bs-ai::before{background-size:70% 100%!important;background-position:-240% 0;
  background-image:linear-gradient(100deg,rgba(10,132,255,0) 0%,rgba(10,132,255,.05) 18%,rgba(10,132,255,.14) 32%,rgba(52,204,153,.24) 50%,rgba(124,92,255,.14) 68%,rgba(124,92,255,.05) 82%,rgba(124,92,255,0) 100%)!important}
@keyframes bsLeftRight{0%{opacity:0;background-position:-240% 0}15%{opacity:1}85%{opacity:1}100%{opacity:0;background-position:340% 0}}
#booksSearch .bs-field.bs-think::before{animation:bsLeftRight 1.3s cubic-bezier(.45,0,.25,1) both!important}

/* results shown while typing: the same soft light as the filters, running left to right once
   (the old one stood still on the right because of a fixed background position) */
#booksSearch .bs-field.bs-found{background:linear-gradient(#fff,#fff) padding-box,var(--bsC) border-box!important;background-size:auto!important;background-repeat:repeat!important;
  animation:bsTurn 5s linear infinite!important}
#booksSearch .bs-field.bs-found:focus-within{animation:bsTurn 1.1s linear infinite!important}
#booksSearch .bs-field.bs-found::before{animation:bsLeftRight 1.3s cubic-bezier(.45,0,.25,1) both!important}

/* the bar never jumps or pulses: the same steady animation whatever happens (typing, results, a
   filter) — the old one-off "tap" bounce restarted each time results came in */
#booksSearch .bs-field.bs-ai,#booksSearch .bs-field.bs-ai.bs-found,#booksSearch .bs-field.bs-ai.bs-think{animation:bsTurn 5s linear infinite!important;transform:none!important}
#booksSearch .bs-field.bs-ai:focus-within,#booksSearch .bs-field.bs-ai.bs-found:focus-within,#booksSearch .bs-field.bs-ai.bs-think:focus-within,
#booksSearch .bs-field.bs-ai.bs-think{animation:bsTurn 1.1s linear infinite!important}
#booksSearch .bs-field.bs-ai:active{transform:none!important}
#booksSearch .bs-field.bs-ai::after{transform:none!important}

/* Learning: Mode (Flashcards / Words A–Z) */
.eng-lmode-title{margin-top:16px}
/* Words A–Z: Translate button and the Arabic lines */
.wl-head{flex-wrap:wrap;gap:8px}
.wl-trbtn{display:inline-flex;align-items:center;gap:6px;margin-left:auto;border:1.5px solid #d9e3f5;background:#fff;color:#05143F;border-radius:999px;
  padding:7px 13px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .2s,color .2s,border-color .2s}
.wl-trbtn svg{width:16px;height:16px}
.wl-trbtn.on{background:#0b8f69;border-color:#0b8f69;color:#fff}
.wl-tr{font-family:'ThmanyahSans','Thmanyah',sans-serif;font-size:15px;font-weight:700;color:#0b8f69;margin:2px 0 4px;text-align:right}
.wl-tr.wl-tr-def{font-weight:400;font-size:14px;color:#3c4a6b}
#screen-eng-words .wl-panel{margin-top:14px}

/* Learning: Flashcards / Letter shown like the Practice games */
#screen-eng-learn .eng-lmode-title{margin:22px 4px 10px}
#screen-eng-learn .eng-menu-card[data-lmode]{width:100%;margin-bottom:12px}
#screen-eng-learn .eng-menu-card.is-wait{opacity:.55}

/* Access & permissions on computers: two columns — student access on the left, the contact address
   and allowed books on the right — so the wide screen is used */
@media (min-width:1000px){
  #screen-access .ap-page{max-width:1240px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:0 22px;align-items:start}
  #screen-access .ap-nbs-head{grid-column:1/-1}
  #screen-access .perm-card{grid-column:1;grid-row:2 / span 2;margin-bottom:0}
  #screen-access .ap-contact{grid-column:2;grid-row:2}
  #screen-access .ap-books{grid-column:2;grid-row:3}
  #screen-access .perm-grid{grid-template-columns:1fr}
  #screen-access .aa-books .aa-books-year{break-inside:avoid}
}
@media (min-width:1400px){#screen-access .perm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Search results grouped by place: a header with the path (Subject › Lessons › Teacher) and the number
   of files, then the files of that place */
.bs-group{margin:0 0 14px;border:1px solid #e3eaf6;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 2px 10px rgba(5,20,63,.04)}
.bs-gpath{display:flex;align-items:center;gap:8px;padding:10px 14px;background:linear-gradient(90deg,#eefaf5,#f4f8ff);border-bottom:1px solid #e3eaf6;color:#0b8f69}
.bs-gpath > .ico,.bs-gpath > svg{flex:none;width:18px;height:18px}
.bs-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:3px 6px;flex:1;min-width:0;font-size:13px;font-weight:700;color:#3c4a6b}
.bs-crumb.is-subj{color:#0b8f69;font-weight:800}
.bs-sep{font-style:normal;color:#34CC99;font-weight:900}
.bs-gn{flex:none;min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:#0b8f69;color:#fff;font-size:12px;font-weight:800;display:grid;place-items:center}
.bs-group .bs-files{padding:6px;gap:4px}
.bs-group .bs-file{background:transparent}
.bs-group .bs-file:hover{background:#f4f8fc}
.bs-file.is-audio .bs-t::before{content:"♪";display:inline-block;margin-right:7px;color:#0b8f69;font-weight:900}
/* the sound player in the message island */
.bsa{display:flex;align-items:center;gap:12px;margin-top:6px;min-width:min(300px,78vw)}
.bsa-play{flex:none;width:42px;height:42px;border-radius:50%;border:0;background:#0b8f69;color:#fff;display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.bsa-play svg{width:20px;height:20px}
.bsa-play:active{transform:scale(.94)}
.bsa-mid{flex:1;min-width:0}
.bsa-bar{height:6px;border-radius:6px;background:#e3eaf6;overflow:hidden;cursor:pointer}
.bsa-bar i{display:block;height:100%;background:linear-gradient(90deg,#34CC99,#0b8f69);transform-origin:0 50%;transform:scaleX(0);transition:transform .25s linear}
.bsa-t{display:flex;justify-content:space-between;margin-top:5px;font-size:12px;font-weight:700;color:#7b89a8;font-variant-numeric:tabular-nums}

/* Access & permissions on wide screens, tidied: two even columns that use the width (up to 1400px),
   the student settings stacked full width in the left one (no squeezed text), the four years of
   Course Resources side by side, the lock message fields full width */
@media (min-width:1000px){
  #screen-access .ap-page{max-width:min(1400px,calc(100vw - 64px));grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 24px}
  #screen-access .perm-grid{grid-template-columns:1fr!important}
  #screen-access .perm-item.lock-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px 18px}
  #screen-access .perm-item.lock-card > div:first-child{grid-column:1}
  #screen-access .perm-item.lock-card > .lock-switch{grid-column:2;grid-row:1;align-self:center}
  #screen-access .perm-item.lock-card .lock-msg{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  #screen-access .perm-item.lock-card .lock-msg .btn-mini{justify-self:end}
  #screen-access .perm-item.books-lock .bl-years{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  #screen-access .bl-row{padding:10px}
  #screen-access .bl-row span{white-space:nowrap}
  #screen-access .ap-books .aa-books{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #screen-access .ap-books .aa-books .aa-row{grid-column:1 / -1}
}
/* between 1000 and 1250px the four years need two rows */
@media (min-width:1000px) and (max-width:1250px){#screen-access .perm-item.books-lock .bl-years{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (min-width:1000px){
  #screen-access .ap-page{--apw:min(1400px,calc(var(--page-w,100vw) - 64px));width:var(--apw);max-width:none!important;margin-left:calc(50% - var(--apw) / 2)}
  #screen-access .perm-item.books-lock .bl-years{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}
}
@media (min-width:1000px){#screen-access .perm-item.books-lock .bl-years{grid-template-columns:repeat(auto-fit,minmax(128px,1fr))!important}}
/* the bar keeps its own layer so its coloured glow shows on every device (without it the glow slipped under the page's background on phones) */
#booksSearch .bs-field.bs-ai{isolation:isolate!important}

/* The island audio player (every sound of the site) */
.aud{width:min(340px,82vw);margin-top:4px;touch-action:pan-y}
.aud-head{display:flex;align-items:center;gap:10px}
.aud-note{position:relative;flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#34CC99,#0b8f69);box-shadow:0 6px 14px rgba(11,143,105,.3)}
.aud-note svg{width:22px;height:22px}
.aud-eq{position:absolute;right:-4px;bottom:-4px;display:none;gap:2px;align-items:flex-end;height:12px;padding:2px 3px;border-radius:6px;background:#fff}
.aud-eq i{width:2px;background:#0b8f69;border-radius:1px;animation:audEq .9s ease-in-out infinite}
.aud-eq i:nth-child(2){animation-delay:.2s}.aud-eq i:nth-child(3){animation-delay:.4s}
.aud.is-playing .aud-eq{display:flex}
@keyframes audEq{0%,100%{height:3px}50%{height:9px}}
.aud-info{flex:1;min-width:0;display:flex;flex-direction:column}
.aud-name{font-size:14px;font-weight:800;color:#05143F;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aud-pos{font-size:12px;font-weight:700;color:#7b89a8}
.aud-speed{flex:none;min-width:44px;height:30px;border-radius:999px;border:1.5px solid #d9e3f5;background:#fff;color:#0b8f69;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer}
.aud-seek{margin:10px -4px 0}
.aud-seek .nbs-sl-ticks,.aud-seek .nbs-sl-labels{display:none}
.aud.is-loading .aud-seek{opacity:.6}
.aud-times{display:flex;justify-content:space-between;margin-top:2px;font-size:12px;font-weight:700;color:#7b89a8;font-variant-numeric:tabular-nums}
.aud-ctrl{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:8px}
.aud-b{width:38px;height:38px;border-radius:50%;border:0;background:#f1f5fb;color:#05143F;display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .15s ease,background-color .2s}
.aud-b svg{width:19px;height:19px}
.aud-b:disabled{opacity:.35}
.aud-b:active,.aud-play:active{transform:scale(.92)}
.aud-play{width:50px;height:50px;border-radius:50%;border:0;color:#fff;background:linear-gradient(135deg,#34CC99,#0b8f69);display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 18px rgba(11,143,105,.32);-webkit-tap-highlight-color:transparent;transition:transform .15s ease}
.aud-play svg{width:22px;height:22px}
.aud.is-loading .aud-play{animation:audWait 1s ease-in-out infinite}
@keyframes audWait{50%{box-shadow:0 0 0 8px rgba(52,204,153,.18)}}
@media (prefers-reduced-motion:reduce){.aud-eq i,.aud.is-loading .aud-play{animation:none}}
.aud{width:min(300px,calc(100vw - 104px))}

/* Island audio player, mockup layout */
.aud{position:relative;width:min(330px,calc(100vw - 72px));padding:4px 2px 0;--p:0}
.aud-head{display:flex;align-items:center;gap:12px}
.aud-note{width:52px;height:52px;border-radius:16px;background:linear-gradient(145deg,#2ee6a8,#0b9d6f);box-shadow:0 8px 20px rgba(0,180,120,.32)}
.aud-note svg{width:26px;height:26px;color:#fff}
.aud-eq{display:none!important}
.aud-name{font-size:16px;font-weight:800;color:#0a1d54}
.aud-pos{font-size:13px;font-weight:600;color:#7b89a8}
.aud-speed{display:none}
.aud-rate{flex:none;display:flex;padding:3px;border-radius:999px;background:#f1f4f9;border:1px solid #e6ebf3}
.aud-rate button{border:0;background:none;border-radius:999px;padding:6px 9px;font:inherit;font-size:12.5px;font-weight:800;color:#0a1d54;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .25s ease,color .25s ease}
.aud-rate button.on{background:#0bb07e;color:#fff;box-shadow:0 3px 8px rgba(11,176,126,.3)}
/* the seek bar, with room above it */
.aud-seek{position:relative;height:22px;margin:22px 4px 0;cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent}
.aud-rail{position:absolute;left:0;right:0;top:50%;height:6px;margin-top:-3px;border-radius:6px;background:#e4e9f2;overflow:hidden}
.aud-fill{display:block;height:100%;width:100%;transform-origin:0 50%;transform:scaleX(var(--p));background:linear-gradient(90deg,#0bb07e,#2ee6a8);transition:transform .25s linear}
.aud-knob{position:absolute;top:50%;left:calc(var(--p) * 100%);width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;background:#0bb07e;border:3px solid #fff;box-shadow:0 0 0 3px rgba(46,230,168,.35),0 3px 8px rgba(5,20,63,.2);transition:left .25s linear,transform .2s ease}
.aud.is-seeking .aud-fill,.aud.is-seeking .aud-knob{transition:none}
.aud.is-seeking .aud-knob{transform:scale(1.18)}
.aud-times{margin-top:4px;font-size:13px}
/* the controls: −10 s, play / pause, +10 s (previous / next only for a list of tracks) */
.aud-ctrl{position:relative;z-index:1;gap:22px;margin-top:6px;padding-bottom:10px}
.aud-skip{display:none}
.aud.is-list .aud-skip{display:grid;width:34px;height:34px}
.aud-b{width:52px;height:52px;background:rgba(241,244,249,.92);box-shadow:0 2px 8px rgba(5,20,63,.06)}
.aud-b svg{width:24px;height:24px}
.aud-play{width:62px;height:62px;background:linear-gradient(145deg,#12c98f,#0b9d6f);box-shadow:0 10px 24px rgba(11,157,111,.38)}
.aud-play svg{width:26px;height:26px}
/* the sound's waves along the bottom of the card */
.aud-wave{position:absolute;left:-16px;right:-16px;bottom:-14px;width:calc(100% + 32px);height:64px;z-index:0;pointer-events:none;border-radius:0 0 22px 22px}
/* the island shows the player itself (its title row only while folded) */
.dynaura-island.nbs-nt-audio[data-expanded="true"] .dynaura-row{display:none}
.dynaura-island.nbs-nt-audio .dynaura-body{padding-top:6px}
/* the player fills the island: no indent under the hidden title icon, the Stop button under it */
.dynaura-island.nbs-nt-audio .dynaura-body{padding:14px 16px 14px}
.dynaura-island.nbs-nt-audio .dynaura-desc{padding-inline-start:0;color:inherit}
.dynaura-island.nbs-nt-audio .dynaura-actions{margin-inline-start:0;justify-content:center;margin-top:8px;position:relative;z-index:1}
.aud{width:100%;max-width:340px;margin:0 auto}
.aud-wave{bottom:-62px;height:84px}
.aud-wave{bottom:-78px;height:104px}

/* Island audio player v3: speed slider on top, Play with friends' time slider, short glowing bars */
.aud-rate{display:flex;align-items:center;gap:10px;margin:12px 2px 0;padding:6px 10px 2px;border-radius:14px;background:#f4f7fb;border:1px solid #e6ebf3}
.aud-rate-l{flex:none;font-size:11.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#7b89a8}
.aud-rate-sl{flex:1;min-width:0}
.aud-rate-v{flex:none;min-width:38px;text-align:right;font-size:13px;font-weight:800;color:#0b9d6f;font-variant-numeric:tabular-nums}
.aud-rate .nbs-sl{transform:scale(.82);transform-origin:50% 60%;margin:-6px -8%}
.aud-rate .nbs-sl-ticks{display:none}
.aud-rate .nbs-sl-labels span{font-size:10px}
.aud-seek{height:auto;margin:18px 0 0;cursor:auto;touch-action:auto}
.aud-seek .nbs-sl-ticks,.aud-seek .nbs-sl-labels{display:none}
.aud-times{margin-top:0}
/* the bars: short, in a row along the bottom, a green gradient with a soft glow under them */
.aud-bars{display:block;position:relative;width:100%;height:30px;margin:10px 0 -4px;pointer-events:none}
.aud::after{content:"";position:absolute;left:8%;right:8%;bottom:-10px;height:22px;border-radius:50%;background:radial-gradient(ellipse at 50% 100%,rgba(46,230,168,.35),rgba(46,230,168,0) 70%);pointer-events:none;opacity:0;transition:opacity .6s ease}
.aud.is-playing::after{opacity:1}
.aud-wave{display:none}
.aud{width:min(330px,calc(100vw - 60px))!important;max-width:none;--ink:#0b9d6f}
.aud .nbs-sl{--ink:#0b9d6f}
.aud-rate{padding:4px 10px 0}
.aud-rate .nbs-sl-labels{display:none}
.aud-rate .nbs-sl{margin:-10px -8% -8px}
.dynaura-island.nbs-nt-audio[data-expanded="true"] .dynaura-row{display:flex}

/* speed: a small slider in the top-right corner of the player (no box), its value above it */
.aud-head{position:relative;padding-right:112px}
.aud .aud-rate{position:absolute;top:-2px;right:0;width:104px;margin:0;padding:0;border:0;background:none;display:block}
.aud .aud-rate-v{display:block;min-width:0;text-align:right;font-size:11.5px;font-weight:800;color:#0b9d6f;margin:0 2px -30px 0;position:relative;z-index:1}
.aud .aud-rate-sl{width:100%}
.aud .aud-rate .nbs-sl{transform:scale(.7);transform-origin:100% 50%;margin:-14px 0 -12px -45%;width:145%}
.aud .aud-rate .nbs-sl-ticks,.aud .aud-rate .nbs-sl-labels{display:none}
.aud-seek{margin-top:10px}
/* the frequencies: soft, blurred colour layers along the bottom, a gentle glow under them */
.aud-bars{height:40px;margin:6px -6px -6px;width:calc(100% + 12px);filter:blur(3px) saturate(1.15);-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}

/* speed: a small slider in the top-right corner, its round knob showing the speed */
.aud .aud-rate{position:absolute;top:2px;right:0;width:108px;height:30px;margin:0;padding:0;border:0;background:none;display:block;cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent;--r:.333}
.aud-rate-rail{position:absolute;left:14px;right:14px;top:50%;height:5px;margin-top:-2.5px;border-radius:5px;background:#e4e9f2;overflow:hidden}
.aud-rate-fill{display:block;height:100%;width:calc(var(--r) * 100%);background:linear-gradient(90deg,#0bb07e,#2ee6a8);transition:width .25s cubic-bezier(.22,1,.36,1)}
.aud-rate-knob{position:absolute;top:50%;left:calc(14px + (100% - 28px) * var(--r));width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;
  display:grid;place-items:center;background:linear-gradient(145deg,#12c98f,#0b9d6f);color:#fff;font-size:10.5px;font-weight:800;letter-spacing:-.02em;
  box-shadow:0 0 0 3px rgba(46,230,168,.25),0 3px 8px rgba(11,157,111,.35);transition:left .25s cubic-bezier(.22,1,.36,1),transform .2s ease}
.aud-rate.is-drag .aud-rate-fill,.aud-rate.is-drag .aud-rate-knob{transition:none}
.aud-rate.is-drag .aud-rate-knob{transform:scale(1.12)}
.aud .aud-rate-v{display:none}
/* the frequencies cover the whole bottom edge of the island, side to side */
.aud{position:relative}
.dynaura-island.nbs-nt-audio .dynaura-body{padding-bottom:0}
.aud-bars{display:block;width:calc(100% + 32px)!important;margin:4px -16px 0!important;height:46px;filter:blur(3px) saturate(1.15);-webkit-mask-image:none!important;mask-image:none!important;transform:translateY(6px)}

/* speed (top-right): the gooey slider, small and arched, the speed under the middle of the arch */
.aud .aud-rate{display:none!important}
.aud-head{padding-right:124px}
.aud-speed2{position:absolute;top:-30px;right:-6px;width:124px}
.aud-speed-sl .nbs-sl{--ink:#0b9d6f;padding-top:34px}
.aud-speed-sl .nbs-sl-ticks,.aud-speed-sl .nbs-sl-labels{display:none}
.aud-speed-sl .nbs-sl-thumb{width:22px;height:22px;top:65px}
.aud-speed-val{position:absolute;left:0;right:0;top:62px;text-align:center;font-size:12px;font-weight:800;color:#0b9d6f;pointer-events:none}
/* a shorter player: the waves sit right under the play button */
.aud-ctrl{margin-top:2px;padding-bottom:0}
.aud-bars{height:36px!important;margin-top:-10px!important}
/* the play button: dark, steady (no pulse, no press movement), only its shadow */
.aud-play,.aud.is-loading .aud-play{background:linear-gradient(145deg,#13265e,#05143F)!important;animation:none!important;box-shadow:0 10px 24px rgba(5,20,63,.35)!important;transition:box-shadow .3s ease!important}
.aud-play:active{transform:none!important;box-shadow:0 5px 14px rgba(5,20,63,.3)!important}
.aud.is-playing .aud-play{box-shadow:0 10px 26px rgba(5,20,63,.38),0 0 0 6px rgba(46,230,168,.12)!important}

/* a deeper arch; the speed sits in a small circle under its middle */
.aud-speed2{top:-26px}
.aud-speed-val{top:56px;left:50%;right:auto;width:30px;height:30px;margin-left:-15px;border-radius:50%;display:grid;place-items:center;
  background:#eefaf5;border:1.5px solid #bfeedd;color:#0b9d6f;font-size:11px;line-height:1;box-shadow:0 2px 6px rgba(11,157,111,.12)}

/* speed: a smaller, deeper arch (close to a quarter of a circle) */
.aud-head{padding-right:104px}
.aud-speed2{width:100px;top:-18px;right:-4px}
.aud-speed-val{top:64px}
/* "Now playing": its icon green like the player */
.dynaura-island.nbs-nt-audio{--state:#0b9d6f;--dynaura-info:#0b9d6f}
.dynaura-island.nbs-nt-audio .dynaura-badge{color:#0b9d6f!important;background:rgba(11,157,111,.14)!important}
/* taller, uneven waves */
.aud-bars{height:52px!important;margin-top:-14px!important}

/* speed: a half circle (gooey slider riding on it) */
.aud-head{padding-right:96px}
.aud-speed2{width:92px;top:4px;right:-2px}
.aud-speed-sl .nbs-sl{padding-top:6px}
.aud-speed-val{top:38px}
/* the waves: taller (up to the middle of the play button, behind it), uneven, green with a light blue */
.aud-ctrl{position:relative;z-index:2}
.aud-bars{position:relative;z-index:0;height:84px!important;margin-top:-56px!important}

/* speed: the half circle centred on the right of the title row, the speed in a circle at its centre */
.aud-speed2{top:12px;right:0;width:92px}
.aud-speed-val{top:3px!important;width:28px;height:28px;margin-left:-14px}
.aud-speed2{top:18px}
.aud-speed-val{top:-4px!important}

/* half-circle slider: the curved part is tappable too (the touch area covers the whole arch) */
.nbs-sl.is-arc .nbs-sl-track::before{content:"";position:absolute;left:0;right:0;top:-46px;height:46px}
/* the speed value: at the centre of the half circle, inside the arch */
.aud-speed-sl .nbs-sl-track .aud-speed-val{position:absolute;left:50%!important;right:auto;top:-13px!important;width:28px;height:28px;margin:0 0 0 -14px;pointer-events:none;z-index:2}
.aud-speed-sl .nbs-sl-track .aud-speed-val{font-size:9.5px;letter-spacing:-.03em}
/* the speed value: a smaller circle, low inside the half circle, clear of the arc */
.aud-speed-sl .nbs-sl-track .aud-speed-val{top:-5px!important;width:22px!important;height:22px!important;margin-left:-11px!important;font-size:8.5px!important;border-width:1px!important;box-shadow:none!important}
.aud-speed-sl .nbs-sl-track .aud-speed-val{top:-8px!important}
.aud-speed-sl .nbs-sl-track .aud-speed-val{top:-3px!important}
/* the speed text a little lower inside its circle */
.aud-speed-sl .nbs-sl-track .aud-speed-val{padding-top:2px;box-sizing:border-box}
