/* The app around the lesson player: sign-in, home, the top bar, and iPad sizing. Colours and type come from board.css. */
html,body{margin:0}
body{min-height:100vh;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
button,a.btn{touch-action:manipulation}
a.btn{text-decoration:none;display:inline-block}
.btn{min-height:44px}
.btn.sm{min-height:44px}
.btn.big{font-size:28px;padding:16px 30px;border-radius:6px}
.link{min-height:44px}
/* a screen's heading takes the focus when the screen opens (for a screen reader); it is not a control, so no ring */
[tabindex="-1"]:focus{outline:none}

.screen{max-width:780px;margin:0 auto;display:flex;flex-direction:column;gap:16px;
  padding:max(18px,env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) 48px max(18px,env(safe-area-inset-left,0px))}
.screen.center{min-height:100vh;justify-content:center;align-items:flex-start;box-sizing:border-box}
.brand{font:800 clamp(44px,9vw,76px)/1 var(--display);text-transform:uppercase;letter-spacing:.01em;margin:0}
.brand span{color:var(--hero)}
.brand.sm{font-size:24px}
.bar{display:flex;align-items:center;gap:12px}
.bar.pad{max-width:1080px;margin:0 auto;padding:max(10px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px))}
.grow{flex:1}
.me{font-weight:600;color:var(--muted)}
.hello{font-size:clamp(34px,6vw,52px)}

/* the one thing to do next */
.next{display:flex;flex-direction:column;gap:10px;align-items:flex-start;padding:22px;border:2px solid var(--ink);border-radius:8px;background:var(--surface)}
.next h2{font-size:clamp(30px,5.4vw,46px)}
.next .eyebrow{color:var(--hero-text)}

.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.stats div,.stats .tile{display:flex;flex-direction:column;gap:5px;padding:12px 14px;border:1.5px solid var(--line);border-radius:6px;background:var(--surface)}
/* My rules, as one of the tiles: the whole tile is the button */
.stats .tile{align-items:stretch;text-align:left;color:var(--ink);font:inherit;cursor:pointer;touch-action:manipulation;box-shadow:inset 0 -3px 0 var(--line)}
.stats .tile:active{transform:translateY(1px)}
.stats .tile:focus-visible{outline:3px solid var(--hero);outline-offset:2px}
.stats b{font:800 34px/1 var(--display);font-variant-numeric:tabular-nums}
.stats span{font:600 14px/1.1 var(--body);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
/* what keeps the streak, in words, under its number */
.stats small{font:500 15px/1.3 var(--body);color:var(--muted)}
.sec{font-size:22px;margin-top:8px}
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media (max-width:560px){ .tiles{grid-template-columns:repeat(2,minmax(0,1fr))} }
.tiles .unit{grid-column:1/-1;margin:6px 0 0;font:700 12px/1 var(--body);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.tiles button{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;padding:12px;min-height:84px;border:1.5px solid var(--line);border-radius:6px;
  background:var(--surface);color:var(--ink);font:600 15px/1.2 var(--body);cursor:pointer}
.tiles button i{font:800 22px/1 var(--display);font-style:normal;color:var(--muted)}
.tiles button.done{border-color:var(--good)}
.tiles button.done i{color:var(--good)}
.tiles button.up{border-color:var(--hero);box-shadow:inset 0 0 0 1px var(--hero)}
.row{display:flex;flex-wrap:wrap;gap:8px}

/* position: asked once, shown on the home screen, and a switch to look at the other position's lessons */
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%}
@media (max-width:560px){ .choices{grid-template-columns:1fr} }
.choices button{display:flex;flex-direction:column;gap:10px;align-items:flex-start;text-align:left;padding:22px;min-height:170px;border:2px solid var(--ink);border-radius:8px;
  background:var(--surface);color:var(--ink);cursor:pointer;touch-action:manipulation}
.choices button b{font:800 clamp(34px,6vw,50px)/1 var(--display);text-transform:uppercase;letter-spacing:.01em}
.choices button span{font:500 17px/1.4 var(--body);color:var(--muted)}
.choices button em{font:700 12px/1 var(--body);font-style:normal;letter-spacing:.12em;text-transform:uppercase;color:var(--hero-text)}
.choices button[aria-pressed="true"]{border-color:var(--hero);box-shadow:inset 0 0 0 2px var(--hero)}
.pos{display:flex;align-items:center;gap:6px;margin-top:-10px;color:var(--muted);font-weight:600}
.link{border:0;background:none;color:var(--ink);font:600 15px/1 var(--body);text-decoration:underline;text-underline-offset:3px;padding:14px 8px;cursor:pointer;touch-action:manipulation}
.sechead{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.seg{display:flex;border:1.5px solid var(--ink);border-radius:4px;overflow:hidden}
.seg button{padding:10px 14px;min-height:44px;border:0;background:transparent;color:var(--ink);font:800 16px/1 var(--display);letter-spacing:.06em;text-transform:uppercase;cursor:pointer;touch-action:manipulation}
.seg button[aria-selected="true"]{background:var(--ink);color:var(--bg)}
#home .lb{display:flex;max-width:none}

/* inside the app the player has no big page header, and players are accounts, not typed names */
.hosted .top,.hosted #d-who,.hosted .add{display:none}
.hosted .wrap{padding-block:10px 40px;gap:12px}
/* Inside the app the home screen does the navigating, so a lesson shows only what it needs: the rink, the caption and the controls. */
.hosted #modes,.hosted #plays,.hosted #games,.hosted .card,.hosted .cues,.hosted #again{display:none}
.where{font:800 22px/1 var(--display);text-transform:uppercase;letter-spacing:.03em}
.hosted .ctrl{gap:10px}
.hosted .ctrl .btn{min-height:48px}
.hosted .ctrl .btn.go{font-size:24px;padding:12px 30px;min-width:132px}
.hosted .ctrl .btn.sm{min-height:44px}
.hosted #speed{margin-left:auto}
.hosted .say{font-size:18px}
.hosted .legend,.hosted .nums{opacity:1}
/* iPad landscape: keep the whole rink on screen */
@media (orientation:landscape) and (min-width:860px) and (max-height:900px){
  .hosted .board{grid-template-columns:minmax(0,min(520px,calc((100vh - 150px) * .93))) minmax(0,1fr)}
}
/* these were style attributes in the playbook page; the server's policy allows none */
.legend .arr{stroke-width:1.6}
.legend .arr.pass{stroke-dasharray:4 3.5}
.legend .arr.shot{stroke-width:5}
.legend .arr.shot2{stroke-width:1.8}

/* privacy and terms: plain reading pages */
.doc{max-width:680px;gap:14px}
.doc h1{font-size:clamp(40px,8vw,60px);margin-top:10px}
.doc h2{font-size:26px;margin-top:12px}
.doc p,.doc li{font-size:17px;line-height:1.55;max-width:66ch}
.doc ul{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.doc .note{font-size:14px;margin-top:10px}
.doc a,.foot a{color:inherit;text-underline-offset:3px}
.doc a.brand{text-decoration:none;align-self:flex-start}
.foot{font-size:14px;color:var(--muted);display:flex;gap:16px}
.foot a{display:inline-block;padding:10px 0}

/* a short note when something new has been added */
.news{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;padding:10px 14px;border:1.5px solid var(--hero);border-radius:6px;background:var(--surface);font-weight:600}
.news span{flex:1;min-width:220px}

/* one thing for the next game */
.focus{display:flex;flex-direction:column;gap:10px;align-items:flex-start;padding:16px 18px;border:1.5px solid var(--line);border-radius:8px;background:var(--surface)}
.focus .eyebrow{color:var(--hero-text);margin:0}
.focus-rule{margin:0;font:800 clamp(22px,3.8vw,30px)/1.1 var(--display);text-transform:uppercase;letter-spacing:.01em}
.focus .row{width:100%}
.focus .row .btn.rule{flex:1 1 200px;text-align:left;white-space:normal;line-height:1.25;text-transform:none;letter-spacing:0;font:600 16px/1.25 var(--body)}
.focus .note{margin:0}

/* unit challenge tiles */
.tiles button.chal{border-style:dashed}
.tiles button.chal i{font-size:16px;letter-spacing:.08em;text-transform:uppercase;color:var(--hero-text)}
.tiles button.chal.done{border-style:solid}
.tiles button.chal.done i{color:var(--good)}
.tiles button.chal:disabled{opacity:.55;cursor:default}
/* the path: a lesson that is not open yet, the line under the Continue button, and the card between two steps */
.tiles button:disabled{opacity:.5;cursor:default}
/* a lesson the path has not opened yet: plainly not available, with what opens it in words (readable, so not faded) */
.tiles button.locked{border-style:dashed;cursor:default;background:transparent}
.tiles button.locked span{color:var(--muted)}
.tiles button.locked small{font:600 13px/1.3 var(--body);color:var(--ink)}
#next-plan{margin:0}
#between .next{margin-top:8px}
.bt-result{margin:0 0 6px;font-weight:700;font-size:20px;line-height:1.3}

/* the parent view */
.fam{display:flex;flex-direction:column;gap:14px}
.fam .kid{display:flex;flex-direction:column;gap:8px;padding:18px;border:1.5px solid var(--line);border-radius:8px;background:var(--surface)}
.fam .kid h2{font-size:30px;margin:0}
.fam .kid p{margin:0}
.fam .kid .part{margin-top:6px}
.fam .kid ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px}
.fam .facts{display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--muted);font-weight:600}
/* the Family view: the two switches first; per player what to talk about and do, the numbers folded under Details */
.fam .kid .sent{color:var(--good);font-weight:700}
.fam .kid details{border-top:1.5px solid var(--line);padding-top:8px}
.fam .kid summary{cursor:pointer;font-weight:700;padding:8px 0;min-height:28px}
.fam .kid details>*+*{margin-top:8px}
.fam .kid .pause{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;color:var(--muted)}
.fam .kid .pause span{flex:1 1 260px}
#fam-key{margin:0}
.tiles button.chal{grid-column:1/-1;flex-direction:row;align-items:center;gap:14px;min-height:56px}

/* my rules: one card per finished lesson */
.cards{display:flex;flex-direction:column;gap:12px}
.cards .unit{margin:10px 0 0;font:700 12px/1 var(--body);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.rcard{display:grid;grid-template-columns:minmax(0,200px) minmax(0,1fr);gap:16px;align-items:start;padding:14px;border:1.5px solid var(--line);border-radius:8px;background:var(--surface);break-inside:avoid}
.rcard img{width:100%;height:auto;border-radius:4px;display:block}
.rcard .eyebrow{margin:0 0 6px}
.rcard h2{font-size:clamp(22px,3.6vw,30px);margin:0 0 8px}
.rcard ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:3px;color:var(--muted)}
@media (max-width:560px){ .rcard{grid-template-columns:1fr} .rcard img{max-width:240px} }
@media print{
  #myrules .bar button{display:none}
  body{background:#fff}
  .rcard{border-color:#999}
}

/* a unit's row on the home screen: open for the unit being worked on, one line for the rest */
.tiles .unitrow{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;gap:12px;min-height:48px;padding:8px 14px;margin-top:4px;border:1.5px solid var(--line);border-radius:6px;background:transparent;cursor:pointer}
.tiles .unitrow b{font:700 14px/1.2 var(--body);letter-spacing:.12em;text-transform:uppercase;color:var(--ink)}
.tiles .unitrow span{flex:1;font:500 14px/1.2 var(--body);color:var(--muted)}
.tiles .unitrow em{font:700 14px/1 var(--body);font-style:normal;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.tiles .unitrow[aria-expanded="true"]{border-color:transparent;padding-left:0;padding-right:0;min-height:44px}

/* ice view: the 3D picture takes the stage, with the question written over it */
.hosted .board.ice{grid-template-columns:minmax(0,1fr);grid-template-areas:"stage" "head" "panel"}
.hosted .board.ice .stage{max-width:none}
.board.ice #rink{display:none}
.hosted #rink{touch-action:pan-x pan-y}
.icewrap{position:relative;width:100%;aspect-ratio:16/9;max-height:calc(100vh - 120px);border-radius:10px;overflow:hidden;background:#05070A;touch-action:none;user-select:none;-webkit-user-select:none}
.icecanvas{display:block;width:100%;height:100%;cursor:crosshair}
.ice-hud{position:absolute;left:12px;top:14px;max-width:min(62%,560px);padding:10px 14px;border-radius:8px;background:rgba(5,7,10,.74);color:#fff;pointer-events:none}
.ice-hud p{margin:0}
.ice-sit{font:700 11px/1.3 var(--body);letter-spacing:.12em;text-transform:uppercase;color:#8BE3FF}
.ice-ask{font:800 clamp(20px,3.2vw,30px)/1.1 var(--display);text-transform:uppercase;letter-spacing:.01em}
.ice-ask.y{color:#7fe3a4}.ice-ask.n{color:#ff9aa5}.ice-ask.fix{color:#ffd27a}
.ice-why{font:500 15px/1.35 var(--body);color:#E3E8ED}
.ice-hud p:empty{display:none}
.ice-clock{position:absolute;left:0;top:0;width:100%;height:5px;background:#1EC8FF;transform-origin:left center}
.ice-score{position:absolute;right:12px;top:14px;margin:0;padding:8px 12px;border-radius:8px;background:rgba(5,7,10,.74);color:#fff;font:700 13px/1 var(--body);letter-spacing:.06em;white-space:pre;pointer-events:none}
.ice-score:empty{display:none}
/* the film room: the score is the game's, as on a broadcast; the legend of the diagrams says nothing about this picture */
.ice-score.film{padding:10px 14px;border-left:6px solid #1EC8FF;font-size:15px;text-transform:uppercase;letter-spacing:.08em}
.board.film .nums,.board.film .legend{display:none}
.ice-back{position:absolute;right:12px;bottom:12px;min-height:48px;padding:10px 18px;border:2px solid #fff;border-radius:8px;background:rgba(5,7,10,.74);color:#fff;font:800 17px/1 var(--display);letter-spacing:.06em;text-transform:uppercase;cursor:pointer;touch-action:manipulation}
.ice-back[aria-pressed="true"],.ice-go{background:#1EC8FF;border-color:#1EC8FF;color:#02131C}
.ice-tip{position:absolute;left:12px;bottom:14px;margin:0;padding:8px 12px;border-radius:8px;background:rgba(5,7,10,.6);color:#DDE3E9;font:500 13px/1.2 var(--body);pointer-events:none}
.board.ice #d-sit,.board.ice #d-ask,.board.ice #d-why{display:none}
/* a question on the ice: the score is over the picture, so not again below it */
.board.ice .sb{display:none}
/* a lesson told on the ice: its words are over the picture, so not again below it, and the board's legend is for the view from above;
   once it has ended there is one Continue, over the picture, and no Play. In landscape the picture leaves room for the controls. */
.board.ice.tell #say,.board.ice .legend{display:none}
/* an iPad held upright: a taller 3D picture (16:9 left a third of the screen empty) */
@media (orientation:portrait) and (min-width:561px){.icewrap{aspect-ratio:4/3}}
.board.ice.told #quiz,.board.ice.told #play{display:none}
@media (orientation:landscape){.hosted .board.ice.tell{grid-template-areas:"stage" "panel" "head"}.board.ice.tell .icewrap{max-height:calc(100vh - 200px)}}
/* while the ice view gets ready (its code, then its first pictures) */
.ice-wait{margin:8px 16px 0;padding:14px 16px;border:1.5px solid var(--hero);border-radius:6px;background:var(--surface);font-weight:700;text-align:center}
/* ice view on a phone held upright: a taller picture, the question across the top, the score bottom left, no tip */
@media (max-width:560px){
  .icewrap{aspect-ratio:4/3}
  .ice-tip{display:none}
  .ice-hud{left:8px;top:10px;max-width:calc(100% - 16px);padding:8px 10px}
  .ice-ask{font-size:19px}
  .ice-why{font-size:13px}
  .ice-score{top:auto;right:auto;left:8px;bottom:10px;font-size:12px}
  .ice-back{right:8px;bottom:8px;min-height:44px;padding:8px 14px;font-size:15px}
}

/* the ice view getting its picture back (ice/ice.js): a note over it */
.ice-note{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;margin:0;padding:12px 18px;border-radius:8px;background:rgba(5,7,10,.88);color:#fff;font:700 16px/1.3 var(--body);text-align:center;white-space:nowrap}
.ice-note[hidden]{display:none}
/* Coach the rookie on the ice (ice/ice.js): the round's buttons over the picture (their twins below it are hidden then), and the moment
   the picture dips when a play is wound back */
.ice-btns{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:2;display:flex;gap:10px;max-width:calc(100% - 24px)}
.ice-btns[hidden]{display:none}
.ice-btn{min-height:52px;padding:10px 20px;border:2px solid #fff;border-radius:8px;background:rgba(5,7,10,.84);color:#fff;font:800 19px/1 var(--display);letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;cursor:pointer;touch-action:manipulation}
.ice-btn:disabled{opacity:.45;cursor:default}
.ice-dip{position:absolute;inset:0;z-index:1;background:#05070A;opacity:0;pointer-events:none}
.ice-dip.on{animation:icedip .55s ease-out}
@keyframes icedip{0%{opacity:.9}100%{opacity:0}}
.board.ice #d-nums{display:none}
/* "Watch it again" (a question with no clock): over the picture while the ice view is up, under it otherwise */
.board.ice #d-watch{display:none}
/* a phone held upright: the picture is small, so all of it is picture (the words go under it, where the page has them) and a line
   says it is bigger sideways */
.ice-turn{display:none;margin:6px 2px 0;color:var(--muted);font:500 14px/1.3 var(--body);text-align:center}
@media (max-width:560px) and (orientation:portrait){
  .board.ice .ice-turn:not([hidden]){display:block}
  .board.ice .ice-hud{display:none}
  .board.ice #d-sit,.board.ice #d-ask,.board.ice #d-why{display:block}
  .board.ice.tell #say{display:block}
  .board.ice .ice-btns{display:none}
  .board.ice #d-nums:not([hidden]){display:flex}
  .board.ice #d-watch:not([hidden]){display:inline-block}
  /* the film room: the score along the top, clear of the players near the close boards */
  .ice-score.film{top:8px;bottom:auto;padding:6px 10px;font-size:12px}
}
/* a phone held sideways: the picture as tall as the screen (the page scrolls to it, ICE.view) */
@media (orientation:landscape) and (max-height:500px){
  .icewrap,.board.ice.tell .icewrap{max-height:calc(100vh - 16px);max-height:calc(100svh - 16px)}
  .icewrap{scroll-margin-top:8px}
}

/* ice view: darker corners, like a broadcast camera; the words stay on top */
.icewrap::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse at 50% 55%,rgba(2,3,5,0) 58%,rgba(2,3,5,.4) 100%)}
.ice-hud,.ice-clock,.ice-score,.ice-back,.ice-tip{z-index:2}

/* On a touch screen nothing in the app is for zooming or selecting: a stray pinch or a quick double tap would zoom the whole app,
   and a long press would select a caption or pop up a menu. The parent's page keeps selection; the privacy and terms pages are left alone. */
body.app{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body.app #family{-webkit-user-select:text;user-select:text}

/* ice view: when the puck is out of the picture, an arrow at the edge of it points the way (the page turns it; it points right as drawn) */
.ice-edge{position:absolute;z-index:2;width:44px;height:34px;pointer-events:none;background:#ffd23f;clip-path:polygon(0 26%,58% 26%,58% 0,100% 50%,58% 100%,58% 74%,0 74%);filter:drop-shadow(0 0 3px rgba(2,3,5,.9))}
.ice-edge[hidden]{display:none}

/* Rewards, version one: stripes on rule cards, the shelf of game pucks, the line board, the end-of-day sheet, the parent's grid. */
:root{--gold:#8A6408;--gold-bg:rgba(201,150,20,.14)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--gold:#E8BD4A;--gold-bg:rgba(232,189,74,.16)}}
:root[data-theme="dark"]{--gold:#E8BD4A;--gold-bg:rgba(232,189,74,.16)}
.stats small+small{margin-top:-2px}
.stripes{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:10px}
.stripes small{color:var(--muted);font-size:14px;line-height:1.3}
.bars{display:inline-flex;gap:4px}
.bars i{width:22px;height:8px;border-radius:2px;background:var(--line)}
.bars i.on{background:var(--hero)}
.rcard.locked .bars i.on{background:var(--good)}
.rcard.gold{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold) inset;background:linear-gradient(var(--gold-bg),var(--gold-bg)),var(--surface)}
.rcard.gold .bars i.on{background:var(--gold)}
.rcard.new{border-color:var(--hero)}
/* Coach the rookie: a coached card, and the rookie's names to pick from */
.whistle{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:999px;border:1.5px solid var(--hero);color:var(--hero-text, var(--ink));font:800 12px/1.4 var(--display);letter-spacing:.06em;text-transform:uppercase}
.whistle::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--hero)}
.whistle.ice{border-color:var(--blue);box-shadow:0 0 0 2px var(--hl)}
.whistle.ice::before{box-shadow:0 0 0 2px var(--blue)}
.names{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.names .btn{min-width:96px}
.shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.puck{display:grid;grid-template-columns:34px minmax(0,1fr);gap:2px 10px;align-items:center;padding:12px;border:1.5px solid var(--line);border-radius:8px;background:var(--surface)}
.puck i{grid-row:1/3;width:34px;height:22px;border-radius:50%;background:var(--puck);box-shadow:0 4px 0 -1px var(--ink)}
.puck b{font-weight:700;line-height:1.25}
.puck small{color:var(--muted);font-size:13px}
.puck-new{display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding:18px;border:1.5px solid var(--line);border-radius:8px;background:var(--surface)}
.puck-new h2{font-size:clamp(24px,4vw,32px);margin:0}
.puck-new .note{margin:0}
.mates{display:flex;flex-wrap:wrap;gap:8px}
.mate{display:flex;flex-direction:column;gap:4px;min-width:120px;padding:10px 12px;border:1.5px solid var(--line);border-radius:6px;background:var(--surface)}
.mate span{font-weight:600}
.mate b{font:800 18px/1 var(--display);color:var(--muted)}
.mate.in b{color:var(--good)}
.mate.me{border-color:var(--hero)}
.week{display:grid;grid-template-columns:repeat(7,minmax(0,44px));gap:6px}
.week div{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 0;border:1.5px solid var(--line);border-radius:6px;background:var(--surface)}
.week span{font:700 14px/1 var(--body);color:var(--muted)}
.week i{font:700 13px/1 var(--body);font-style:normal;color:var(--good);min-height:13px}
.week div.on{border-color:var(--good);background:var(--good-bg)}
.bt-sheet{display:flex;flex-direction:column;gap:6px;align-self:stretch;padding:12px 14px;border:1.5px solid var(--line);border-radius:6px}
.bt-sheet ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px}
.cardgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:6px}
.cardgrid .cell{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px 4px;border:1.5px solid var(--line);border-radius:6px;background:var(--surface)}
.cardgrid .cell b{font:800 16px/1 var(--display)}
.cardgrid .cell.coached::after{content:'';position:absolute;top:4px;left:4px;width:7px;height:7px;border-radius:50%;background:var(--hero)}
.cardgrid .cell.coached-ice::after{box-shadow:0 0 0 2px var(--blue)}
.cardgrid .cell span{display:flex;gap:2px}
.cardgrid .cell span i{width:8px;height:5px;border-radius:1px;background:var(--line)}
.cardgrid .cell span i.on{background:var(--hero)}
.cardgrid .cell.off{opacity:.45}
.cardgrid .cell.gold{border-color:var(--gold);background:var(--gold-bg)}
.cardgrid .cell.gold span i.on{background:var(--gold)}
.cardgrid .cell.shaky{border-color:var(--bad)}
.cardgrid .cell em{position:absolute;top:4px;right:4px;width:7px;height:7px;border-radius:50%;background:var(--blue)}
.puckin{flex:1 1 260px;min-height:38px;padding:6px 10px;border:1.5px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font:500 15px/1.2 var(--body)}

/* ---- The locker room (public/locker.js, locker-art.js) ---- */
.lk-pic{display:block;flex:none}
/* the tile on the home screen */
.lk-tile{display:flex;align-items:center;gap:14px;width:100%;margin-top:10px;padding:10px 16px 10px 12px;border:1.5px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer;touch-action:manipulation;box-shadow:inset 0 -3px 0 var(--line)}
.lk-tile[hidden]{display:none}
.lk-tile:active{transform:translateY(1px)}
.lk-tile:focus-visible{outline:3px solid var(--hero);outline-offset:2px}
.lk-tile i{flex:none;width:56px;height:56px}
.lk-tile span{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.lk-tile b{font:800 24px/1 var(--display);text-transform:uppercase;letter-spacing:.01em}
.lk-tile small{font:500 15px/1.3 var(--body);color:var(--muted)}
.lk-tile em,.lk-cell em{flex:none;padding:5px 9px;border-radius:99px;background:var(--hero);color:var(--hero-ink);font:700 12px/1 var(--body);font-style:normal;letter-spacing:.08em;text-transform:uppercase}
/* a thing just earned, on the card after a step */
.lk-row{display:flex;align-items:center;gap:14px;padding:6px 0}
.lk-row + .lk-row{border-top:1px solid var(--line)}
.lk-row i{flex:none;width:64px;height:64px;display:grid;place-items:center}
.lk-row span{display:flex;flex-direction:column;gap:3px;min-width:0}
.lk-row b{font:700 17px/1.2 var(--body)}
.lk-row small{font:500 15px/1.35 var(--body);color:var(--muted)}
.lk-row.sz-m i,.lk-row.sz-l i{animation:lk-pop .5s cubic-bezier(.2,1.4,.4,1) both}
@keyframes lk-pop{from{transform:scale(.4) rotate(-25deg);opacity:0}to{transform:none;opacity:1}}
/* the collection page */
.lk{display:flex;flex-direction:column;gap:22px;padding-bottom:150px}
.lk-sec{display:flex;flex-direction:column;gap:8px}
.lk-sec .sec{margin:0}
.lk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;padding:14px;border-radius:8px;background:#0E1217}
.lk-grid.pucks{grid-template-columns:repeat(7,minmax(0,1fr));max-width:680px}
.lk-grid.wide{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}
.lk-grid.line{grid-template-columns:minmax(0,170px);justify-content:center}
.lk-cell{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px 2px;border:0;border-radius:8px;background:none;color:#DDE3E9;font:600 12px/1.2 var(--body);cursor:pointer;touch-action:manipulation}
.lk-cell canvas{max-width:100%;height:auto}
.lk-cell:focus-visible{outline:3px solid var(--hero);outline-offset:1px}
.lk-cell:active{transform:scale(.96)}
.lk-cell.ghost canvas{opacity:.28;filter:grayscale(1)}
.lk-cell em{position:absolute;top:-4px;right:-2px;padding:3px 6px;font-size:10px}
.lk-cell.new canvas{animation:lk-pop .5s cubic-bezier(.2,1.4,.4,1) both}
/* what the thing tapped is, pinned along the bottom */
.lk-detail{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:16px;width:min(680px,calc(100% - 28px));padding:12px 16px;border-radius:10px;background:#161C23;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.35),inset 0 0 0 1px rgba(255,255,255,.1)}
.lk-detail[hidden]{display:none}
.lk-detail i{flex:none}
.lk-detail span{display:flex;flex-direction:column;gap:4px;min-width:0}
.lk-detail b{font:800 22px/1.1 var(--display);text-transform:uppercase;letter-spacing:.01em}
.lk-detail small{font:500 15px/1.35 var(--body);color:#D5DCE3}
@media (max-width:560px){.lk-grid.pucks{grid-template-columns:repeat(5,minmax(0,1fr))}.lk-detail i canvas{width:64px!important;height:64px!important}}
@media (prefers-reduced-motion:reduce){.lk-row i,.lk-cell.new canvas{animation:none}}

/* the moment something is earned: over everything, dark, the thing in the middle */
.lk-moment{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center;color:#fff;background:radial-gradient(ellipse at 50% 38%,#1A2530,#030405 72%);animation:lk-fade .2s ease-out both}
.lk-moment[hidden]{display:none}
@keyframes lk-fade{from{opacity:0}to{opacity:1}}
.lk-spray{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.lk-stage{position:relative;width:220px;height:220px;display:grid;place-items:center;perspective:700px;margin-bottom:8px}
.lk-obj{position:relative;display:grid;place-items:center;border-radius:50%;transform-style:preserve-3d}
.lk-moment.sz-m .lk-obj{animation:lk-drop 1s cubic-bezier(.3,.05,.6,1) both}
@keyframes lk-drop{0%{transform:translateY(-75vh) rotateX(1080deg) scale(.8)}62%{transform:translateY(8px) rotateX(0deg) scale(1.14,.84)}76%{transform:translateY(-16px) scale(.96,1.05)}88%{transform:translateY(3px) scale(1.03,.97)}100%{transform:none}}
.lk-moment.sz-l .lk-obj{animation:lk-rise 1.1s cubic-bezier(.2,1.25,.4,1) both}
@keyframes lk-rise{0%{transform:translateY(46vh) scale(.25);opacity:0}45%{opacity:1}100%{transform:none;opacity:1}}
/* the light behind a big one: slow turning rays */
.lk-rays{position:absolute;inset:-110px;border-radius:50%;opacity:0;background:repeating-conic-gradient(from 0deg,rgba(255,214,128,.22) 0 10deg,rgba(255,214,128,0) 10deg 24deg);-webkit-mask:radial-gradient(circle,#000 22%,transparent 68%);mask:radial-gradient(circle,#000 22%,transparent 68%)}
.lk-moment.sz-l .lk-rays{animation:lk-rays-in .8s .45s ease-out both,lk-turn 24s linear infinite}
@keyframes lk-rays-in{to{opacity:1}}@keyframes lk-turn{to{transform:rotate(360deg)}}
/* chrome and gold: one sweep of light across the face after it lands */
.lk-moment.metal .lk-obj::after{content:"";position:absolute;inset:4%;border-radius:50%;background:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.85) 50%,transparent 62%);background-size:300% 100%;background-position:120% 0;mix-blend-mode:soft-light;animation:lk-sweep .9s 1.05s ease-in-out both}
@keyframes lk-sweep{to{background-position:-60% 0}}
.lk-m-kicker{margin:0;font:700 13px/1 var(--body);letter-spacing:.16em;text-transform:uppercase;color:#8BE3FF}
.lk-m-name{margin:0;max-width:20ch;font:800 clamp(28px,5.4vw,44px)/1.05 var(--display);text-transform:uppercase;letter-spacing:.01em}
.lk-m-why{margin:0;max-width:44ch;font:500 18px/1.4 var(--body);color:#DDE3E9}
.lk-m-more{margin:0;font:500 15px/1.3 var(--body);color:#A3ADB8}
.lk-m-more:empty{display:none}
.lk-m-kicker,.lk-m-name,.lk-m-why,.lk-m-more,.lk-moment .btn{animation:lk-words .45s .85s ease-out both}
@keyframes lk-words{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.lk-moment .btn{margin-top:12px}
.lk-moment .btn:disabled{opacity:.01}
.lk-moment.still .lk-obj,.lk-moment.still .lk-rays,.lk-moment.still .lk-obj::after,.lk-moment.still .lk-m-kicker,.lk-moment.still .lk-m-name,.lk-moment.still .lk-m-why,.lk-moment.still .lk-m-more,.lk-moment.still .btn{animation:none}
.lk-moment.still .lk-rays{opacity:.8}

/* the room: the 3D picture above the list */
.lk-room{position:relative;width:100%;aspect-ratio:16/10;max-height:74vh;border-radius:10px;overflow:hidden;background:#07090C;touch-action:pan-y}
.lk-room[hidden]{display:none}
.lk-canvas{display:block;width:100%;height:100%;touch-action:pan-y;cursor:grab}
.lk-room-note,.lk-room-tip{position:absolute;margin:0;color:#DDE3E9;font:500 14px/1.3 var(--body);pointer-events:none}
.lk-room-note{left:0;right:0;top:46%;text-align:center;font-weight:700}
.lk-room-tip{left:12px;bottom:12px;padding:8px 12px;border-radius:8px;background:rgba(5,7,10,.6)}
@media (orientation:portrait) and (max-width:560px){.lk-room{aspect-ratio:4/5}}

/* whose stall; the list under the room; a thing's stick taps; the stall's own choices */
.lk-who{align-self:flex-start;flex-wrap:wrap}
.lk-who[hidden]{display:none}
.lk-list{display:flex;flex-direction:column;gap:22px}
.lk-none{grid-column:1/-1;margin:0;color:#A3ADB8;font:500 14px/1.3 var(--body)}
.lk-cell u{position:absolute;left:50%;bottom:-2px;transform:translateX(-50%);padding:2px 6px;border-radius:99px;background:#1EC8FF;color:#02131C;font:700 10px/1.2 var(--body);text-decoration:none;white-space:nowrap}
.lk-detail .btn{align-self:flex-start;margin-top:4px;background:#fff;color:#0A0D11}
.lk-detail .btn:disabled{opacity:.7}
.lk-detail small.taps{color:#8BE3FF}
.lk-stall{gap:12px}
.lk-choice{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border:1.5px solid var(--line);border-radius:6px;background:var(--surface)}
.lk-choice b{font:700 16px/1.2 var(--body)}
.lk-choice small{font:500 14px/1.3 var(--body);color:var(--muted)}
.lk-choice.locked{opacity:.7}
.lk-choice .row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.lk-num{width:72px;min-height:44px;padding:6px 10px;border:1.5px solid var(--ink);border-radius:4px;background:#fff;color:var(--ink);font:800 26px/1 var(--display);text-align:center}
.lk-swatch{width:44px;height:44px;border:2px solid var(--line);border-radius:50%;cursor:pointer;touch-action:manipulation}
.lk-swatch[aria-pressed="true"]{outline:3px solid var(--hero);outline-offset:2px}
.lk-choice .btn[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
/* the other ways a new puck arrives: sliding in along the ice, or dropped flat to bounce */
.lk-moment.sz-m.drop-slide .lk-obj{animation:lk-slide 1s cubic-bezier(.15,.7,.3,1) both}
@keyframes lk-slide{0%{transform:translateX(-70vw) rotate(-900deg)}62%{transform:translateX(14px) rotate(8deg)}80%{transform:translateX(-5px) rotate(-3deg)}100%{transform:none}}
.lk-moment.sz-m.drop-bounce .lk-obj{animation:lk-bounce 1s linear both}
@keyframes lk-bounce{0%{transform:translateY(-75vh) scale(.9);animation-timing-function:cubic-bezier(.5,0,1,.6)}42%{transform:translateY(0) scale(1.12,.84);animation-timing-function:cubic-bezier(0,.6,.5,1)}62%{transform:translateY(-22vh) scale(.97,1.04);animation-timing-function:cubic-bezier(.5,0,1,.6)}80%{transform:translateY(0) scale(1.07,.92);animation-timing-function:cubic-bezier(0,.6,.5,1)}90%{transform:translateY(-5vh)}100%{transform:none}}

/* My rules as the study page: each card's puck, small, and the card a puck in the locker opened */
.rpuck{display:flex;align-items:center;gap:10px;align-self:flex-start;margin-top:6px;padding:4px 12px 4px 4px;border:1.5px solid var(--line);border-radius:99px;background:var(--surface);color:var(--muted);font:500 14px/1.3 var(--body);text-align:left;cursor:pointer;touch-action:manipulation}
.rpuck:focus-visible{outline:3px solid var(--hero);outline-offset:2px}
.rcard.at{outline:3px solid var(--hero);outline-offset:2px}
/* Practice on the home screen: one row, open or shut */
.tiles.prac{margin-top:14px}
#h-practice{margin-top:8px}
#h-practice[hidden]{display:none}
@media print{.rpuck{display:none}}

/* The logo in the header (2026-11-18, Rink Smarts): the mark, RS in an ice-blue faceoff circle (the symbol #mark in index.html),
   then RINK SMARTS leaning forward with an ice-blue bar under it. A tap on it goes home. The letters take the page's ink, so it
   shows on dark and light alike. */
.defs{position:absolute}
.logo{display:inline-flex;align-items:center;gap:.22em;margin:0;padding:0;border:0;background:none;color:var(--ink);font:800 24px/1 var(--display);cursor:pointer;min-height:44px;text-decoration:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
h1.logo{cursor:default}
.logo.big{font-size:clamp(34px,8vw,62px)}
.logo-mark{flex:none;width:1.72em;height:1.33em}
.mk-ink{stroke:currentColor}
.mk-ring{stroke:var(--hero)}
.logo-word{position:relative;display:inline-block;padding-bottom:.18em;text-transform:uppercase;letter-spacing:.015em;white-space:nowrap;transform:skewX(-10deg)}
.logo-word::after{content:"";position:absolute;left:.02em;right:.02em;bottom:0;height:.09em;background:var(--hero)}
button.logo:focus-visible,a.logo:focus-visible{outline:3px solid var(--hero);outline-offset:4px;border-radius:4px}   /* (not the sign-in screen's title, which is given the focus for a screen reader and is no button: on an iPad it wore this ring, 2026-11-18) */
@media (hover:hover){button.logo:hover .logo-mark,a.logo:hover .logo-mark{transform:rotate(-6deg)}}
.logo-mark{transition:transform .15s}
button.logo:active,a.logo:active{transform:translateY(1px)}
/* Back and Home (the same day; the owner: "something more visually appealing"): a dark pill with a puck in it, and on the puck
   an ice-blue arrow. The puck slides back a little under the pointer and when pressed. */
.back{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 18px 0 6px;border:0;border-radius:999px;background:#161C23;color:#fff;font:800 17px/1 var(--display);letter-spacing:.09em;text-transform:uppercase;cursor:pointer;box-shadow:0 2px 0 rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.12),0 0 0 1px rgba(255,255,255,.1);touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.back[hidden]{display:none}
.back i{position:relative;flex:none;width:32px;height:32px;border-radius:50%;background:radial-gradient(circle at 50% 38%,#4a525e 0 54%,#14171c 56% 100%);box-shadow:0 0 0 1.5px rgba(255,255,255,.16);transition:transform .16s cubic-bezier(.2,.9,.3,1.3)}
.back i::before{content:"";position:absolute;left:12.5px;top:10.5px;width:9px;height:9px;border-left:3.5px solid #1EC8FF;border-bottom:3.5px solid #1EC8FF;border-radius:1.5px;transform:rotate(45deg)}
@media (hover:hover){.back:hover i{transform:translateX(-3px)}}
.back:active i{transform:translateX(-5px)}
.back:active{transform:translateY(1px);box-shadow:0 1px 0 rgba(0,0,0,.28)}
.back:focus-visible{outline:3px solid var(--hero);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.back i,.logo-mark{transition:none}}
@media print{.back{display:none}}
/* the locker room's detail box: its own close button (a tap anywhere outside the box puts it away too) */
.lk-detail .lk-x{position:absolute;top:6px;right:6px;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;touch-action:manipulation}
.lk-detail .lk-x::before,.lk-detail .lk-x::after{content:"";position:absolute;left:13px;right:13px;top:21px;height:2.5px;border-radius:2px;background:#C8D0D8}
.lk-detail .lk-x::before{transform:rotate(45deg)}
.lk-detail .lk-x::after{transform:rotate(-45deg)}
.lk-detail .lk-x:focus-visible{outline:3px solid var(--hero);outline-offset:-4px}
.lk-detail span{padding-right:34px}
/* the guess before a lesson has no score: the scoreboard is not shown for it */
.try .sb{visibility:hidden}

/* The test site (test.smart.frozenboys.com): the same app with made-up players. A tag in the corner says which site this is and what a
   screenshot of a real device cannot show (the voice playing, the screen kept on, the ice view's pace: public/app.js, testTag),
   and its sign-in screen lists its players (testSignIn). The real site never shows either. */
.test-tag{position:fixed;left:8px;bottom:8px;z-index:50;max-width:72vw;padding:3px 8px;border-radius:6px;background:rgba(200,16,46,.9);color:#fff;font:600 11px/1.45 system-ui,sans-serif;white-space:pre-line;pointer-events:none}
.signin-test{display:flex;flex-direction:column;gap:10px;align-items:flex-start;margin-top:4px}
