/* Approved supplied art is reused as an intact image sheet, never regenerated. */
.reef-page{margin:0;background:#004e90 url('/assets/reef-champions/approved-icon-sheet.png') center/cover fixed;font:700 17px/1.5 system-ui,sans-serif;color:#fff}.reef-page *{box-sizing:border-box}.reef-page main{max-width:1050px;margin:auto;padding:16px clamp(10px,3vw,36px) 50px;background:linear-gradient(#0059a0d9,#009ed5df);border:5px solid #62eaff;border-radius:30px;box-shadow:0 0 50px #00eaff99}.reef-hero{text-align:center;position:relative}.reef-back{position:absolute;top:5px;left:2px;background:linear-gradient(#65eeff,#0053d8);border:3px solid #a3f3ff;border-radius:50%;width:54px;height:54px;color:white;font-size:32px;text-decoration:none;box-shadow:0 5px #002c6e}.reef-brand{background:linear-gradient(#fff3ae,#ffc043 38%,#ffd97a 48%,#e99b38 80%,#ffe6a2);border:5px solid #fff1ae;border-radius:40% 40% 25px 25px;padding:4px 35px 18px;box-shadow:0 9px #ac5e17,0 15px #00357a;margin:15px 55px 24px;color:#30ddff;text-shadow:none}.reef-brand>span{font-size:50px;color:#ffe900;line-height:1}.reef-brand h1{font-size:clamp(28px,5vw,62px);line-height:1.05;margin:0;font-weight:1000;letter-spacing:-2px;-webkit-text-stroke:0}.reef-brand em{color:#ffe635;font-style:normal}.reef-brand small{display:block;font-size:.8em;color:#fff}.reef-hero>p{display:inline-block;margin:0 0 15px;background:linear-gradient(#b6ffff,#0ac8f8);padding:6px 35px;border:3px solid #92f5ff;border-radius:30px;color:#062b66;font-size:24px;box-shadow:0 5px #005298}.reef-scope{text-align:center;font-size:14px;background:#062d60;padding:10px;border-radius:14px}.reef-tools{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.reef-tools a,.reef-tools button,.reef-entry{display:inline-block;padding:12px 18px;border:2px solid #9deaff;border-radius:22px;background:linear-gradient(#05bbf9,#0057b1);color:#fff;text-decoration:none;font:inherit;cursor:pointer;box-shadow:0 4px #00366c}.reef-entry{margin:15px 0}.reef-page button{cursor:pointer}.reef-page button:disabled{cursor:wait;opacity:.7}.reef-page button:focus-visible,.reef-page a:focus-visible{outline:4px solid #fff;outline-offset:4px}.reef-rankings{padding:0;list-style:none;display:grid;gap:16px}.reef-row{display:grid;grid-template-columns:54px 88px minmax(0,1fr) 125px;align-items:center;gap:12px;background:linear-gradient(#fff4b8,#ffb53e 35%,#ffe29b 50%,#e99c37 80%,#ffd686);border:4px solid #fff3bd;border-radius:24px;box-shadow:0 5px #ae631d,0 8px 16px #003869aa;padding:8px;color:#032963;min-height:108px}.reef-me{outline:4px solid #71ff57;outline-offset:3px}.reef-rank{display:grid;place-items:center;min-width:45px;height:50px;border:3px solid #9af4ff;border-radius:50%;background:linear-gradient(#10cfff,#0045ad);color:#fff;font-size:24px;text-shadow:0 2px #002256}.reef-avatar{display:block;width:100%;height:auto;aspect-ratio:1;overflow:hidden;border-radius:50%;border:3px solid #b1ffff;box-shadow:0 4px #00437b;background:#009edc}.reef-name{font-weight:1000;color:var(--name-color,#0069ff);font-size:clamp(20px,3.5vw,39px);line-height:1.25;text-shadow:none;-webkit-text-stroke:0;overflow-wrap:anywhere}.reef-name small{font-size:13px;white-space:nowrap;color:#10366c;text-shadow:none;-webkit-text-stroke:0}.reef-count{background:#fffceb;border:3px solid #ffdd67;border-radius:24px;padding:5px 10px;text-align:center;font-size:30px;white-space:nowrap}.reef-count small{font-size:14px;display:block}.reef-style,.reef-empty{margin:30px 0;padding:20px;border:4px solid #97f7ff;background:linear-gradient(#05a4d8ed,#005bb8ee);border-radius:28px;box-shadow:inset 0 2px 12px #b1faff88,0 8px #003d79}.reef-style h2{text-align:center;background:linear-gradient(#ffeca1,#ffc14f);border:3px solid #fff2bd;border-radius:20px;color:#03265c;padding:8px;margin:10px 0 24px;text-shadow:0 2px white;box-shadow:0 5px #a75d19}.reef-icon-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px}.reef-icon-grid button{border:0;border-radius:50%;background:transparent;padding:0;transition:transform .15s}.reef-icon-grid button[aria-pressed=true]{outline:5px solid #fff655;outline-offset:2px;transform:scale(1.06)}.reef-colors{display:flex;gap:13px;justify-content:center;flex-wrap:wrap}.reef-colors button{border:3px solid white;background:radial-gradient(circle at 32% 20%,#ffffffb0,var(--swatch) 45%,#002f5d);border-radius:50%;width:55px;height:55px;color:white;font-size:26px;box-shadow:0 4px #003375}.reef-colors button[aria-pressed=true]{outline:4px solid #fff555;outline-offset:3px}.reef-style-preview{display:flex;align-items:center;justify-content:center;gap:20px;background:#ffdc7f;border:3px solid white;border-radius:22px;margin:25px 0;padding:15px}.reef-style-preview svg{width:85px}.reef-save{display:block;margin:20px auto;padding:14px 35px;border:4px solid #ffffa2;border-radius:35px;background:linear-gradient(#fff356,#ffb800);box-shadow:inset 0 4px #fff,0 7px #b45f00,0 11px #00529b;color:#06296a;font:1000 26px system-ui;text-shadow:0 2px #fff}.reef-my-rank{text-align:center;background:#00355c;border:2px solid #89f5ff;border-radius:18px;padding:12px}#reefStatus{min-height:25px;text-align:center;background:#043256;border-radius:12px;padding:8px}.reef-style p,.reef-empty p{max-width:760px;margin:16px auto}.reef-page a{color:inherit}@media(max-width:600px){.reef-page main{border-width:3px;border-radius:18px}.reef-brand{margin:10px 32px 25px;padding:8px 15px 12px}.reef-brand h1{letter-spacing:-1px}.reef-back{width:40px;height:40px;font-size:22px}.reef-hero>p{font-size:18px;padding:5px 15px}.reef-icon-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.reef-row{grid-template-columns:32px 52px minmax(0,1fr) 64px;gap:6px;padding:7px 5px;min-height:78px;border-width:3px}.reef-rank{min-width:30px;height:35px;font-size:19px;border-width:2px}.reef-count{padding:5px 2px;font-size:23px;border-width:2px}.reef-count small{font-size:11px}.reef-name{font-size:21px}.reef-style{padding:12px}.reef-colors button{width:44px;height:44px}.reef-save{font-size:22px;padding:12px 25px}}@media(prefers-reduced-motion:reduce){.reef-page *{transition:none!important;animation:none!important}}

/* Filled lettering avoids the browser stroke artifacts inside e/a glyphs. */
.reef-brand{background:linear-gradient(120deg,#ffffff70,transparent 27%,transparent 70%,#fff1a866),repeating-linear-gradient(0deg,transparent 0 13px,#d8841210 14px 16px),linear-gradient(#fff4b2,#ffcf54 36%,#ffe99a 47%,#f3a636 82%,#ffe497);box-shadow:inset 0 4px 0 #fffbe8,inset 0 -4px 0 #e4a143,0 7px 0 #b16a1c,0 12px 0 #073e78,0 16px 24px #00264455;text-shadow:none}
.reef-brand h1,.reef-brand h1 *,.reef-name{-webkit-text-stroke:0!important;text-shadow:none!important;font-family:"Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif;font-weight:900}
.reef-brand h1{line-height:1.16;letter-spacing:-1.5px}
.reef-brand .reef-title-word{color:transparent;background-clip:text;-webkit-background-clip:text;filter:drop-shadow(0 2px 0 #04396c) drop-shadow(0 2px 0 #052b52) drop-shadow(0 3px 3px #062b4950)}
.reef-brand .reef-title-water{background-image:linear-gradient(#f0ffff 0%,#63f5ff 24%,#05bdec 58%,#0086d5 100%)}
.reef-brand .reef-title-fire{background-image:linear-gradient(#fff9c5 0%,#fff150 25%,#ffc813 60%,#ff8c13 100%)}
.reef-brand .reef-title-white{display:block;background-image:linear-gradient(#fff 10%,#fff 45%,#bdefff 100%);font-size:.8em}
.reef-crown{display:block;width:58px;height:40px;margin:2px auto 6px;filter:drop-shadow(0 3px 0 #99590b) drop-shadow(0 4px 4px #0a385d45)}
.reef-name{color:transparent;background-image:linear-gradient(#fff 0%,var(--name-color) 24%,var(--name-color) 72%,#073b69 100%);background-clip:text;-webkit-background-clip:text;filter:drop-shadow(0 1px 0 #fff8d6) drop-shadow(0 2px 0 #053c68);letter-spacing:-.4px}
.reef-name small{filter:none;color:#123a65;letter-spacing:0}
.reef-avatar{aspect-ratio:1/1;object-fit:cover;overflow:hidden;border:3px solid #a5f5ff;box-shadow:0 3px 0 #06477b,0 0 12px #5defff60}
.reef-icon-grid button{aspect-ratio:1/1;min-width:0}
.reef-style-preview{background:linear-gradient(120deg,#fff4bc,#ffd975 45%,#ffe9a0);box-shadow:inset 0 3px 0 #fff9df,0 4px 0 #0b548d}
@media(max-width:600px){.reef-brand h1{letter-spacing:-.6px}.reef-crown{width:48px;height:34px}}
/* Approved scene artwork with live data; setup is a separate view. */
.reef-page{background:radial-gradient(ellipse at 50% 0%,#28e9ff,#008dc9 60%,#0064b2);font-family:"Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif}
.reef-page main{position:relative;isolation:isolate;overflow:hidden;max-width:941px;min-height:100vh;padding:0 0 24px;border:0;border-radius:0;background:radial-gradient(ellipse at 50% 12%,#26d9ee88,transparent 55%),linear-gradient(#009ed7,#087ac0 65%,#0ac0d9);box-shadow:0 0 40px #00447888}
.reef-page main>*{position:relative;z-index:1}
.reef-page main>.reef-scene-edges{position:absolute;top:0;left:0;width:100%;height:auto;pointer-events:none;z-index:0}
.reef-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.reef-scene-header>svg{display:block;width:100%;height:auto}
.reef-scene-header .reef-scene-back,.reef-scene-header .reef-scene-settings{position:absolute;top:5%;height:34%;width:11%;border:0;border-radius:50%;background:transparent;box-shadow:none;padding:0;cursor:pointer}
.reef-scene-back{left:2%}.reef-scene-settings{right:2%}
.reef-board{padding:10px 5.2% 0}
.reef-rankings{gap:15px;margin:0;padding:0;list-style:none}
.reef-board .reef-row{position:relative;isolation:isolate;display:grid;grid-template-columns:10% 20% minmax(0,1fr) 27%;gap:0;align-items:center;min-height:0;height:clamp(50px,8.5vw,80px);padding:0 3.5% 0 1%;border:3px solid #c0ffff;border-radius:46px;background:#ffcf75;box-shadow:inset 0 2px #fff1c6,0 4px #0069a5,0 7px 10px #00397244;overflow:visible}
.reef-wood-grain{position:absolute!important;inset:0;width:100%;height:100%;z-index:-1;border-radius:44px;overflow:hidden;pointer-events:none}
.reef-board .reef-me{outline:0;box-shadow:inset 0 2px #fffbd1,0 0 0 2px #fff2a5,0 0 18px #fff26599,0 5px #0067a1}
.reef-board .reef-row>*:not(.reef-wood-grain){position:relative;z-index:1}
.reef-board .reef-rank{position:relative;width:clamp(34px,8vw,76px);height:clamp(34px,8vw,76px);border:3px solid #70dbff;background:linear-gradient(#269ff2,#0053a8);box-shadow:inset 0 2px #fff9,0 3px #005183;font:900 clamp(22px,4.9vw,47px)/1 "Arial Rounded MT Bold","Trebuchet MS",sans-serif;text-shadow:0 2px #02316e;min-width:0}
.reef-board .reef-place-1 .reef-rank{background:linear-gradient(#fff199,#f7b700 50%,#c48000);border-color:#fff4a6;color:#fff9db;text-shadow:0 2px #a56c00;box-shadow:inset 0 2px #fff,0 3px #bb7700,0 0 15px #fff966}
.reef-board .reef-place-2 .reef-rank{background:linear-gradient(#eefaff,#a3b9ca,#4e6c8a);border-color:#effcff}
.reef-board .reef-place-3 .reef-rank{background:linear-gradient(#ffe0ae,#d18b3e,#945112);border-color:#ffe8b4}
.reef-rank-crown{position:absolute;top:-.65em;left:50%;transform:translateX(-50%);font-size:.65em;color:#ffed60;filter:drop-shadow(0 2px #ac6600)}
.reef-board .reef-avatar{width:clamp(54px,14.5vw,128px);height:clamp(54px,14.5vw,128px);max-width:none;justify-self:center;border:3px solid #c4ffff;background:#06a7d7;box-shadow:0 3px #00559d,0 0 0 2px #0dd8ee;z-index:2!important}
.reef-board .reef-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3;font-size:clamp(19px,5vw,46px);letter-spacing:-1.2px;padding:4px 3px;filter:drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(0 2px 0 #052955)}
.reef-board .reef-count{display:flex;align-items:center;justify-content:space-around;gap:5px;min-width:0;padding:3px 8px;background:linear-gradient(#fffdf0,#fff7dd);border:2px solid #d2a269;border-radius:35px;box-shadow:inset 0 2px #fff,0 1px 0 #fff;font-size:clamp(19px,4.6vw,44px);line-height:1.2;color:#061951}
.reef-count small{display:inline-block;font-size:clamp(10px,1.8vw,17px);padding:3px 6px;background:linear-gradient(#fff,#b6f7ff);border-radius:20px;color:#031d56}
.reef-count strong{font-weight:900}
.reef-plank-bubble{position:absolute!important;border:1px solid #9dfaff;border-radius:50%;background:radial-gradient(circle at 25% 22%,#fff 0 10%,#72dbea9c 35%,#167bbd77 70%,#c5ffff);box-shadow:0 1px #fff7;pointer-events:none}
.reef-plank-bubble-one{width:8px;height:8px;right:1%;top:27%}.reef-plank-bubble-two{width:5px;height:5px;left:35%;bottom:7%}
.reef-ranking-note,.reef-own-place{margin:20px 0 0;text-align:center;font-size:13px;color:#fff;text-shadow:0 1px #004b83}
.reef-scene-footer{margin:24px 5% 0;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;text-align:center}
.reef-scene-footer button,.reef-scene-footer a,.reef-cancel{padding:9px 16px;border:2px solid #aaf4ff;border-radius:22px;background:linear-gradient(#2ad9fa,#0071c2);color:#fff;font:inherit;text-decoration:none;min-height:44px}
.reef-scene-footer small{display:block;flex-basis:100%;font-size:12px;background:#004378bd;border-radius:12px;padding:5px}
.reef-player-setup .reef-style{margin:5px 5% 20px;background:linear-gradient(#0ac5eaeb,#056ec8f2);border-color:#9cf5ff}
.reef-style h3{text-align:center;background:linear-gradient(#fff0ae,#ffc160);color:#05376a;border:2px solid #fff3bc;border-radius:20px;margin:20px 0;padding:8px;box-shadow:0 4px #b7762d}
.reef-cancel{display:block;margin:12px auto}
#reefStatus[hidden]{display:none}
@media(max-width:600px){.reef-board{padding-top:8px}.reef-rankings{gap:15px}.reef-board .reef-row{border-width:2px;padding-right:2.5%;grid-template-columns:11% 20% minmax(0,1fr) 27%;height:52px}.reef-board .reef-name{letter-spacing:-.5px;font-size:clamp(16px,4.9vw,28px)}.reef-board .reef-avatar{border-width:2px;width:clamp(50px,14.3vw,75px);height:clamp(50px,14.3vw,75px)}.reef-board .reef-rank{border-width:2px}.reef-board .reef-count{gap:2px;padding:4px 3px;border-width:1px}.reef-count small{padding:2px 3px;font-size:9px}.reef-scene-footer{font-size:13px}}

/* Keep enlarged portraits centered without enlarging the grid track. */
.reef-board .reef-row{grid-template-rows:minmax(0,1fr);isolation:auto}.reef-board .reef-wood-grain{z-index:0}.reef-board .reef-avatar{align-self:center}

.reef-scene-header .reef-scene-back,.reef-scene-header .reef-scene-settings{min-width:44px;min-height:44px}

/* Primary Games landing-page navigation: inside the illustrated menu. */
html body #gameSelector .reef-menu-launch{display:flex;align-items:center;justify-content:center;gap:18px;width:100%;max-width:1100px;min-height:82px;margin:16px auto 24px;padding:13px 24px;border:3px solid #fff1aa;border-radius:26px;background:linear-gradient(115deg,#ffffff9c,transparent 30%,transparent 70%,#fff5c08c),linear-gradient(#ffec91,#ffd14c 52%,#ffb82f);color:#073b70;text-decoration:none;box-shadow:inset 0 3px #fff9df,0 5px #b1761c,0 9px 20px #00437a88;text-shadow:0 1px #fff9dc}
html body #gameSelector .reef-menu-launch strong{display:block;font:900 clamp(20px,2.4vw,30px)/1.2 "Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif}
html body #gameSelector .reef-menu-launch small{display:block;font:700 14px/1.5 system-ui,sans-serif;margin-top:3px}
html body #gameSelector .reef-menu-trophy{font-size:42px;line-height:1;flex-shrink:0}
html body #gameSelector .reef-menu-arrow{font-size:32px;margin-left:auto;color:#005ba0}
html body #gameSelector .reef-menu-launch:focus-visible{outline:4px solid #fff;outline-offset:5px}
html body #gameSelector .reef-menu-launch:hover{filter:brightness(1.08)}
@media(max-width:600px){html body #gameSelector .reef-menu-launch{gap:10px;padding:13px 12px;text-align:left;margin:10px auto 20px}html body #gameSelector .reef-menu-trophy{font-size:34px}html body #gameSelector .reef-menu-launch small{font-size:12px}html body #gameSelector .reef-menu-arrow{font-size:25px}}
/* Keep the Games menu banner legible when global game themes color strong/small text. */
html body #gameSelector a#reefLeaderboardLink :is(strong,small){color:#10375e!important;-webkit-text-fill-color:#10375e!important;text-shadow:none!important;opacity:1!important}
html body #gameSelector a#reefLeaderboardLink:focus-visible{outline-color:#10375e!important}
