/* Last Chance is scoped to its own view; the rest of the game keeps its layout. */
.halftime-menu-slide.is-last-chance .club-slide-art{background-image:url('/halftime-assets/last-chance/menu.png')}
body.last-chance-background{background:#15130e}
body.last-chance-background .page-shell{width:100%;max-width:none;padding-inline:0;box-sizing:border-box}
.last-chance-view{position:relative;isolation:isolate;min-height:calc(100svh - 88px);padding:64px clamp(16px,3vw,52px) 40px;color:#fff6df;display:grid;place-items:center;font-family:var(--body,Manrope,sans-serif)}
.last-chance-view::before{content:"";position:fixed;inset:0;z-index:-2;background:var(--lc-wallpaper,url('/halftime-assets/last-chance/stadium.png')) center/cover no-repeat}
.last-chance-view.is-playing::before{display:none}
.lc-back{position:absolute!important;top:15px;left:20px;z-index:5}
.last-chance-view:not(.is-playing) .lc-back{top:4px;left:max(clamp(14px,3vw,52px),calc((100% - 1740px)/2))}
.lc-content{width:min(1740px,100%);min-width:0}
.lc-panel{position:relative;isolation:isolate;overflow:clip;background:transparent;border:1px solid var(--goat-glass-edge);border-radius:24px;padding:36px;box-shadow:0 12px 34px rgba(1,1,1,.32),inset 0 1px 0 var(--goat-glass-highlight),inset 0 -1px 0 rgba(212,169,79,.1);box-sizing:border-box;min-width:0}
/* Cached stadium texture supplies the soft glass appearance without a live
   filter/backdrop surface that can retain stale hover repaint rectangles. */
.lc-panel::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--goat-glass-surface);pointer-events:none}
.lc-panel::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:inherit;background-image:var(--lc-glass-wallpaper,url('/halftime-assets/last-chance/stadium.png'));background-size:var(--lc-wallpaper-width,100vw) var(--lc-wallpaper-height,100vh);background-position:var(--lc-glass-x,0px) var(--lc-glass-y,0px);background-repeat:no-repeat;pointer-events:none}
.last-chance-view h1,.last-chance-view h2,.last-chance-view h3{font-family:'Barlow Condensed',sans-serif;color:#e7c674;line-height:1.05;margin:0;text-transform:uppercase;letter-spacing:.01em}
.last-chance-view h1{font-size:clamp(44px,6vw,84px)}
.last-chance-view h2{font-size:clamp(30px,2.6vw,42px)}
.last-chance-view h3{font-size:28px}
.lc-menu{text-align:center;width:min(1320px,100%);margin:auto;min-height:560px;display:flex;flex-direction:column;justify-content:center;padding:64px clamp(30px,6vw,100px) 32px}
.lc-menu h1{font-size:clamp(64px,8vw,128px)}
.lc-menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:44px;margin:52px 0 48px}
.last-chance-view button,.last-chance-view input,.last-chance-view select{font:inherit}
.last-chance-view .lc-button{position:relative;isolation:isolate;overflow:hidden;cursor:pointer;background:var(--goat-glass-surface);color:rgba(217,209,194,.8);border:1px solid var(--goat-glass-edge);border-radius:12px;min-height:48px;padding:12px 22px;font-size:16px;font-weight:800;box-shadow:inset 0 1px 0 var(--goat-glass-highlight);transition:background .2s,border-color .2s,color .2s}
.last-chance-view .lc-button:hover:not(:disabled){color:#fbf7ef;background:rgba(212,169,79,.07);border-color:rgba(212,169,79,.22)}
.last-chance-view .lc-button:focus-visible,.last-chance-view input:focus-visible,.last-chance-view select:focus-visible{outline:2px solid rgba(240,215,155,.66);outline-offset:3px}
.last-chance-view .lc-button:disabled{cursor:default;opacity:.52;transform:none}
.last-chance-view .lc-button.lc-main-button{font:800 clamp(40px,4.5vw,76px)/1 'Barlow Condensed',sans-serif;min-height:168px;border-radius:24px}
.lc-leaderboard{align-self:flex-end;font:800 28px/1 'Barlow Condensed',sans-serif!important;min-width:220px}
.lc-form{width:min(1020px,100%);margin:auto;display:grid;gap:38px;padding:48px 56px}
.lc-form h1{text-align:center;font-size:clamp(44px,5vw,72px);margin-bottom:8px}
.lc-form label,.lc-lobby label{display:grid;gap:12px;font-size:16px;font-weight:800;letter-spacing:.03em}
.last-chance-view input,.last-chance-view select{width:100%;background:rgba(22,20,16,.64);border:1px solid #d0b47350;border-radius:10px;color:#fff4d9;padding:14px 16px;min-height:54px;font-size:18px;box-sizing:border-box}
.last-chance-view select option{background:#242017}
.lc-inline-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.lc-form-actions{justify-content:center;gap:18px;margin-top:6px}
.lc-form-actions .lc-button{min-width:156px}
.last-chance-view .lc-form-actions .lc-button{font:800 22px/1.2 'Barlow Condensed',sans-serif}
.lc-choice-group{border:0;margin:0;padding:0;min-width:0;text-align:center}
.lc-choice-group legend{width:100%;padding:0;margin-bottom:18px;font-size:16px;letter-spacing:.06em;font-weight:800;color:#fff4d9}
.lc-choice-options{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:18px;width:min(780px,100%);margin-inline:auto}
.lc-opponent-options{width:min(520px,100%)}
.lc-team-options{width:min(640px,100%)}
.lc-team-options .lc-option span{font-size:clamp(22px,3vw,32px)}
.lc-form .lc-join-code{width:min(280px,100%);justify-self:center;text-align:center}
.last-chance-view #lcJoinCode{text-align:center;text-transform:uppercase;letter-spacing:.14em}
.lc-form .lc-option{position:relative;isolation:isolate;overflow:hidden;display:grid;place-items:center;min-height:108px;gap:0;padding:18px 12px;box-sizing:border-box;border:1px solid var(--goat-glass-edge);border-radius:18px;background:var(--goat-glass-surface);box-shadow:inset 0 1px 0 var(--goat-glass-highlight);color:rgba(217,209,194,.8);cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.lc-option span{font:800 36px/1.1 'Barlow Condensed',sans-serif}
.lc-form .lc-option input{position:absolute;opacity:0;clip-path:inset(50%);width:1px;height:1px;min-height:0;margin:0;padding:0;border:0;overflow:hidden}
.lc-option:hover{color:#fbf7ef;background:rgba(212,169,79,.07);border-color:rgba(212,169,79,.22)}
.lc-form .lc-option:has(input:checked){color:#f0d79b;border-color:rgba(212,169,79,.5);background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.02) 55%,rgba(212,169,79,.16));box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -8px 18px rgba(212,169,79,.10)}
.lc-option:has(input:focus-visible){outline:2px solid rgba(240,215,155,.66);outline-offset:3px}
.lc-lobby{display:grid;grid-template-columns:minmax(400px,.95fr) minmax(0,2fr);gap:28px;align-items:stretch}
.lc-lobby-jumps{display:none}
.lc-lobby-side{display:flex;flex-direction:column;gap:26px;padding:32px}
.lc-lobby-side h1{font-size:clamp(42px,3.6vw,66px)}
.lc-mode-label{text-transform:uppercase;font-size:16px;font-weight:800;color:#fff1cb}
.lc-teams{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.lc-team{background:rgba(12,11,9,.3);padding:20px 16px;border-radius:16px;display:grid;gap:16px;align-content:start;min-width:0;min-height:calc(70px + var(--lc-team-slots,1)*64px);box-sizing:border-box}
.lc-team h3{font-size:26px}
.lc-member{min-width:0;color:#e7c674}
.lc-member-heading{display:flex;align-items:baseline;gap:5px;min-width:0;font:700 18px/1.3 'Barlow Condensed',sans-serif}
.lc-captain{flex:none;font-size:13px}
.lc-member-name{display:block;flex:1;min-width:0;white-space:nowrap;overflow:hidden}
.lc-member small{display:block;font:500 13px/1.5 var(--body,Manrope,sans-serif);color:#fff0ce;margin-top:4px}
.lc-invite{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:15px;font-weight:800}
.lc-code{font:800 28px/1 'Barlow Condensed',sans-serif;letter-spacing:.12em;color:#f7d791;background:#25211880;border-radius:9px;padding:10px 14px;user-select:all}
.lc-code-tools{display:inline-flex;align-items:center;gap:4px;min-width:0}
.last-chance-view .lc-icon-button{display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:8px;background:none;box-shadow:none;color:#e7c674;cursor:pointer;transition:color .2s}
.last-chance-view .lc-icon-button:hover:not(:disabled){color:#fbf7ef}
.last-chance-view .lc-icon-button:focus-visible{outline:2px solid rgba(240,215,155,.66);outline-offset:2px}
.last-chance-view .lc-icon-button:disabled{opacity:.45;cursor:default}
.lc-ui-icon{display:block;width:24px;height:24px}
.lc-chat{display:flex;flex-direction:column;gap:16px;flex:1;min-height:0}
.lc-chat-log{height:0;min-height:240px;flex:1 1 0;overflow:auto;background:rgba(12,11,9,.3);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:12px;font-size:15px;line-height:1.6;scrollbar-width:thin}
.lc-chat-log p{margin:0;overflow-wrap:anywhere}
.lc-chat-log strong{color:#e7c674;margin-right:6px}
.lc-chat-form{display:flex;align-items:center;gap:10px}
.lc-chat-form input{min-width:0;font-size:16px;padding:12px}
.lc-selection-panel{display:grid;grid-template-rows:1fr 1fr auto;gap:30px;padding:32px}
.lc-selection-panel>section{min-width:0}
.lc-selection-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.lc-selection-heading small{font:800 17px 'Barlow Condensed',sans-serif;text-transform:uppercase;white-space:nowrap}
.lc-card-pager{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:10px;align-items:center;isolation:isolate;contain:paint}
.lc-cards{display:grid;grid-template-columns:repeat(var(--lc-card-columns),minmax(0,1fr));gap:16px;overflow:visible;padding:10px 0}
.lc-card-arrow{display:grid;place-items:center;align-self:center;min-width:36px;min-height:54px;padding:0;background:var(--goat-glass-surface);border:1px solid var(--goat-glass-edge);border-radius:12px;color:#e7c674;cursor:pointer;transition:color .2s,background .2s,border-color .2s}
.lc-card-arrow svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lc-card-arrow:hover:not(:disabled){background:rgba(212,169,79,.07);color:#fbf7ef;border-color:rgba(212,169,79,.22)}
.lc-card-arrow:focus-visible{outline:2px solid rgba(240,215,155,.66);outline-offset:2px}
.lc-card-arrow:disabled{opacity:.22;cursor:default}
.lc-page-position{text-align:center;font-size:14px;font-variant-numeric:tabular-nums;color:#d2c6ac;margin:10px 0 0}
.lc-card-button{position:relative;display:grid;gap:10px;align-content:start;background:transparent;border:0;border-radius:10px;padding:6px;color:#fff5df;cursor:pointer;min-width:0;text-align:center}
.lc-card-button:focus-visible{outline:3px solid #ffe9a4;outline-offset:2px}
.lc-card-button.is-selected{background:transparent}
.lc-card-button.is-selected::after{content:'✓';position:absolute;top:2px;right:0;z-index:6;display:grid;place-items:center;width:28px;height:28px;border:1px solid rgba(212,169,79,.5);border-radius:50%;background:#211c12;color:#f0d79b;font-size:18px;font-weight:800;pointer-events:none}
.lc-card-button:disabled{cursor:default}
.lc-card-button .footballer-card-shell{width:100%;margin:auto}
#lastChanceView .lc-card-button,#lastChanceView .footballer-card-shell,#lastChanceView .footballer-card,#lastChanceView .footballer-card-shell:hover,#lastChanceView .footballer-card:hover{box-shadow:none!important;filter:none!important}
#lastChanceView .footballer-card-shell,#lastChanceView .footballer-card{transform:none!important}
#lastChanceView .lc-card-button .footballer-card-shell{transition:transform .10s ease-out!important}
#lastChanceView .lc-card-button:is(:hover,.is-selected):not(:disabled) .footballer-card-shell{transform:translateY(-4px)!important}
@media(prefers-reduced-motion:reduce){#lastChanceView .lc-card-button .footballer-card-shell{transition:none!important}}
#lastChanceView .footballer-card-glow,#lastChanceView .footballer-card::before,#lastChanceView .footballer-card::after,#lastChanceView .footballer-card-shell::before,#lastChanceView .footballer-card-shell::after{display:none!important}
.lc-owner{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.lc-empty{font-size:13px;line-height:1.6;color:#fff2d8;margin:0;padding:17px;background:#201b16a1;border-radius:12px}
.lc-ready-row{display:flex;align-items:center;justify-content:flex-end}
.last-chance-view .lc-ready{color:#f0d79b;border-color:rgba(212,169,79,.5);min-width:156px}
.last-chance-view .lc-ready,.last-chance-view button.lc-leave{font:800 28px 'Barlow Condensed',sans-serif}
.last-chance-view button.lc-leave{text-transform:uppercase}
.lc-ready-note{font-size:12px;line-height:1.5;margin:0;color:#fff2d8}
.lc-message{position:relative;z-index:4;max-width:700px;border-radius:10px;background:#241c11eb;color:#fff0ce;font-size:13px;line-height:1.6;padding:12px 18px;margin:16px auto 0;text-align:center}
.lc-message:empty{display:none}
body.last-chance-playing{overflow:hidden}
body.last-chance-playing .site-header,body.last-chance-playing #siteFooter{display:none!important}
body.last-chance-playing .page-shell{max-width:none!important;padding:0!important;margin:0!important}
.last-chance-view.is-playing{position:fixed;inset:0;z-index:40;display:block;width:100%;height:100dvh;min-height:0;padding:0;overflow:hidden}
.is-playing .lc-content{width:100%;height:100%}
.is-playing .lc-back{top:max(20px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));z-index:20}
.is-playing .lc-message{position:fixed;z-index:30;top:180px;left:50%;transform:translateX(-50%);margin:0;width:min(600px,calc(100% - 40px));box-sizing:border-box}
.lc-pitch-shell{position:relative;width:100%;height:100%;isolation:isolate}
.lc-sound-toggle{position:absolute;z-index:20;left:max(14px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom))}
.lc-scoreboard{position:absolute;z-index:10;top:max(18px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:grid;grid-template-columns:154px minmax(0,1fr) 154px;align-items:center;gap:24px;width:min(720px,calc(100% - 200px));padding:16px 28px;box-sizing:border-box;background:var(--goat-glass-surface);backdrop-filter:var(--goat-glass-filter);-webkit-backdrop-filter:var(--goat-glass-filter);box-shadow:inset 0 0 0 1px var(--goat-glass-edge);border-radius:20px;text-align:center}
.lc-scoreboard h1{font-size:clamp(28px,3.2vw,44px)}
.lc-score-title{display:grid;gap:8px;min-width:0}
.lc-turn-status,.lc-score-name{color:#fff;font-size:16px;line-height:1.3;font-weight:700;text-wrap:balance}
.lc-score-team{display:grid;justify-items:center;gap:6px}
.lc-penalty-row{display:flex;align-items:center;gap:5px;--lc-dot-size:18px}
.lc-penalty-dot{box-sizing:border-box;width:var(--lc-dot-size);height:var(--lc-dot-size);border:1px solid #fff4d6a6;border-radius:50%}
.lc-penalty-dot[data-outcome=scored]{background:#276a3e;border-color:#8ada9d}
.lc-penalty-dot[data-outcome=missed]{background:#8f2f2b;border-color:#ee8a83}
.lc-penalty-extra{display:flex;border-inline-start:1px solid #fff4d6a6;padding-inline-start:5px}
.lc-field{position:absolute;inset:0;overflow:hidden;isolation:isolate}
/* The scene and its objects share the original artwork's 1672:941 coordinates. */
.lc-scene{position:absolute;left:50%;top:50%;width:max(100vw,177.68331562dvh);height:max(100dvh,56.27990431vw);transform:translate(-50%,-50%);background:url('/halftime-assets/last-chance/stadium.png') center/100% 100% no-repeat}
.lc-field .lc-goalkeeper{position:absolute;z-index:1;left:45.7%;top:44.4%;width:8.6%;pointer-events:none;transition:opacity .2s}
.lc-field .lc-goalkeeper .footballer-card-shell{width:100%}
.lc-field .lc-glove{position:absolute;z-index:4;top:55%;width:8.2%;height:auto;pointer-events:none;filter:drop-shadow(0 6px 6px #0006);transition:left 700ms cubic-bezier(.22,.6,.3,1),top 700ms cubic-bezier(.22,.6,.3,1),transform 700ms}
.lc-field .lc-glove-left{left:40%;transform:rotate(-13deg)}
.lc-field .lc-glove-right{left:51.8%;transform:rotate(13deg)}
.lc-field .lc-ball{position:absolute;z-index:5;left:47.2%;top:82%;width:5.6%;height:auto;pointer-events:none;filter:drop-shadow(0 4px 4px #0009);transition:left 700ms cubic-bezier(.22,.6,.3,1),top 700ms cubic-bezier(.22,.6,.3,1),width 700ms,transform 700ms,opacity 700ms}
.lc-field[data-save="left"] .lc-glove-left{left:31%;top:48%;transform:rotate(-38deg)}
.lc-field[data-save="right"] .lc-glove-right{left:61%;top:48%;transform:rotate(38deg)}
.lc-field[data-save="middle"] .lc-glove-left{left:44%;top:50%;transform:rotate(-7deg)}
.lc-field[data-save="middle"] .lc-glove-right{left:47.8%;top:50%;transform:rotate(7deg)}
.lc-field[data-shot="left"] .lc-ball{left:32.5%;top:52%;width:3.8%;transform:rotate(-150deg)}
.lc-field[data-shot="middle"] .lc-ball{left:48.1%;top:59%;width:3.8%;transform:rotate(80deg)}
.lc-field[data-shot="right"] .lc-ball{left:63.5%;top:52%;width:3.8%;transform:rotate(150deg)}
.lc-field[data-saved="true"][data-shot="middle"] .lc-ball{left:48.1%;top:54%}
.lc-sectors{position:absolute;z-index:3;left:28%;top:41.5%;width:44%;height:26%;display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.lc-sector{position:relative;background:transparent;border:0;border-radius:5px;cursor:pointer;transition:background .15s;color:#fff4d6;padding:0!important}
.lc-sector:hover:not(:disabled),.lc-sector:focus-visible,.lc-sector.is-chosen{background:#efce773c;outline:2px solid #f0d78b;outline-offset:-2px}
.lc-sector:disabled{cursor:default}
.lc-timer{position:absolute;z-index:6;top:max(144px,calc(env(safe-area-inset-top) + 130px));left:50%;transform:translateX(-50%);display:grid;place-items:center;background:rgba(14,13,10,.7);padding:10px 20px;border-radius:14px;font:800 34px/1 'Barlow Condensed',sans-serif;font-variant-numeric:tabular-nums;color:#ffe1a1;min-width:72px;text-align:center}
.lc-timer.is-urgent{color:#ffad83}
.lc-result{position:absolute;z-index:7;top:27%;left:0;width:100%;text-align:center;font:800 clamp(28px,5vw,64px) 'Barlow Condensed',sans-serif;color:#fff2c9;text-shadow:0 3px 12px #000;pointer-events:none}
.lc-pitch-actions{position:absolute;z-index:20;left:50%;transform:translateX(-50%);bottom:max(24px,env(safe-area-inset-bottom))}
.lc-pitch-actions .lc-button,.lc-match-end .lc-button{font-size:17px;min-width:180px;min-height:52px}
.lc-match-end{position:absolute;z-index:10;left:50%;bottom:max(28px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(560px,calc(100% - 32px));text-align:center}
.lc-match-end p{background:var(--goat-glass-surface);border-radius:14px;padding:16px;font-size:15px;line-height:1.5}
/* Portrait framing keeps both posts in view and scales the interactive props
   with the visible goal instead of using the previous heavily cropped view. */
@media(max-aspect-ratio:4/5){
  .lc-scene{width:210vw;height:100%;background-size:100% 100%;--lc-keeper-width:clamp(96px,min(30vw,16dvh),132px);--lc-glove-width:clamp(72px,22vw,100px)}
  .lc-field .lc-goalkeeper{left:calc(50% - var(--lc-keeper-width)/2);top:42%;width:var(--lc-keeper-width)}
  .lc-field .lc-glove{width:var(--lc-glove-width)}
  .lc-field .lc-glove-left{left:calc(50% - var(--lc-glove-width)*1.25)}
  .lc-field .lc-glove-right{left:calc(50% + var(--lc-glove-width)*.25)}
  /* The painted spot is centred at y=851.65 in the 941px stadium image.
     Subtract the displayed ball height (8.4% of 210vw × 675/685). */
  .lc-field .lc-ball{left:45.8%;top:calc(90.5% - 17.3825vw);width:8.4%}
  .lc-field[data-save="left"] .lc-glove-left{left:30%}
  .lc-field[data-save="right"] .lc-glove-right{left:60%}
  .lc-field[data-save="middle"] .lc-glove-left{left:calc(50% - var(--lc-glove-width)*.95)}
  .lc-field[data-save="middle"] .lc-glove-right{left:calc(50% - var(--lc-glove-width)*.05)}
  .lc-field[data-shot] .lc-ball{width:4%}
  .lc-field[data-shot="left"] .lc-ball{left:31.8%;top:52%}
  .lc-field[data-shot="right"] .lc-ball{left:64.2%;top:52%}
  .lc-field[data-shot="middle"] .lc-ball{left:48%;top:59%}
  .lc-field[data-saved="true"][data-shot="middle"] .lc-ball{left:48%;top:54%}
}
@media(max-width:760px){
  .is-playing .lc-back{top:max(16px,env(safe-area-inset-top));left:12px}
  .lc-scoreboard{top:max(12px,env(safe-area-inset-top));left:74px;right:12px;transform:none;width:auto;grid-template-columns:1fr 1fr;gap:6px;padding:8px 10px;border-radius:16px}
  .lc-scoreboard h1{font-size:clamp(20px,5.4vw,30px)}
  .lc-score-title{grid-column:1 / -1;grid-row:1;gap:3px}
  .lc-score-team{gap:3px}
  .lc-penalty-row{gap:3px;--lc-dot-size:13px}
  .lc-penalty-extra{padding-inline-start:3px}
  .lc-turn-status,.lc-score-name{font-size:13px}
  .lc-timer{top:124px;font-size:28px;min-width:58px;padding:9px 15px}
  .lc-pitch-actions{left:50%;right:auto;bottom:max(16px,env(safe-area-inset-bottom))}
}
@media(max-height:520px) and (orientation:landscape){
  .lc-scoreboard{top:8px;left:50%;right:auto;transform:translateX(-50%);padding:7px 12px;width:min(560px,calc(100% - 128px));grid-template-columns:1fr minmax(90px,1.3fr) 1fr;gap:8px}
  .lc-scoreboard h1{font-size:26px}
  .lc-turn-status,.lc-score-name{font-size:13px}
  .lc-score-title{grid-column:auto;grid-row:auto;gap:4px}
  .lc-penalty-row{gap:3px;--lc-dot-size:13px}
  .lc-timer{top:96px;font-size:24px;padding:7px 12px}
  .lc-field .lc-ball{top:70%;width:4.8%}
  .lc-field[data-shot] .lc-ball{width:3.8%}
  .lc-result{top:auto;bottom:18%;font-size:36px}
  .lc-pitch-actions{bottom:max(8px,env(safe-area-inset-bottom))}
  .lc-pitch-actions .lc-button{min-height:42px;padding:8px 20px;font-size:14px}
}
@media(min-width:980px) and (max-width:1199px){.lc-lobby{grid-template-columns:minmax(340px,.85fr) minmax(0,2fr)}}
@media(max-width:979px){.lc-lobby{grid-template-columns:1fr}.lc-lobby-side{gap:24px}.lc-chat-log{min-height:140px}.lc-selection-panel{grid-template-rows:auto auto auto}.lc-selection-panel,.lc-lobby-side{padding:28px}.lc-lobby-side h1{font-size:54px}}
@media(max-width:760px){.last-chance-view{padding:64px 14px 24px;min-height:calc(100svh - 70px)}.lc-menu{padding:44px 24px 28px;min-height:460px}.lc-menu h1{font-size:clamp(46px,11vw,72px)}.lc-menu-actions{gap:16px;margin:40px 0}.last-chance-view .lc-button.lc-main-button{min-height:120px;border-radius:18px;font-size:40px}.lc-lobby{gap:20px}.lc-selection-panel,.lc-lobby-side{padding:22px}.lc-panel{border-radius:20px}.lc-form{padding:32px 24px;gap:26px}.lc-form h1{font-size:44px}.lc-selection-heading{gap:8px}.lc-selection-heading h2{font-size:29px}.lc-selection-heading small{font-size:14px}.lc-card-pager{grid-template-columns:26px minmax(0,1fr) 26px;gap:6px}.lc-card-arrow{min-width:26px;min-height:48px}.lc-card-arrow svg{width:22px}.lc-cards{gap:10px}.lc-owner{font-size:11px}.lc-teams{gap:12px}.lc-team{padding:16px 12px}.lc-member-heading{font-size:17px}.lc-leaderboard{font-size:23px!important;min-width:180px}}
@media(prefers-reduced-motion:reduce){.last-chance-view *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){
  .lc-choice-options{gap:10px}
  .lc-form .lc-option{min-height:86px;padding:12px 4px;border-radius:14px}
  .lc-option span{font-size:clamp(22px,6.5vw,32px)}
  .lc-form-actions{gap:12px}
  .lc-form-actions .lc-button{min-width:120px}
}
@media(max-width:479px){.lc-menu-actions{grid-template-columns:1fr;margin:32px 0}.last-chance-view .lc-button.lc-main-button{min-height:100px}}
@media(max-aspect-ratio:4/5) and (max-height:700px){
  .lc-pitch-actions{left:auto;right:12px;transform:none}
  .lc-pitch-actions .lc-button{min-width:112px}
}
/* Fit both selection rows and Ready into ordinary desktop heights. */
@media(min-width:980px){
  .last-chance-view:not(.is-playing){padding-top:48px;padding-bottom:24px}
  .lc-lobby-side{padding:24px;gap:20px}
  .lc-lobby-side h1{font-size:clamp(38px,3vw,58px);white-space:nowrap}
  .lc-chat-log{min-height:min(240px,18dvh)}
  .lc-selection-panel{padding:24px;gap:18px;grid-template-rows:auto auto auto}
  .lc-selection-heading{margin-bottom:12px}
  .lc-selection-heading h2{font-size:32px}
  .lc-selection-heading small{font-size:14px}
  .lc-cards{padding:6px 0}
  .lc-card-button{padding:4px;gap:8px}
  .lc-card-button .footballer-card-shell{width:min(100%,clamp(150px,calc((100dvh - 570px)/3),230px))}
  .lc-page-position{margin-top:6px}
  .last-chance-view .lc-ready,.last-chance-view button.lc-leave{font-size:24px;min-height:48px}
}
@media(max-width:979px){
  .lc-lobby-jumps{display:flex;gap:12px;justify-content:center}
  #lcLobby,#lcSelections{scroll-margin-top:24px}
}
@media(max-width:760px){
  .last-chance-view:not(.is-playing):has(.lc-menu){min-height:calc(100svh - 128px);padding:52px 16px 32px;box-sizing:border-box}
  .lc-menu{width:min(380px,100%);min-height:0;align-items:center;gap:24px;padding:28px 24px;margin-inline:auto}
  .lc-menu h1{font-size:clamp(38px,11vw,48px)}
  .lc-menu-actions{width:100%;max-width:280px;grid-template-columns:1fr;gap:16px;margin:0}
  .last-chance-view .lc-menu .lc-main-button{min-height:84px;font-size:36px}
  .lc-menu .lc-leaderboard{align-self:center;width:100%;max-width:280px;min-width:0;min-height:54px}
  .lc-choice-options{grid-auto-flow:row;grid-template-columns:1fr;max-width:280px}
  .lc-form-actions{flex-direction:column}
  .lc-form-actions .lc-button{width:100%;max-width:280px}
}
/* The shared full-size card typography scales with this smaller card surface. */
#lastChanceView .lc-player-card{container-type:inline-size}
#lastChanceView .lc-player-card>.footballer-card-rating{width:auto!important;min-width:0!important}
#lastChanceView .lc-player-card>.footballer-card-rating>strong{font-size:20cqw!important;line-height:.95!important}
#lastChanceView .lc-player-card>.footballer-card-identity{left:7%!important;right:6%!important;bottom:19.2%!important}
#lastChanceView .lc-player-card .footballer-card-name-line{gap:3cqw!important;min-width:0!important}
#lastChanceView .lc-player-card .footballer-card-name-flag{width:12cqw!important;height:9cqw!important;flex-basis:12cqw!important}
#lastChanceView .lc-player-card .footballer-card-name-line .footballer-card-name{font-size:11cqw!important;line-height:1!important;letter-spacing:-.03em!important;white-space:nowrap!important}
#lastChanceView .lc-player-card .footballer-card-name-line .footballer-card-name.name-long{font-size:9.5cqw!important}
#lastChanceView .lc-player-card .footballer-card-name-line .footballer-card-name.name-very-long{font-size:8.5cqw!important}
#lastChanceView .lc-player-card .footballer-card-meta{gap:2cqw!important;min-height:0!important;margin-top:1.6cqw!important}
#lastChanceView .lc-player-card .footballer-card-meta .footballer-card-position{font-size:5.5cqw!important}
#lastChanceView .lc-player-card .footballer-card-meta .footballer-card-age{font-size:5cqw!important}
#lastChanceView .lc-player-card .footballer-card-meta i{width:1.4cqw!important;height:1.4cqw!important;flex-basis:1.4cqw!important}
#lastChanceView .lc-player-card .footballer-card-meta .footballer-card-injury{font-size:4cqw!important}
#lastChanceView .lc-player-card .footballer-card-stats{left:12.5%!important;right:7.5%!important;bottom:6%!important;gap:.5cqw!important;align-items:end!important}
#lastChanceView .lc-player-card .footballer-card-stats.is-goalkeeper{left:12.5%!important;right:7.5%!important;gap:1cqw!important}
#lastChanceView .lc-player-card .card-main-stat,#lastChanceView .lc-player-card .card-main-stat.stat-elite{grid-template-rows:3.8cqw 6.2cqw!important;min-height:0!important;padding:1cqw 0 1.6cqw!important;gap:.5cqw!important}
#lastChanceView .lc-player-card .card-main-stat b,#lastChanceView .lc-player-card .card-main-stat.stat-elite b{display:flex!important;height:3.8cqw!important;align-items:flex-end!important;justify-content:center!important;font-size:2.8cqw!important;line-height:1!important;letter-spacing:0!important;white-space:nowrap!important}
#lastChanceView .lc-player-card .card-main-stat strong,#lastChanceView .lc-player-card .card-main-stat.stat-elite strong{font-size:5.5cqw!important}

/* Menu and lobby occupy the available viewport, below the shared navigation.
   On small screens the lobby tabs replace the former scrolling stack. */
body.last-chance-background{overflow:hidden}
body.last-chance-background #siteFooter{display:none!important}
.last-chance-view:not(.is-playing){position:fixed;inset:var(--lc-header-bottom,98px) 0 0;min-height:0!important;height:auto;box-sizing:border-box;padding:52px clamp(14px,3vw,52px) 16px!important;overflow:hidden}
.last-chance-view:not(.is-playing) .lc-content{height:100%;min-height:0;display:grid;place-items:center}
.last-chance-view:not(.is-playing) .lc-message{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);width:min(600px,calc(100% - 40px));box-sizing:border-box;margin:0;z-index:25}
.lc-menu{min-height:0;max-height:100%;padding:clamp(20px,4dvh,64px) clamp(24px,6vw,100px);gap:clamp(18px,3dvh,36px)}
.lc-menu-actions{margin:0;width:100%}
.lc-menu h1{font-size:clamp(40px,min(8vw,12dvh),128px)}
.last-chance-view .lc-menu .lc-main-button{min-height:clamp(60px,15dvh,168px)}
.lc-form{max-height:100%;gap:clamp(10px,3dvh,32px);padding:clamp(18px,3dvh,40px) clamp(20px,4vw,56px)}
.lc-form .lc-option{min-height:clamp(44px,10dvh,108px)}
.lc-lobby{width:100%;height:100%;min-height:0;gap:22px}
.lc-lobby-side,.lc-selection-panel{min-height:0;height:100%}
.lc-lobby-side{gap:clamp(8px,1.7dvh,20px);padding:clamp(16px,2.2dvh,28px)}
.lc-lobby-side h1{font-size:clamp(32px,4.4dvh,58px)}
.lc-teams{gap:12px;margin-top:10px}
.lc-team{min-height:0;gap:clamp(6px,1dvh,14px);padding:clamp(10px,1.5dvh,20px) 12px}
.lc-member-heading{font-size:18px}
.lc-member small{font-size:12px;line-height:1.3;margin-top:2px}
.lc-chat{gap:10px;min-height:90px}
.lc-chat-log{min-height:0;padding:12px;overscroll-behavior:contain}
.lc-selection-panel{grid-template-rows:minmax(0,1fr) minmax(0,1fr) auto;gap:16px;padding:24px}
.lc-selection-panel>section{container-type:size;min-height:0;display:flex;flex-direction:column}
.lc-selection-heading{flex:none;margin-bottom:8px}
.lc-card-pager{flex:1;min-height:0;container-type:size;grid-template-rows:minmax(0,1fr)}
.lc-cards{padding:6px 0}
.lc-card-button .footballer-card-shell{width:min(100%,max(55px,calc((100cqh - 98px)*.6667)),250px)}
.lc-page-position{flex:none;margin-top:4px}
.lc-owner{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:979px){
  .last-chance-view:not(.is-playing) .lc-back{left:max(clamp(14px,3vw,52px),calc((100% - 680px)/2))}
  .lc-lobby{grid-template-columns:1fr;grid-template-rows:44px minmax(0,1fr);gap:12px;max-width:680px;margin:auto}
  .lc-lobby-jumps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;min-width:0}
  .last-chance-view .lc-lobby-jumps .lc-button{min-height:44px;padding:6px 2px;font:800 clamp(13px,3.8vw,21px)/1 'Barlow Condensed',sans-serif}
  .lc-lobby-jumps [aria-pressed=true]{color:#f0d79b;border-color:rgba(212,169,79,.5);background:rgba(212,169,79,.12)}
  .lc-lobby-side{gap:12px;padding:18px}
  .lc-lobby-side h1{font-size:34px}
  .lc-lobby-side> :last-child{margin-top:auto}
  .lc-lobby[data-section=lcLobby] .lc-chat{display:none}
  .lc-lobby[data-section=lcChat] .lc-lobby-side> :not(h1):not(.lc-chat):not([data-lc-action=leave]){display:none}
  .lc-lobby[data-section=lcChat] .lc-chat{display:flex;flex:1}
  .lc-lobby:is([data-section=lcLobby],[data-section=lcChat]) .lc-selection-panel{display:none}
  .lc-lobby:is([data-section=lcSelections],[data-section=lcGoalkeepers]) .lc-lobby-side{display:none}
  .lc-selection-panel{grid-template-rows:minmax(0,1fr) auto;padding:18px}
  .lc-lobby[data-section=lcSelections] .lc-selection-panel>section:first-child,
  .lc-lobby[data-section=lcGoalkeepers] .lc-selection-panel>section:nth-child(2){display:none}
  .lc-card-button .footballer-card-shell{width:min(100%,max(70px,calc((100cqh - 98px)*.6667)),250px)}
  .lc-selection-heading h2{font-size:clamp(26px,5vw,36px)}
  .lc-team{gap:10px}
}
@media(max-width:760px){
  .lc-menu{gap:20px;padding:24px;max-width:380px}
  .lc-menu h1{font-size:clamp(36px,10vw,48px)}
  .lc-menu-actions{gap:12px}
  .last-chance-view .lc-menu .lc-main-button{min-height:clamp(52px,10dvh,84px)}
  .lc-menu .lc-leaderboard{min-height:48px}
  .lc-form{gap:12px;padding:18px 22px}
  .lc-form h1{font-size:36px;margin:0}
  .lc-choice-group legend{margin-bottom:8px;font-size:13px}
  .lc-choice-options{gap:6px}
  .lc-form .lc-option{min-height:44px;padding:6px}
  .lc-option span{font-size:26px}
  .lc-form-actions{gap:8px;margin-top:0}
  .lc-form-actions .lc-button{min-height:44px;padding:8px 12px}
  .lc-form label{gap:6px;font-size:13px}
}
@media(max-height:700px){
  .last-chance-view:not(.is-playing){padding-top:44px!important;padding-bottom:10px!important}
  .last-chance-view:not(.is-playing) .lc-back{top:0}
  .lc-lobby-side{padding:12px;gap:8px}
  .lc-lobby-side h1{font-size:28px}
  .lc-mode-label{font-size:12px}
  .lc-lobby-side h3{font-size:20px}
  .lc-teams{margin-top:6px;gap:8px}
  .lc-team{padding:8px;gap:6px}
  .lc-member-heading{font-size:16px;line-height:1.1}
  .lc-member small{font-size:11px}
  .lc-invite{font-size:12px;gap:4px}
  .lc-code{font-size:23px;padding:6px 8px}
  .lc-menu{gap:12px;padding:18px 24px}
  .lc-menu-actions{gap:8px}
  .lc-menu h1{font-size:36px}
  .lc-selection-panel{padding:12px;gap:8px}
  .lc-form{gap:8px;padding:12px 18px}
  .lc-form h1{font-size:30px}
  .lc-form-actions{flex-direction:row}
  .lc-form-actions .lc-button{width:auto;min-width:100px}
  .lc-opponent-options{grid-auto-flow:column;grid-template-columns:none}
}
@media(max-height:700px) and (orientation:landscape){
  .lc-menu{gap:10px;width:min(680px,100%);padding:14px 24px}
  .lc-menu-actions{grid-template-columns:1fr 1fr;max-width:none}
  .lc-menu .lc-leaderboard{align-self:center;min-height:40px}
  .lc-form{grid-template-columns:1fr 1fr;gap:4px 16px;width:min(720px,100%);padding:8px 16px}
  .lc-form h1{grid-column:1 / -1;font-size:28px;margin:0}
  .lc-form .lc-choice-group legend{font-size:12px;margin-bottom:4px}
  .lc-choice-options{grid-auto-flow:column;grid-template-columns:none;max-width:100%}
  .lc-form .lc-option{min-height:44px;padding:4px}
  .lc-form .lc-option span{font-size:24px}
  .lc-form .lc-join-code{gap:4px;font-size:12px}
  .lc-form #lcJoinCode{min-height:44px;padding:8px}
  .lc-form-actions{grid-column:1 / -1;flex-direction:row;margin:0;gap:12px}
  .lc-form-actions .lc-button{width:auto;min-height:40px;padding:6px 12px;font-size:20px!important}
  .lc-lobby-side{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:6px 16px}
  .lc-lobby-side>h1,.lc-lobby-side>div:has(.lc-mode-label){display:none}
  .lc-lobby-side>div:has(.lc-teams){grid-row:1 / 4}
  .lc-lobby-side> :last-child{margin-top:0}
  .lc-lobby[data-section=lcChat] .lc-lobby-side{display:flex}
}
@media(min-width:980px) and (max-height:900px){
  .lc-lobby-side{padding:14px;gap:8px}
  .lc-lobby-side h1{font-size:32px}
  .lc-mode-label{font-size:12px}
  .lc-lobby-side h3{font-size:22px}
  .lc-teams{gap:8px;margin-top:6px}
  .lc-team{padding:8px;gap:4px}
  .lc-member-heading{font-size:16px;line-height:1.1}
  .lc-member small{font-size:11px;line-height:1.2}
  .lc-chat{gap:6px;min-height:80px}
  .lc-chat-form input{min-height:44px;padding:8px}
  .lc-invite{font-size:12px;gap:6px}
  .lc-code{font-size:24px;padding:6px 8px}
}
@media(max-width:979px) and (max-height:700px){
  .lc-team{gap:4px}
  .lc-member small{font-size:10px;line-height:1.1}
}
@media(max-width:979px) and (max-height:600px){
  .lc-lobby-side{padding:8px;gap:4px}
  .lc-lobby-side>h1,.lc-lobby-side>div:has(.lc-mode-label),.lc-lobby-side>div:has(.lc-teams)>h3{display:none}
  .lc-team{padding:6px}
  .lc-team h3{font-size:18px}
  .lc-member-heading{font-size:14px;line-height:1}
  .lc-member small{margin-top:1px}
  .lc-teams{margin-top:0}
  .lc-chat{min-height:0}
}
@media(max-height:520px) and (orientation:landscape){
  /* A single navigation row leaves room for the game controls on a phone
     held sideways. All header links and account actions remain available. */
  body.last-chance-background .site-header{flex-wrap:nowrap!important;min-height:60px!important;padding:6px 0!important;gap:10px!important}
  body.last-chance-background .brand-copy{display:none}
  body.last-chance-background .brand-mark{width:36px!important;height:40px!important}
  body.last-chance-background .site-menu{order:0!important;width:auto!important;margin:0 auto!important;padding:4px!important}
  body.last-chance-background .site-menu a,body.last-chance-background .site-menu button{min-height:40px!important;padding:0 12px!important}
  body.last-chance-background .header-account{margin-left:0!important}
  body.last-chance-background #headerUserName{display:none!important}
  .last-chance-view:not(.is-playing){padding:8px 16px 8px 70px!important}
  .last-chance-view:not(.is-playing) .lc-back{top:8px;left:max(14px,calc((100% - 680px + 54px)/2 - 56px))}
  .lc-lobby{gap:8px}
  .lc-lobby-side{padding:8px}
  .lc-lobby-side .lc-member{display:flex;align-items:baseline;gap:6px}
  .lc-lobby-side .lc-member-heading{flex:1;min-width:0}
  .lc-lobby-side .lc-member small{flex:none;font-size:10px}
  .lc-lobby-side .lc-chat h3{display:none}
  .lc-selection-heading h2{font-size:24px}
  .lc-selection-panel{padding:10px;gap:8px;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr)}
  .lc-selection-panel>section{grid-column:1;grid-row:1}
  .lc-ready-row{grid-column:2;grid-row:1;align-self:end}
  .last-chance-view .lc-ready-row .lc-ready{min-width:100px}
  .last-chance-view .lc-ready-row .lc-ready,.last-chance-view button.lc-leave{font-size:22px;min-height:44px}
  .lc-selection-panel .lc-card-button .footballer-card-shell{width:min(100%,max(40px,calc((100cqh - 98px)*.6667)),250px)}
}
/* Size cards from their actual pager height, including the owner label. */
#lastChanceView .lc-card-button .footballer-card-shell{width:min(100%,max(28px,calc((100cqh - 54px)/1.5)),250px);padding-top:6px}
