/* One single compiled stylesheet for Dev16. Old Dev01-15 stylesheets not loaded. */
/* Consolidated from stable UI features of Dev01 */
/* R64-Development 01: additive accessibility and responsive improvements.
   Does not change navigation, login, data, permissions, or game logic. */
@media (hover: hover) and (pointer: fine) {
  #modules .r64ImageCard:hover { filter: brightness(1.035); }
}
#modules .r64ImageCard:focus-visible,
.v25MenuItem.r64DrawerItem:focus-visible,
.safeR25Bell.r64ImageButton:focus-visible {
  outline: 3px solid #d49b2d !important;
  outline-offset: 3px !important;
}
#modules .r64ImageCard,
.v25MenuItem.r64DrawerItem,
.safeR25Bell.r64ImageButton { -webkit-tap-highlight-color: transparent; }
#modules .r64ImageCard .r64CardTitle {
  overflow-wrap: anywhere !important;
  hyphens: auto;
}
@media (max-width: 360px) {
  #modules.r64HomeGrid { gap: 8px !important; }
  #modules .r64ImageCard .r64CardTitle { font-size: 11px !important; padding-inline: 4px !important; }
  .v25MenuItem.r64DrawerItem { gap: 8px !important; }
}
@media (prefers-reduced-motion: reduce) {
  #modules .r64ImageCard,
  .v25MenuItem.r64DrawerItem,
  .safeR25Bell.r64ImageButton {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Consolidated from stable UI features of Dev02 */
/* R64 Development 02 — targeted login artwork improvements; no JS handlers or business logic changed. */
#loginScreen .accessGrid{align-items:stretch!important}
#loginScreen .accessAction{gap:4px!important;overflow:visible!important}
#loginScreen .accessAction .ico{width:clamp(68px,7.5vw,94px)!important;height:clamp(68px,7.5vw,94px)!important;min-width:68px!important;min-height:68px!important;max-width:none!important;max-height:none!important;display:grid!important;place-items:center!important;flex:0 0 auto!important;line-height:1!important;margin:0 auto 8px!important;border-radius:16px!important;background:transparent!important;box-shadow:none!important}
#loginScreen .accessAction .ico .r64AccessImage{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;border-radius:14px!important}
#loginScreen .accessAction b{line-height:1.4!important;overflow-wrap:normal!important}
@media(max-width:850px){#loginScreen .accessAction .ico{width:82px!important;height:82px!important}#loginScreen .accessAction{min-height:122px!important}}
@media(max-width:440px){#loginScreen .accessAction .ico{width:72px!important;height:72px!important;min-width:72px!important;min-height:72px!important}#loginScreen .accessAction{padding:10px 7px!important}}

/* Consolidated from stable UI features of Dev03 */
/* R64 Development 03 - navigation, content density, accessibility and visual integrity.
   Scoped to display and UI controls. Does not override R64 router or server handlers. */
#home .r64d3Toolbar{margin:16px 0 15px;padding:14px;border-radius:23px;border:1px solid #dbe8dd;background:linear-gradient(135deg,#fffefa,#f1f7f1);box-shadow:0 7px 20px rgba(21,65,49,.055)}
.r64d3Top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px;flex-wrap:wrap}
.r64d3Top h3{margin:0;color:#184d40;font-size:17px;font-weight:950;letter-spacing:-.2px}
.r64d3Count{color:#446c5a;background:#e7f3e9;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}
.r64d3Search{display:flex;align-items:center;gap:9px;background:white;border:1.5px solid #d4e3d8;border-radius:16px;padding:3px 13px;min-height:50px;transition:border-color .15s,box-shadow .15s}
.r64d3Search:focus-within{border-color:#4b9b74;box-shadow:0 0 0 4px #3f977220}
.r64d3Search svg{flex:0 0 20px;color:#4b7662}
.r64d3Search input{flex:1;min-width:0;width:100%;padding:10px 2px;background:transparent;color:#234737;border:0!important;outline:0!important;box-shadow:none!important;font-size:15px;font-family:inherit}
.r64d3Clear{border:0;border-radius:10px;background:#edf3ec;padding:7px 11px;font-weight:800;color:#315a4a;cursor:pointer;min-height:35px}
.r64d3Chips{display:flex;gap:8px;overflow-x:auto;padding:12px 0 3px;scrollbar-width:thin;overscroll-behavior-inline:contain}
.r64d3Chip{flex:0 0 auto;border:1px solid #d9e5dc;border-radius:999px;min-height:40px;padding:8px 14px;background:#fff;font-weight:850;font-size:12px;color:#496559;cursor:pointer;white-space:nowrap}
.r64d3Chip[aria-pressed="true"]{background:#195548;color:#fff;border-color:#195548;box-shadow:0 4px 11px #19554826}
#modules .r64ImageCard[hidden],#modules>.r46GroupTitle[hidden]{display:none!important}
#home .r64d3Empty{border:1px dashed #b8d2be;border-radius:18px;background:#f3f9f4;padding:24px 14px;text-align:center;color:#476857;font-weight:800;margin-top:12px}
#modules.r64HomeGrid{gap:14px!important}
#modules .r64ImageCard{border-radius:22px!important;outline-offset:4px;box-shadow:0 11px 24px #234a3821!important;isolation:isolate}
#modules .r64ImageCard .r64CardImage{padding:0!important;background:#e9f3eb!important}
#modules .r64ImageCard .r64CardImage img{object-fit:cover!important;border-radius:18px 18px 0 0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;display:block!important}
#modules .r64ImageCard .r64CardTitle{min-height:46px!important;padding:11px 8px!important;font-size:13px!important;line-height:1.45!important;background:#fffefa!important;border-top:1px solid #e9eee8;letter-spacing:.05px}
#modules .r64ImageCard:active{transform:scale(.98)}
#modules .r46GroupTitle{padding-inline:7px!important;border-right:4px solid #ce9f51;padding-block:3px;font-size:15px!important;letter-spacing:0}
.r64d3TrainerTabs{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0 15px;align-items:center}
.r64d3TrainerTabs button{min-height:42px;background:#fff;border:1px solid #d4e5d9;border-radius:12px;padding:9px 12px;font-size:12px;font-family:inherit;font-weight:900;color:#315b4a;cursor:pointer}
.r64d3TrainerTabs button[aria-current="page"]{background:#195548;color:#fff;border-color:#195548}
#loginScreen .accessGrid{gap:12px!important}
#loginScreen .accessAction{position:relative;transition:transform .15s,box-shadow .15s!important;border-width:1.5px!important;min-width:0!important}
#loginScreen .accessAction .ico{width:100px!important;height:100px!important;min-width:0!important;min-height:0!important;margin:0 auto 8px!important;border-radius:19px!important}
#loginScreen .accessAction .ico .r64AccessImage{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:18px!important}
#loginScreen .accessAction:focus-visible,.r64d3Chip:focus-visible,.r64d3Clear:focus-visible,.r64d3TrainerTabs button:focus-visible{outline:3px solid #bd913d!important;outline-offset:3px!important}
#loginScreen .idLoginBox{border:1px solid #cddfd1;background:#fbfffc;border-radius:19px;box-shadow:0 8px 18px #264d3a0e}
#loginScreen #identifierInput{min-height:48px;font-size:16px;letter-spacing:.25px}
@media(max-width:850px){#loginScreen .accessGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#loginScreen .accessAction{min-height:152px!important;padding:12px 8px!important}#loginScreen .accessAction:last-child{grid-column:1/-1!important;display:grid!important;grid-template-columns:84px minmax(0,1fr)!important;grid-template-rows:auto auto!important;justify-items:start!important;column-gap:16px!important;text-align:start!important;min-height:96px!important}#loginScreen .accessAction:last-child .ico{grid-row:1/3!important;grid-column:1!important;width:82px!important;height:82px!important;margin:0!important}#loginScreen .accessAction:last-child b{grid-row:1!important;grid-column:2!important;align-self:end!important}#loginScreen .accessAction:last-child small{grid-row:2!important;grid-column:2!important;align-self:start!important}#loginScreen .accessAction .ico{width:84px!important;height:84px!important}#loginScreen .accessAction b{font-size:13px!important}#loginScreen .accessAction small{font-size:10px!important}#modules .r64ImageCard .r64CardTitle{font-size:12px!important}}
@media(max-width:370px){#home .r64d3Toolbar{padding:11px}#modules.r64HomeGrid{gap:9px!important}#modules .r64ImageCard .r64CardTitle{font-size:11.5px!important;padding:9px 5px!important}#loginScreen .accessAction .ico{width:74px!important;height:74px!important}}
@media(prefers-reduced-motion:reduce){#loginScreen .accessAction,#modules .r64ImageCard,.r64d3Chip{animation:none!important;transition:none!important}}

/* Consolidated from stable UI features of Dev05 */
/* Academy-only, no external company mark; isolated dashboard quality improvements. */
#home .r64d5Panel{margin-top:12px;border-top:1px solid #dce9dd;padding-top:12px;display:grid;gap:8px}
#home .r64d5PanelTop{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
#home .r64d5PanelTop strong{font-size:13px;color:#214d3c}
#home .r64d5Last{padding:7px 11px;min-height:36px;max-width:100%;border-radius:12px;border:1px solid #afcfb8;color:#164d3b;background:#f0faef;font-family:inherit;font-size:12px;font-weight:800;cursor:pointer;text-align:right}
#home .r64d5Favorites{display:flex;flex-wrap:wrap;gap:7px}
#home .r64d5FavLink{font-family:inherit;font-size:12px;font-weight:850;border-radius:999px;border:1px solid #d5e4d7;background:#fff;color:#255844;min-height:36px;padding:7px 12px;cursor:pointer}
#home .r64d5Hint{color:#60806c;font-size:12px;line-height:1.55}
#modules .r64ImageCard{position:relative}
#modules .r64d5Star{position:absolute;z-index:4;top:9px;inset-inline-end:9px;display:grid;place-items:center;padding:0!important;width:37px;height:37px;min-width:37px;min-height:37px;line-height:1;background:rgba(255,255,255,.94);color:#846629;border:1px solid rgba(201,164,91,.53);border-radius:13px;font-size:25px;box-shadow:0 2px 9px rgba(29,49,31,.13);cursor:pointer;touch-action:manipulation;backdrop-filter:blur(4px)}
#modules .r64d5Star[aria-pressed="true"]{color:#ad7410;background:#fff7dc;border-color:#e7b750}
#modules .r64d5Star:focus-visible,#home .r64d5FavLink:focus-visible,#home .r64d5Last:focus-visible{outline:3px solid #e9ac36!important;outline-offset:3px}
#modules .r64ImageCard .r64CardImage img{aspect-ratio:1/1;object-fit:cover!important;object-position:center!important}
@media(max-width:390px){#modules .r64d5Star{width:33px;height:33px;min-height:33px;min-width:33px;top:6px;inset-inline-end:6px;font-size:22px}#home .r64d5Last{font-size:11px}}
@media(prefers-reduced-motion:reduce){#modules .r64d5Star,#home .r64d5FavLink{transition:none!important}}

/* Consolidated from stable UI features of Dev06 */
/* أكاديمية السوروبان — trainer-only dashboard polish, no global router change */
#trainer > .subtabs{display:none!important}
#trainer > .head>div{display:none!important}
#trainer > .head{justify-content:flex-end;margin-bottom:4px}
#trainer .r64d3TrainerTabs{display:none!important} /* old additive duplicates; R64 native subtabs remain owned by R64 router */
#trainer .r64t6Dashboard{direction:rtl;margin:12px 0 20px;display:grid;gap:13px;font-family:inherit}
#trainer .r64t6Dashboard[hidden]{display:none!important}
#trainer .r64t6Intro{position:relative;overflow:hidden;background:linear-gradient(119deg,#114b3b 0%,#17705b 60%,#2c8769 100%);color:#fff;border-radius:23px;padding:23px 24px 18px;box-shadow:0 12px 29px #1d5d4d28}
#trainer .r64t6Intro::after{content:"";position:absolute;left:-42px;top:-75px;width:210px;height:210px;border-radius:50%;border:32px solid #ffffff0c;pointer-events:none}
#trainer .r64t6IntroCaption{font-weight:800;font-size:12px;color:#d4f4e3;letter-spacing:.12px}
#trainer .r64t6IntroCaption span{padding-inline:4px;color:#aacbbd}
#trainer .r64t6Intro h2{position:relative;margin:8px 0 7px;color:#fff;font-size:clamp(20px,3vw,26px);font-weight:950;line-height:1.4}
#trainer .r64t6Intro p{margin:0;max-width:560px;color:#e4f5ea;line-height:1.8;font-size:13px}
#trainer .r64t6IntroBottom{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-top:17px;border-top:1px solid #ffffff35;padding-top:12px;font-size:12px;font-weight:800}
#trainer .r64t6Owned{background:#ffffff19;border:1px solid #ffffff40;border-radius:99px;padding:6px 12px}
#trainer .r64t6Launch{background:#fffdf9;border:1px solid #e3e9df;border-radius:20px;padding:16px;box-shadow:0 4px 15px #2439270b}
#trainer .r64t6LaunchHead{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-bottom:13px}
#trainer .r64t6LaunchHead h3{margin:0;font-weight:950;font-size:16px;color:#1e463b}
#trainer .r64t6LaunchHead span{font-size:12px;color:#6a7971}
#trainer .r64t6LaunchActions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
#trainer .r64t6Shortcut{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:64px;padding:11px 7px;background:#f2f8f3;border:1px solid #dbe8de;border-radius:16px;color:#245944;font-family:inherit;font-weight:850;font-size:12px;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
#trainer .r64t6Shortcut>svg:first-child{flex:0 0 21px;color:#317963}
#trainer .r64t6Shortcut>svg:last-child{display:none}
#trainer .r64t6Shortcut:hover{background:#e8f5ec;border-color:#a8d3b8;transform:translateY(-1px)}
#trainer .r64t6Nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
#trainer .r64t6NavButton{min-width:0;min-height:68px;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e0e9df;border-radius:17px;padding:13px;color:#325647;font-family:inherit;font-size:12.5px;font-weight:900;cursor:pointer;box-shadow:0 3px 13px #1533220a;text-align:right;transition:background .15s,border-color .15s}
#trainer .r64t6NavButton[hidden]{display:none!important}
#trainer .r64t6NavIcon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;background:#eaf3eb;color:#32725b}
#trainer .r64t6NavButton[aria-current="page"]{background:#e8f5ed;border-color:#8ac5a3;color:#174d3a;box-shadow:0 0 0 1px #9aceac inset}
#trainer .r64t6NavButton[aria-current="page"] .r64t6NavIcon{background:#226e52;color:white}
#trainer .r64t6Status{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e0e7dd;padding:5px 4px 11px;flex-wrap:wrap}
#trainer .r64t6Status strong{font-size:20px;color:#1c4c38;font-weight:950}
#trainer .r64t6Status p{font-size:12px;line-height:1.6;margin:4px 0 0;color:#6a7c70}
#trainer .r64t6Live{font-size:11px;color:#497562;background:#eff7f0;border:1px solid #dbe7df;border-radius:99px;padding:6px 11px}
#trainer .r64t6TableTools{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;margin:0 0 13px}
#trainer .r64t6Search{min-width:230px;max-width:530px;flex:1;display:flex;align-items:center;gap:7px;border-radius:14px;border:1.5px solid #d7e3d9;background:white;padding:4px 11px;color:#5e816c}
#trainer .r64t6Search:focus-within{border-color:#2d8862;box-shadow:0 0 0 3px #2a91621f}
#trainer .r64t6Search input{width:100%;flex:1;min-width:0;min-height:40px;border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;font-size:13px;font-family:inherit;color:#224e38}
#trainer .r64t6Clear{font-family:inherit;font-size:11px;font-weight:850;background:#e9f3eb;color:#226046;border:0;padding:7px 10px;border-radius:9px;cursor:pointer}
#trainer .r64t6Clear[hidden],#trainer .r64t6NoMatches[hidden]{display:none!important}
#trainer .r64t6Count{font-size:12px;font-weight:800;color:#5a7563}
#trainer .r64t6NoMatches{margin:0 0 12px;background:#f7f9f4;border:1px dashed #bdd2bd;border-radius:13px;padding:13px;text-align:center;color:#55705c;font-size:12px}
#trainer .table tbody tr[hidden]{display:none!important}
#trainer .r64t6ReviewJump{border-radius:10px;font-size:12px;font-family:inherit;font-weight:850;padding:9px 12px;background:#e8f5eb;color:#225b45;border:1px solid #afd3bb;min-height:39px;cursor:pointer}
#trainer .trSection .card.sectionbox{border-radius:19px}
#trainer .trSection .tablewrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:12px}
#trainer .trSection .table{min-width:680px}
#trainer .trSection .table th{white-space:nowrap}
#trainer .trSection .field input,#trainer .trSection .field textarea,#trainer .trSection .field select{max-width:100%}
#trainer .trSection .toolbar{flex-wrap:wrap;gap:8px}
#trainer .r64t6Dashboard button:focus-visible,#trainer .r64t6Clear:focus-visible,#trainer .r64t6ReviewJump:focus-visible{outline:3px solid #bf9140!important;outline-offset:3px!important}
@media(max-width:850px){#trainer .r64t6LaunchActions{grid-template-columns:repeat(3,minmax(0,1fr))}#trainer .r64t6Nav{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:550px){#trainer .r64t6Intro{padding:19px 17px}#trainer .r64t6Launch{padding:12px}#trainer .r64t6LaunchActions{grid-template-columns:repeat(2,minmax(0,1fr))}#trainer .r64t6Shortcut{justify-content:flex-start;min-height:52px;padding:10px}#trainer .r64t6Nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#trainer .r64t6NavButton{min-height:56px;padding:9px;font-size:12px}#trainer .r64t6NavIcon{width:33px;height:33px;flex-basis:33px}#trainer .r64t6Status strong{font-size:18px}#trainer .r64t6Search{max-width:none;min-width:100%}}
@media(prefers-reduced-motion:reduce){#trainer .r64t6Dashboard button{transition:none!important;transform:none!important}}

/* Consolidated from stable UI features of Dev07 */
/* أكاديمية السوروبان R64 Dev07 — Wheel, Challenge Arena and dashboard refinements */
#r36WheelScreen{--d7navy:#153f46;--d7teal:#08776e;background:radial-gradient(ellipse at 15% 5%,#e8f8f2 0,transparent 35%),radial-gradient(ellipse at 87% 26%,#fff0d8 0,transparent 28%),#f5f8f8!important}
#r36WheelScreen .r36WheelHero{background:linear-gradient(115deg,#123e4b,#087c72)!important;border:0!important;color:#fff!important;box-shadow:0 18px 40px #0c61502a!important}
#r36WheelScreen .r36WheelHero small,#r36WheelScreen .r36WheelHero h2{color:#fff!important}
#r36WheelScreen .r36WheelHero p{color:#dcefea!important}
#r36WheelScreen .r36WheelHero .secondary{border:1px solid #ffffff77!important;background:#ffffff1c!important;color:#fff!important;min-height:43px;border-radius:13px;padding:9px 15px;cursor:pointer}
.r64d7WheelHeroBtns{display:flex;gap:8px;flex-wrap:wrap}
#r36WheelScreen .r36WheelControl,#r36WheelScreen .r36WheelSide{border:1px solid #dbe7e3!important;border-radius:25px!important;box-shadow:0 13px 28px #183c3421!important}
#r36WheelScreen .r36WheelFilters{background:#f7faf9;border:1px solid #e5eeeb;border-radius:18px;padding:13px}
#r36WheelScreen .r36WheelFilters select{background:#fff!important;border-radius:12px!important;min-height:47px}
#r36WheelScreen .r36WheelSummary span{padding:10px 14px;border-radius:12px!important;background:#eef8f6!important;font-size:12px!important}
#r36WheelScreen .r36WheelStage{padding:18px 8px!important;min-height:410px;isolation:isolate;overflow:visible}
#r36WheelScreen .r36WheelStage canvas{position:relative;z-index:2;cursor:pointer;filter:drop-shadow(0 20px 21px #29443e35)!important;max-width:min(100%,760px)}
#r36WheelScreen .r64d7WheelGlow{position:absolute;inset:10% 8%;border-radius:50%;background:radial-gradient(circle,#e1f6ee,#edf5f700 68%);filter:blur(18px);z-index:0}
#r36WheelScreen .r36Pointer{z-index:9;top:0;border-left:19px solid transparent;border-right:19px solid transparent;border-bottom:0!important;border-top:42px solid #e1a543!important;filter:drop-shadow(0 5px 2px #163d3255)}
#r36WheelScreen .r36SpinBtn{z-index:7;width:98px;height:98px;background:linear-gradient(145deg,#fff,#e8f5f0)!important;border:6px solid #fff!important;color:#154b49!important;box-shadow:0 5px 0 #d0e0d8,0 12px 25px #142b3433!important;font-size:14px!important;font-weight:950!important}
#r36WheelScreen .r36SpinBtn:hover:not(:disabled){background:#fff3df!important}
#r36WheelScreen .r36Winner{padding:18px 16px;border-radius:18px;background:linear-gradient(120deg,#e9f7f1,#fff0d8)!important;border:1px solid #c9e2d7!important}
#r36WheelScreen .r36Winner b{font-size:clamp(24px,3.4vw,34px)!important;color:#0e4c47!important}
#r36WheelScreen .r64d7WheelHint{font-size:12px;line-height:1.7;text-align:center;color:#607f76;max-width:610px;margin:4px auto 12px}
.r64d7RosterSearch{display:flex;align-items:center;gap:9px;border:1px solid #d7e6e0;background:#f7fbf9;border-radius:13px;padding:5px 12px;margin-bottom:11px;color:#44806e}
.r64d7RosterSearch span{font-size:25px}.r64d7RosterSearch input{border:0!important;outline:0!important;background:transparent!important;flex:1;min-width:0;font:inherit;font-size:13px;padding:8px 3px}
.r36WheelRoster .r36RosterItem[hidden]{display:none!important}
#r36WheelScreen .r36RosterItem{background:#fff!important;border-radius:12px!important}
#r36WheelScreen .r36RosterItem.used{opacity:.65!important;background:#eef3f1!important}
#r36WheelScreen.r64d7Fullscreen{position:fixed!important;inset:0!important;z-index:99999!important;overflow-y:auto!important;max-width:none!important;padding:12px!important;min-height:100vh!important}
#r36WheelScreen.r64d7Fullscreen .r36WheelControl{max-width:calc(100vw - 34px)}
#r36WheelScreen.r64d7Fullscreen .r36WheelLayout{grid-template-columns:minmax(0,1fr) 300px}
#r36WheelScreen.r64d7Fullscreen .r36WheelStage{min-height:0}
/* Existing Challenge Arena: keep the R56 navigation, rules and server calls. */
#r56ArenaPage{max-width:1230px!important;padding:12px!important;background:linear-gradient(180deg,#f5f9f8,#fff)!important;min-height:80vh}
#r56ArenaPage .r56Head{background:linear-gradient(110deg,#143d52,#087e74);padding:19px 21px;border-radius:20px;box-shadow:0 14px 24px #214e4b24;align-items:center}
#r56ArenaPage .r56Head h2{color:#fff!important;font-size:clamp(24px,3.8vw,32px)}
#r56ArenaPage .r56Head small,#r56ArenaPage .r56Head p{color:#d8eceb!important}
#r56ArenaPage .r56Head button{background:#ffffff28!important;color:#fff!important;border:1px solid #ffffff66!important;min-height:44px}
#r56ArenaPage .r56Tabs{margin:16px 0 10px;padding:6px;gap:7px;border-radius:16px;background:#ecf4f2;scrollbar-width:thin}
#r56ArenaPage .r56Tabs button{background:#fff;color:#2c635c;border-radius:12px;font-size:13px;min-height:43px;border:1px solid #d9e8e3;transition:box-shadow .2s}
#r56ArenaPage .r56Tabs button.on{background:#12675e!important;color:white!important;box-shadow:0 5px 15px #0f5f4e22}
#r56ArenaPage .r56Panel,#r56ArenaPage .r56RoomLobby,#r56ArenaPage .r56PlayerHero{border-radius:20px!important;box-shadow:0 10px 24px #1f514216!important;padding:clamp(14px,2.2vw,23px)!important}
#r56ArenaPage .r56Panel h3,#r56ArenaPage .r56RoomLobby h3{color:#174b45!important}
#r56ArenaPage button:focus-visible,#r36WheelScreen button:focus-visible,.r64d7CandidateSearch input:focus-visible{outline:3px solid #eca83c!important;outline-offset:3px!important}
#r56ArenaPage .r56Form select,#r56ArenaPage .r56Form input{min-height:46px!important;border-radius:12px!important}
#r56ArenaPage button:disabled{cursor:not-allowed;opacity:.58}
.r64d7Message{background:#fff7ea;border:1px solid #eadbb8;color:#745c31;padding:12px;border-radius:12px;font-size:12px;line-height:1.75;margin:12px 0}
.r64d7Message.good{background:#edf8f2;border-color:#c9e6d6;color:#27634f}
.r64d7ScopeField{grid-column:1/-1}
.r64d7Inbox{background:white;border:1px solid #dcebe5;border-radius:18px;padding:15px;margin-bottom:15px;box-shadow:0 8px 22px #183e3512}
.r64d7Inbox h3{margin:0 0 10px;font-size:18px;color:#0b5149;display:flex;gap:8px;align-items:center}
.r64d7Inbox h3 span{background:#f7dca1;border-radius:99px;min-width:27px;padding:3px 8px;font-size:12px;text-align:center;color:#563b10}
.r64d7Invitation{display:flex;align-items:center;gap:7px;border-top:1px solid #edf2ef;padding:10px 3px;flex-wrap:wrap}
.r64d7Invitation>div{flex:1;min-width:130px}.r64d7Invitation small{display:block;color:#71817b;font-size:11px;margin-top:4px}
.r64d7Invitation button{min-height:38px;border-radius:11px}
.r64d7Copy{margin:12px auto 0!important;display:block!important;min-height:39px;border-radius:11px!important}
.r64d7HostInvites{background:#f8fcfa;border:1px solid #dbeae5;border-radius:19px;padding:15px;margin:15px 0}
.r64d7InviteHead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.r64d7InviteHead h3{margin:3px 0 4px!important}.r64d7InviteHead small{font-weight:800;color:#668a7e}
.r64d7InviteHead button{min-height:39px}
.r64d7CandidatesTools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;flex-wrap:wrap}
.r64d7Pills{display:flex;gap:7px}.r64d7Pills button{min-height:39px;background:#fff;border:1px solid #d2e3db;border-radius:12px;padding:7px 13px;color:#356a58;font-size:12px;font-weight:900}.r64d7Pills button.active{background:#116d62;color:white;border-color:#116d62}
.r64d7OnlineCount{background:#e3f5eb;color:#21744d;font-size:12px;padding:7px 11px;border-radius:99px;font-weight:900}
.r64d7CandidateSearch{display:block;margin:12px 0}.r64d7CandidateSearch input{width:100%;min-height:44px;padding:10px 13px;border:1px solid #d8e5df;border-radius:11px;box-sizing:border-box;background:white}
.r64d7CandidateList{display:grid;gap:7px;max-height:330px;overflow:auto}
.r64d7Candidate{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e5eeea;border-radius:12px;padding:9px 11px;min-height:57px}
.r64d7Candidate[hidden]{display:none}.r64d7Candidate>div{flex:1;text-align:right;min-width:0}.r64d7Candidate b,.r64d7Candidate small{display:block}.r64d7Candidate small{font-size:10px;color:#81958e}
.r64d7Candidate button{padding:8px 14px;min-height:37px;border-radius:10px}
.r64d7OnlineDot{font-size:10px;color:#218753;background:#e5f7ed;padding:5px 9px;border-radius:99px;white-space:nowrap}
.r64d7OnlineDot:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#2ec06b;margin-left:5px}
.r64d7SentInvites{margin-top:17px;padding-top:11px;border-top:1px solid #dce8e2;text-align:right}
.r64d7SentInvites h4{margin:0 0 9px;color:#31584e}.r64d7SentInvites>div{display:flex;justify-content:space-between;gap:8px;padding:9px 4px;border-bottom:1px solid #ecf1ed;font-size:12px}
.r64d7SentInvites b{color:#27745e}.r64d7SentInvites p{font-size:12px;color:#7d9186}
/* Distinguish Challenge Arena from offline dinosaur in real student dashboard. */
#modules .r64ImageCard[data-r64-action="challengeArena"]{border:2px solid #55b4a3!important;box-shadow:0 10px 20px #177a6932!important}
#modules .r64ImageCard[data-r64-action="dinoGame"]{border:1.5px solid #d9e7da!important}
#modules .r64d7TileTag{display:block;background:#edf7f3;color:#316c5e;font-size:10px;font-weight:850;padding:5px 7px;margin:0;line-height:1.35;text-align:center}
#modules .r64ImageCard[data-r64-action="challengeArena"] .r64d7TileTag{background:#167165;color:white}
.r64d7TrainerWheelQuick .r64d7QuickWheel{font-size:20px;color:#1e7168}
@media(max-width:860px){#r36WheelScreen.r64d7Fullscreen .r36WheelLayout{grid-template-columns:1fr}}
@media(max-width:620px){.r64d7WheelHeroBtns{flex-direction:column}.r64d7WheelHeroBtns button{min-height:36px!important;font-size:11px}#r36WheelScreen .r36WheelStage{min-height:0!important;padding:18px 0!important}#r36WheelScreen .r36SpinBtn{width:76px!important;height:76px!important;font-size:11px!important}#r36WheelScreen .r36Pointer{border-left-width:14px;border-right-width:14px;border-top-width:30px}#r56ArenaPage .r56Head{padding:14px!important}#r56ArenaPage .r56Head p{font-size:11px}#r56ArenaPage .r56Tabs{gap:5px}#r56ArenaPage .r56Tabs button{font-size:11px;min-height:40px;padding:7px 10px}.r64d7InviteHead{align-items:stretch;flex-wrap:wrap}.r64d7InviteHead button{width:100%}.r64d7Candidate{flex-wrap:wrap}.r64d7OnlineDot{font-size:9px}}
@media(prefers-reduced-motion:reduce){#r56ArenaPage .r56Tabs button{transition:none!important}}
@media(max-width:620px){#r36WheelScreen .r36WheelStage canvas{width:calc(100% - 20px)!important;height:auto!important}}

/* Consolidated from stable UI features of Dev11 */
/* Soroban Academy — Development 11: REAL in-app visual redesign.
 * This is a CSS-only presentation layer on top of R64-Dev10.
 * Existing actions, identifiers, router, games, Supabase calls and licences remain unchanged.
 * Brand: أكاديمية السوروبان only.
 */
:root{--sa11-blue:#176fef;--sa11-blue2:#45acff;--sa11-ink:#163356;--sa11-paper:#f5f9ff;--sa11-border:#d5e7fa}
html,body{background:#e7f1ff!important}
body.safeR25HomeActive #home.wrap{
 background:linear-gradient(180deg,#e6f4ff 0%,#f7fbff 38%,#fff 100%)!important;
 padding:12px 14px max(105px,env(safe-area-inset-bottom) + 91px)!important;
 box-shadow:0 0 32px #24599116!important;
}
/* The greeting is an illustrated BLUE app header, not the old beige block. */
#home .hero{margin-bottom:12px!important}
#home .hero>.card:first-child{
 background:linear-gradient(120deg,#0871e5 0%,#25a6f2 57%,#86e1ff 100%)!important;
 border:1px solid #8accff!important;
 box-shadow:0 12px 28px #116dcf34!important;
 min-height:134px!important;
 padding:22px 108px 19px 16px!important;
 border-radius:26px!important;
 color:white!important;
}
#home .hero>.card:first-child #hello{color:#fff!important;font-size:clamp(18px,4.8vw,22px)!important;line-height:1.45!important;text-shadow:0 1px 2px #0d4e9245}
#home .safeR25Eyebrow{color:#dbf5ff!important;font-size:12px!important;letter-spacing:.1px!important}
#home .safeR25Sub{color:#f2fbff!important;font-size:12px!important;line-height:1.55!important;max-width:205px!important}
#home .safeR25Avatar{right:13px!important;top:22px!important;width:87px!important;height:87px!important;border-radius:25px!important;border:3px solid #ffffffbd!important;background:linear-gradient(130deg,#fff,#d7eaff)!important;box-shadow:0 7px 16px #0755b042!important}
#home .safeR25Avatar img{object-fit:contain!important}
#home .safeR25Bell.r64ImageButton{background:#ffffffea!important;box-shadow:0 5px 15px #0d5d9130!important;border:1px solid #ffffffb3!important}
body[data-safe-r10-role="trainer"] #home .hero>.card:first-child{background:linear-gradient(120deg,#1259b9,#1681df 58%,#4ac2f4)!important;border-color:#9fdcff!important}
body[data-safe-r10-role="trainer"] .safeR25Eyebrow{color:#ecf8ff!important}
/* Toolbar is part of the app style system: white search field, blue filter pills. */
#home .r64d3Toolbar{margin:10px 0 20px!important;padding:13px!important;background:#fff!important;border:1px solid #d4e7fb!important;border-radius:22px!important;box-shadow:0 8px 23px #1d73b013!important}
#home .r64d3Top h3{color:var(--sa11-ink)!important}
#home .r64d3Count{background:#e6f2ff!important;color:#1666bd!important}
#home .r64d3Search{background:#f4f9ff!important;border-color:#c8def6!important;min-height:54px!important;border-radius:16px!important}
#home .r64d3Search:focus-within{border-color:#2289ed!important;box-shadow:0 0 0 3px #339bff26!important}
#home .r64d3Chip{min-height:39px!important;border-radius:14px!important;border-color:#c9e1fa!important;color:#2664a0!important;background:#f5faff!important}
#home .r64d3Chip[aria-pressed="true"]{background:linear-gradient(135deg,#1370e9,#3198f0)!important;color:#fff!important;border-color:#2b8ded!important;box-shadow:0 5px 12px #2472ce31!important}
#home .r64d5Panel{border-color:#dfebf9!important}
#home .r64d5Last,#home .r64d5FavLink{background:#eaf5ff!important;color:#20619f!important;border-color:#d1e7fc!important}
#modules.r64HomeGrid{gap:11px!important}
#modules.r64HomeGrid>.r46GroupTitle{padding:12px 7px 4px!important;margin:10px 0 0!important;border:0!important;color:#173d71!important;font-weight:950!important;font-size:16px!important;line-height:1.4!important}
/* Colored child-friendly tiles using the REAL existing art, not mockup pictures. */
#modules .r64ImageCard{
 --sa11-from:#bce8ff;--sa11-to:#dff6ff;--sa11-title:#06477c;
 aspect-ratio:auto!important;min-height:182px!important;height:auto!important;max-height:none!important;
 display:flex!important;flex-direction:column!important;overflow:hidden!important;
 padding:0!important;border:1px solid #a9d8f8!important;border-radius:22px!important;
 background:linear-gradient(148deg,var(--sa11-from),var(--sa11-to))!important;
 box-shadow:0 8px 19px #16588f19,0 2px 0 #ffffff8c inset!important;
 transition:transform .16s ease,box-shadow .16s ease!important;
}
#modules .r64ImageCard .r64CardImage{
 position:relative!important;flex:1 1 auto!important;min-height:120px!important;height:135px!important;max-height:none!important;
 padding:13px 9px 2px!important;overflow:hidden!important;background:transparent!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
}
#modules .r64ImageCard .r64CardImage img{
 display:block!important;object-fit:contain!important;object-position:center center!important;
 width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
 border-radius:0!important;filter:drop-shadow(0 8px 9px #184c6628)!important;
}
#modules .r64ImageCard .r64CardTitle{
 flex:0 0 auto!important;height:auto!important;min-height:49px!important;
 padding:8px 7px 12px!important;line-height:1.4!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;
 font-size:clamp(13px,3.8vw,15px)!important;font-weight:950!important;
 color:var(--sa11-title)!important;background:transparent!important;border:0!important;
}
#modules .r64ImageCard:is(:hover,:focus-visible){box-shadow:0 14px 28px #165cac2d!important}
#modules .r64ImageCard:active{transform:scale(.98)!important}
#modules .r64ImageCard[data-r64-action="challengeArena"]{--sa11-from:#ffcd61;--sa11-to:#fff1b9;--sa11-title:#7e3f05;border-color:#eabc64!important}
#modules .r64ImageCard[data-r64-action="page:myTrainings"],#modules .r64ImageCard[data-r64-action="page:abacus"],#modules .r64ImageCard[data-r64-action="trainer:assignments"]{--sa11-from:#a4f2c3;--sa11-to:#ddffe6;--sa11-title:#145a3b;border-color:#a6dfba!important}
#modules .r64ImageCard[data-r64-action="page:myReports"],#modules .r64ImageCard[data-r64-action="trainer:reports"],#modules .r64ImageCard[data-r64-action="page:performance"]{--sa11-from:#ffd289;--sa11-to:#ffefca;--sa11-title:#704509;border-color:#f2cf9d!important}
#modules .r64ImageCard[data-r64-action="dinoGame"],#modules .r64ImageCard[data-r64-action="ballGame"],#modules .r64ImageCard[data-r64-action="numberMaze"],#modules .r64ImageCard[data-r64-action="page:fun"],#modules .r64ImageCard[data-r64-action="trainer:activities"],#modules .r64ImageCard[data-r64-action="picturePuzzle"]{--sa11-from:#b5e5ff;--sa11-to:#e0f5ff;--sa11-title:#0b497b;border-color:#b4daf0!important}
#modules .r64ImageCard[data-r64-action="duelGame"],#modules .r64ImageCard[data-r64-action="trainerWheel"],#modules .r64ImageCard[data-r64-action="competitions"],#modules .r64ImageCard[data-r64-action="trainerCompetitions"]{--sa11-from:#e2c7ff;--sa11-to:#f5e9ff;--sa11-title:#5c337b;border-color:#dec3f4!important}
#modules .r64ImageCard[data-r64-action="trainer:students"],#modules .r64ImageCard[data-r64-action="trainer:licenses"],#modules .r64ImageCard[data-r64-action="trainer:session"]{--sa11-from:#9ddcf8;--sa11-to:#ddf3ff;--sa11-title:#154778}
#modules .r64d7TileTag{font-size:10px!important;background:#ffffff75!important;color:inherit!important;border:0!important}
#modules .r64ImageCard[data-r64-action="challengeArena"] .r64d7TileTag{background:#ffe7a9!important;color:#7c4b0d!important}
#modules .r64d5Star{top:8px!important;left:8px!important;right:auto!important;inset-inline-end:8px!important;background:#fffffff0!important;border-radius:13px!important;color:#b67717!important;box-shadow:0 2px 9px #27446222!important}
/* Actual login, not a screenshot: use the same family of blue and colorful cards. */
#loginScreen.login{background:#e7f3ff!important}
#loginScreen .loginbox.safeR25LoginShell{background:linear-gradient(180deg,#eaf7ff,#f9fcff 45%,#fff)!important}
#loginScreen .safeR25LoginHead{background:linear-gradient(110deg,#1284e8,#6cccf8)!important;border:1px solid #85d6fa!important;box-shadow:0 9px 22px #1e72bb25!important}
#loginScreen .safeR25LoginHead h1,#loginScreen .safeR25LoginHead p{color:#fff!important}
#loginScreen .safeR25LoginTitle{color:#174575!important}
#loginScreen .safeR25LoginCard{border:1px solid #bbd9f7!important;box-shadow:0 9px 20px #175ca61c!important}
#loginScreen .safeR25LoginCard:nth-child(1){--r25-login-bg:linear-gradient(140deg,#93e6b9,#dcffeb)!important;--r25-login-title:#0f6744}
#loginScreen .safeR25LoginCard:nth-child(2){--r25-login-bg:linear-gradient(140deg,#a9dcff,#e4f4ff)!important;--r25-login-title:#1a548b}
#loginScreen .safeR25LoginCard:nth-child(3){--r25-login-bg:linear-gradient(140deg,#ffdb8b,#fff0c5)!important;--r25-login-title:#8b4f15}
#loginScreen .safeR25IdPanel{background:#fff!important;border-color:#c9e2f7!important}
/* Arena menu: the two BIG choices are visually as strong as the promised art. */
#r56ArenaPage{background:linear-gradient(180deg,#e8f5ff,#fbfdff)!important}
#r56ArenaPage .r56Head{background:linear-gradient(120deg,#0d67d6,#289ce8)!important;border-radius:24px!important}
#r56ArenaPage .r56Tabs{background:#e8f3fe!important}
#r56ArenaPage .r56Tabs button.on{background:#167dec!important}
#r56ArenaPage .r64d9RoomsIntro>span{background:#d9f0ff!important;border:1px solid #b8e1ff!important}
#r56ArenaPage .r64d9RoomsIntro h3{color:#144b83!important}
#r56ArenaPage button.r64d9RoomOption{border-color:#9cddba!important;background:linear-gradient(148deg,#9ef0bc,#e3ffeb)!important;color:#135e3d!important;box-shadow:0 10px 24px #1a865f24!important}
#r56ArenaPage button.r64d9RoomOption:nth-child(2){border-color:#a5d5ff!important;background:linear-gradient(148deg,#8fceff,#e6f5ff)!important;color:#155596!important;box-shadow:0 10px 24px #1d74c82b!important}
#r56ArenaPage .r64d9OptionArt{display:block;width:104px;height:104px;max-width:100%;font-size:0!important;background:url('./ui194/r64p12_rooms_ready.webp') center/contain no-repeat;filter:drop-shadow(0 8px 12px #16588f32)}
#r56ArenaPage button.r64d9RoomOption:nth-child(2) .r64d9OptionArt{background-image:url('./ui194/r64p12_room_create.webp')}
#r56ArenaPage .r64d9RoomOption strong{font-size:19px!important}
#r56ArenaPage .r64d9CodeEntry{background:#fff!important;border:1px solid #c5dff5!important;box-shadow:0 4px 15px #2672b015!important}
#r56ArenaPage .r64d9PageTitle>span{background:#d8edff!important}
#r56ArenaPage .r64d9CreatePage .r56Panel{background:#fff!important;border-color:#d9e9fb!important}
/* Trainer operations stay intact; only styling becomes blue, readable and tactile. */
#trainer.r64-active-page{background:linear-gradient(180deg,#eaf4ff,#fff 420px)!important}
#trainer .r64t6Intro{background:linear-gradient(115deg,#0f66d6,#258ee8)!important;border-radius:24px!important;box-shadow:0 13px 30px #1e6ab52b!important}
#trainer .r64t6Intro h2,#trainer .r64t6Intro p,#trainer .r64t6IntroCaption{color:#fff!important}
#trainer .r64t6Launch{background:#fff!important;border-color:#d3e5f9!important;border-radius:22px!important}
#trainer .r64t6Shortcut{background:#eaf5ff!important;border-color:#c7e2fb!important;color:#1a5b9b!important;border-radius:16px!important}
#trainer .r64t6NavButton{background:#fff!important;border-color:#d0e5f8!important;color:#1b5a90!important;box-shadow:0 5px 14px #14629b15!important}
#trainer .r64t6NavIcon{background:#e2f1ff!important;color:#176cd1!important}
#trainer .r64t6NavButton[aria-current="page"]{background:#d8eeff!important;border-color:#61adf2!important;color:#0e55a0!important}
#trainer .r64t6NavButton[aria-current="page"] .r64t6NavIcon{background:#1778df!important;color:#fff!important}
#trainer .r64t6Status strong{color:#135596!important}
#trainer .trSection .card.sectionbox{background:#fff!important;border:1px solid #dae9f8!important;box-shadow:0 5px 17px #1b68a013!important}
/* Consistent native/mobile ergonomics. */
#home :is(button,[role="button"]),#trainer :is(button,[role="button"]),#r56ArenaPage button{touch-action:manipulation}
#home :is(button,[role="button"]):focus-visible,#trainer button:focus-visible,#r56ArenaPage button:focus-visible{outline:3px solid #096ee4!important;outline-offset:3px!important}
@media(max-width:380px){
 #home .hero>.card:first-child{padding:18px 102px 16px 12px!important;min-height:130px!important}
 #home .safeR25Avatar{width:76px!important;height:76px!important}
 #modules .r64ImageCard{min-height:158px!important}
 #modules .r64ImageCard .r64CardImage{height:113px!important;min-height:107px!important;padding:10px 7px 1px!important}
 #modules .r64ImageCard .r64CardTitle{font-size:12px!important;min-height:45px!important}
 #r56ArenaPage .r64d9OptionArt{width:78px;height:78px}
}
@media(prefers-reduced-motion:reduce){#modules .r64ImageCard{transition:none!important}}
/* Final fit: cards use the entire image region, no postage-stamp artwork. */
#modules .r64ImageCard{justify-content:flex-start!important}
#modules .r64ImageCard .r64CardImage{
 flex:0 0 auto!important;
 width:100%!important;
 height:auto!important;
 min-height:0!important;
 max-height:none!important;
 aspect-ratio:1/1!important;
 padding:0!important;
 background:transparent!important;
 border-radius:20px 20px 0 0!important;
}
#modules .r64ImageCard .r64CardImage img{
 width:100%!important;height:100%!important;object-fit:contain!important;
 border-radius:19px 19px 0 0!important;filter:none!important;
}
#modules .r64ImageCard .r64CardTitle{min-height:50px!important;padding:8px 6px 10px!important}
@media(max-width:380px){#modules .r64ImageCard .r64CardImage{height:auto!important;min-height:0!important;aspect-ratio:1/1!important}}

/* Consolidated from stable UI features of Dev12 */
/* Akademiyat Al-Soroban R64 Dev12: semantic icon & premium mobile accessibility pass.
   Presentation only; no route, account, game-state or network behavior is overridden. */
:root{--sa12-ink:#123657;--sa12-blue:#177de2;--sa12-outline:#d4e4f4;--sa12-soft:#f2f8ff;--sa12-shadow:0 10px 24px rgba(20,79,139,.10)}
body{font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif!important}
#home .r46GroupTitle{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
#home .r46GroupTitle:before{content:"";display:block;width:5px;height:21px;background:linear-gradient(180deg,#3a9af9,#70d9c7);border-radius:9px;flex:none}
#home .r64ImageCard{position:relative!important;isolation:isolate!important;box-shadow:0 9px 23px #1a5c9b22!important;border-width:1.5px!important;min-width:0!important}
#home .r64ImageCard .r64CardImage{background:transparent!important;overflow:hidden!important;}
#home .r64ImageCard .r64CardImage img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:18px 18px 4px 4px!important}
#home .r64ImageCard .r64CardTitle{font-size:clamp(13px,3.6vw,15px)!important;padding:8px 8px 4px!important;line-height:1.45!important;min-height:42px!important}
#home .r64ImageCard .sa12-help{display:block;text-align:center;font-weight:750;font-size:11px;line-height:1.4;min-height:30px;padding:2px 9px 10px;color:#3c627e;letter-spacing:0;pointer-events:none;overflow-wrap:anywhere}
#home .r64ImageCard[data-r64-action="page:todaySession"],#home .r64ImageCard[data-r64-action="trainer:session"]{--sa11-from:#cbf3e7;--sa11-to:#eefff9;--sa11-title:#125b4a;border-color:#a9dcc9!important}
#home .r64ImageCard[data-r64-action="flashCards"]{--sa11-from:#f4d6ff;--sa11-to:#fff2ff;--sa11-title:#623d7b;border-color:#e6c4f2!important}
#home .r64ImageCard[data-r64-action="page:curriculum"]{--sa11-from:#e4ddff;--sa11-to:#f5f2ff;--sa11-title:#4d4691;border-color:#d6cdf8!important}
#home .r64ImageCard[data-r64-action="trainer:reports"]{--sa11-from:#c9edff;--sa11-to:#edfaff;--sa11-title:#155681;border-color:#afe1f4!important}
#home .r64ImageCard[data-r64-action="page:fun"]{--sa11-from:#cfe5ff;--sa11-to:#f3ebff;--sa11-title:#264fa0;border-color:#cadcf3!important}
#home .r64ImageCard[data-r64-action="page:performance"]{--sa11-from:#ffe6aa;--sa11-to:#fff5d7;--sa11-title:#795613;border-color:#f2d693!important}
#home .r64ImageCard:is(:focus-visible,:hover){box-shadow:0 12px 29px #1a5c9b33!important}
#home .r64d3Toolbar{margin-bottom:16px!important}
#home .r64d3Chips{scrollbar-width:none;overscroll-behavior-x:contain}
#home .r64d3Chips::-webkit-scrollbar{display:none}
/* Learning, games and student sections: coherent headings without replacing markup. */
#fun,#myTrainings,#abacus,#curriculum,#todaySession,#performance,#myReports{background:linear-gradient(180deg,#ebf6ff 0,#f9fcff 260px,#fff 580px)!important;max-width:740px!important;min-width:0!important;padding-bottom:108px!important}
#fun>.head,#myTrainings>.head,#curriculum>.head,#todaySession>.head,#performance>.head,#myReports>.head,#abacus>.head{
 background:linear-gradient(120deg,#166ed1,#4daefa)!important;border-radius:22px!important;box-shadow:var(--sa12-shadow)!important;padding:16px!important;margin-bottom:15px!important;min-height:96px!important;color:#fff!important;gap:10px!important}
:is(#fun,#myTrainings,#curriculum,#todaySession,#performance,#myReports,#abacus)>.head :is(h2,small){color:#fff!important}
:is(#fun,#myTrainings,#curriculum,#todaySession,#performance,#myReports,#abacus)>.head .primary{background:#fff!important;color:#1263bb!important;border:1px solid #b6e0ff!important}
#funGrid.activitygrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
#funGrid .activity{--actA:#c7ebff;--actB:#f0faff;background:linear-gradient(155deg,var(--actA),var(--actB))!important;min-width:0!important;min-height:247px!important;border:1.5px solid #b4d7ed!important;border-radius:22px!important;padding:14px 10px!important;box-shadow:0 8px 19px #19588916!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:8px!important}
#funGrid .activity:before{display:none!important}
#funGrid .activity:nth-child(5n+2){--actA:#d4f8df;--actB:#f3fff8;border-color:#b9e7c9!important}
#funGrid .activity:nth-child(5n+3){--actA:#ffe2ad;--actB:#fff5e4;border-color:#f0d4aa!important}
#funGrid .activity:nth-child(5n+4){--actA:#e6d5ff;--actB:#fbf4ff;border-color:#dbcbfa!important}
#funGrid .activity:nth-child(5n+5){--actA:#ffd9dc;--actB:#fff3f3;border-color:#f2c7cd!important}
#funGrid .activity .ico{width:76px!important;height:76px!important;font-size:40px!important;display:grid!important;place-items:center!important;margin:0 auto 6px!important;border:1px solid #ffffffb9!important;border-radius:21px!important;background:linear-gradient(150deg,#fff,#ffffff82)!important;box-shadow:0 8px 18px #2054881c!important;filter:none!important}
#funGrid .activity h3{font-size:clamp(15px,3.9vw,18px)!important;line-height:1.4!important;text-align:center!important;min-height:41px!important;color:#193c5b!important;margin:9px 0 4px!important}
#funGrid .activity p{font-size:12px!important;line-height:1.55!important;color:#506d83!important;text-align:center!important;margin:4px 0!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important}
#funGrid .activity .status{font-size:10px!important;margin:3px 0!important;padding:5px 7px!important;white-space:normal!important}
#funGrid .activity .activity-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-top:9px!important}
#funGrid .activity .activity-actions button{min-width:0!important;min-height:46px!important;font-size:13px!important;line-height:1.3!important;border-radius:13px!important;margin:0!important;padding:8px!important}
#funGrid .activity .activity-actions .primary{background:linear-gradient(140deg,#0875e2,#248eef)!important;color:#fff!important;box-shadow:0 5px 12px #0875e228!important}
#funGrid .activity .activity-actions .ghost{background:#ffffffb8!important;color:#225c8a!important;border:1px solid #bad5e7!important}
#funGrid .activity:focus-within{outline:2px solid #399be7;outline-offset:2px}
#activityArea .activitypanel{background:#fff!important;border:1px solid var(--sa12-outline)!important;border-radius:24px!important;box-shadow:var(--sa12-shadow)!important;max-width:100%!important;min-width:0!important;overflow-wrap:anywhere!important}
#activityArea .kidActivityTop{border-radius:18px!important;background:linear-gradient(120deg,#dcf2ff,#effeff)!important}
#activityArea :is(input,select,button){max-width:100%;box-sizing:border-box}
#activityArea :is(.choices,.palette,.touch,.gameLegend){max-width:100%;min-width:0}
#activityArea canvas{max-width:100%!important;height:auto!important}
/* Trainer forms, class assignments, student lists and results on real phones. */
#trainer{max-width:850px!important;min-width:0!important;padding-bottom:112px!important}
#trainer .r64t6Intro{padding:17px!important}
#trainer .r64t6NavButton{border-radius:18px!important;min-height:56px!important}
#trainer .trSection{max-width:100%!important;min-width:0!important}
#trainer .trSection .card.sectionbox{border-radius:20px!important;padding:16px!important}
#trainer .trSection h3{font-size:18px!important;line-height:1.45!important;color:var(--sa12-ink)!important}
#trainer :is(.trainerFormGrid,.trainergrid){min-width:0!important}
#trainer :is(input,select,textarea,button){box-sizing:border-box;max-width:100%;min-width:0}
#trainer :is(input,select,textarea){font-size:16px!important;border-radius:13px!important}
#trainer .trSection .toolbar{gap:8px!important;flex-wrap:wrap!important}
#trainer .trSection .toolbar button{min-height:47px!important;border-radius:13px!important}
#trainer .tablewrap{overflow-x:auto!important;max-width:100%!important;-webkit-overflow-scrolling:touch}
#trainer .table th{font-size:13px!important;white-space:nowrap!important}
/* Professional controls also apply to independent games while preserving touch/canvas mechanics. */
:is(#r36WheelScreen,#r46DinoPage,#r46DuelPage,#r55NumberPage,#r55FlashPage,#r55PuzzlePage,#r56MazePage,#r58BallPage,#r56ArenaPage) :is(button,select,input){touch-action:manipulation;min-height:44px}
:is(#r36WheelScreen,#r46DinoPage,#r46DuelPage,#r55NumberPage,#r55FlashPage,#r55PuzzlePage,#r56MazePage,#r58BallPage,#r56ArenaPage) :is(button,select,input):focus-visible{outline:3px solid #1684e8!important;outline-offset:2px!important}
#r56ArenaPage .r64d9RoomOption{min-height:182px!important;gap:7px!important}
#r56ArenaPage .r64d9OptionArt{width:118px!important;height:118px!important}
#r56ArenaPage .r64d9RoomOption strong{font-size:18px!important}
#r56ArenaPage .r64d9RoomsIntro h3{font-size:24px!important}
#r56ArenaPage .r64d9RoomOption small{font-size:12px!important;line-height:1.55!important}
#r56ArenaPage .r64d9RoomOptions{gap:10px!important}
@media(max-width:390px){
 #home .r64ImageCard .sa12-help{font-size:10px!important;min-height:27px;padding:2px 6px 9px}
 #home .r64ImageCard .r64CardTitle{font-size:12.5px!important;min-height:38px!important}
 #funGrid.activitygrid{gap:9px!important}
 #funGrid .activity{padding:11px 8px!important;min-height:234px!important}
 #funGrid .activity .ico{width:63px!important;height:63px!important;font-size:34px!important}
 #funGrid .activity h3{font-size:14px!important}
 #r56ArenaPage .r64d9OptionArt{width:94px!important;height:94px!important}
 #trainer .trainerFormGrid{grid-template-columns:1fr!important}
}
@media(max-width:340px){
 #funGrid.activitygrid{grid-template-columns:1fr!important}
 #funGrid .activity{min-height:0!important}
 #trainer .r64t6Launch{padding:11px!important}
}
@media(prefers-reduced-motion:reduce){#funGrid .activity,#home .r64ImageCard{transition:none!important;animation:none!important}}
/* Consistent illustrated activity art instead of OS-dependent emoji glyphs. */
#funGrid .activity .ico:has(img.sa12-activity-art){width:100px!important;height:100px!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:20px!important;padding:0!important;overflow:hidden!important}
#funGrid .activity .ico img.sa12-activity-art{width:100%!important;height:100%!important;display:block!important;object-fit:contain!important;border-radius:20px!important;box-shadow:0 7px 17px #194d7522!important}
@media(max-width:390px){#funGrid .activity .ico:has(img.sa12-activity-art){width:91px!important;height:91px!important}}

/* Consolidated from stable UI features of Dev13 */
/* R64 Development 13 — Card-title safety fix for Android WebView.
   This layer does not modify any button action, game logic, authentication or server API. */
:root{--sa13-label-ink:#153550;--sa13-label-paper:#fff}
#modules.r64HomeGrid{align-items:stretch!important;grid-auto-rows:auto!important}
#modules .r64ImageCard{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;max-height:none!important;height:auto!important;min-height:222px!important;overflow:hidden!important;visibility:visible!important}
#modules .r64ImageCard .r64CardImage{display:flex!important;flex:0 0 132px!important;height:132px!important;min-height:132px!important;max-height:132px!important;width:100%!important;overflow:hidden!important;align-items:center!important;justify-content:center!important}
#modules .r64ImageCard .r64CardImage img{display:block!important;max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;object-fit:contain!important}
/* The legacy title is the fallback if JS cannot run. */
#modules .r64ImageCard:not(.sa13-caption-ready) .r64CardTitle{
 display:block!important;position:relative!important;visibility:visible!important;opacity:1!important;
 max-height:none!important;height:auto!important;min-height:52px!important;z-index:2!important;
 width:100%!important;overflow:visible!important;white-space:normal!important;
 padding:11px 7px!important;background:#fff!important;color:#173b59!important;
 font-family:inherit!important;font-size:15px!important;font-weight:900!important;line-height:1.55!important;
 text-align:center!important;word-break:normal!important;overflow-wrap:anywhere!important;
}
#modules .r64ImageCard.sa13-caption-ready>.r64CardTitle,#modules .r64ImageCard.sa13-caption-ready>.sa12-help{display:none!important}
/* Independent caption ensures names survive older CSS rules and font scaling. */
#modules .r64ImageCard .sa13-card-caption{
 box-sizing:border-box!important;position:relative!important;display:flex!important;flex-direction:column!important;
 align-items:center!important;justify-content:center!important;flex:1 0 auto!important;
 z-index:3!important;align-self:stretch!important;width:100%!important;min-width:0!important;
 min-height:68px!important;height:auto!important;max-height:none!important;overflow:visible!important;
 padding:9px 6px 10px!important;margin:0!important;
 background:rgba(255,255,255,.96)!important;border-top:1px solid #dce8f0!important;
 text-align:center!important;color:var(--sa13-label-ink)!important;font-family:inherit!important;
 visibility:visible!important;opacity:1!important;transform:none!important;pointer-events:none!important;
}
#modules .r64ImageCard .sa13-card-caption strong{
 display:block!important;visibility:visible!important;opacity:1!important;white-space:normal!important;
 font-size:clamp(14px,3.7vw,16px)!important;font-weight:950!important;line-height:1.48!important;
 letter-spacing:0!important;color:#133858!important;overflow-wrap:anywhere!important;
}
#modules .r64ImageCard .sa13-card-caption small{
 display:block!important;visibility:visible!important;opacity:1!important;margin-top:3px!important;
 font-size:10.5px!important;line-height:1.5!important;font-weight:650!important;
 white-space:normal!important;color:#42617b!important;
}
/* Names in the entertainment grid and trainer tools also remain visible. */
#funGrid .activity{height:auto!important;max-height:none!important;min-width:0!important;overflow:visible!important}
#funGrid .activity h3{display:block!important;position:relative!important;visibility:visible!important;opacity:1!important;max-height:none!important;height:auto!important;overflow:visible!important;white-space:normal!important;line-height:1.55!important;font-size:clamp(15px,3.8vw,17px)!important;font-weight:900!important;color:#183f60!important;text-align:center!important}
#trainer .r64t6NavButton,#trainer .r64t6Shortcut{font-size:13px!important;line-height:1.5!important;color:#194465!important;white-space:normal!important;overflow-wrap:anywhere!important}
#v25DrawerBody .r64DrawerItem span:last-child{display:inline!important;visibility:visible!important;opacity:1!important;font-size:14px!important;line-height:1.55!important;white-space:normal!important;color:inherit!important}
@media(max-width:370px){#modules .r64ImageCard .r64CardImage{height:117px!important;min-height:117px!important;max-height:117px!important;flex-basis:117px!important}#modules .r64ImageCard{min-height:205px!important}#modules .r64ImageCard .sa13-card-caption{min-height:73px!important;padding-inline:4px!important}#modules .r64ImageCard .sa13-card-caption strong{font-size:14px!important}}
@media(min-width:600px){#modules .r64ImageCard .r64CardImage{height:150px!important;min-height:150px!important;max-height:150px!important;flex-basis:150px!important}}

/* Consolidated from stable UI features of Dev14 */
/* R64 Development 14 — CHOSEN reference visual translated into live student dashboard. 
   Only presentation + progressive disclosure. Every R64 action/card stays in DOM and router.
   No changes to trainer logic, server, Supabase, authentication, competitions or games. */
body.safeR25HomeActive[data-safe-r10-role="student"] #home.wrap {
 --sa14-ink:#102e53; --sa14-muted:#687a93;
 width:100%!important;max-width:540px!important;
 background:linear-gradient(180deg,#d9f1ff 0%,#ebf8ff 34%,#f5fbff 100%)!important;
 padding:10px 12px max(110px,env(safe-area-inset-bottom) + 92px)!important;
 box-shadow:0 0 28px #3c84b618!important;
 min-height:100dvh!important;
}
body[data-safe-r10-role="student"] #home .hero{margin:2px 0 12px!important}
body[data-safe-r10-role="student"] #home .hero>.card:first-child{
 position:relative!important;box-sizing:border-box!important;
 min-height:166px!important;padding:101px 18px 13px!important;margin:0!important;
 border:none!important;box-shadow:none!important;border-radius:26px!important;
 background:radial-gradient(circle at 18% 30%,#ffffffd4 0 16%,transparent 34%),linear-gradient(128deg,#c8efff 0%,#e1f7ff 60%,#c1ebff 100%)!important;
 color:var(--sa14-ink)!important;overflow:hidden!important;text-align:center!important;
}
body[data-safe-r10-role="student"] #home .hero>.card:first-child::before {content:"✦";position:absolute;inset-inline-start:25%;top:13px;font-size:27px;color:#f7c74e;opacity:.75;pointer-events:none}
body[data-safe-r10-role="student"] #home .sa14-brand{
 position:absolute;top:19px;left:66px;right:77px;z-index:2;text-align:center;
 display:flex;flex-direction:column;align-items:center;gap:5px;
}
body[data-safe-r10-role="student"] #home .sa14-brand strong{color:#153f88;font-size:clamp(17px,4.8vw,24px);line-height:1.25;font-weight:950;letter-spacing:-.3px}
body[data-safe-r10-role="student"] #home .sa14-brand small{color:#426583;font-size:clamp(10px,2.7vw,12px);line-height:1.35;font-weight:750}
body[data-safe-r10-role="student"] #home .safeR25Avatar {
 top:20px!important;right:9px!important;left:auto!important;width:60px!important;height:60px!important;
 border:3px solid white!important;border-radius:50%!important;box-shadow:0 4px 13px #2263a62a!important;
 background:#fff!important;
}
body[data-safe-r10-role="student"] #home .safeR25Bell.r64ImageButton{
 top:25px!important;left:10px!important;right:auto!important;width:50px!important;height:50px!important;
 border-radius:50%!important;background:#ffffffdd!important;box-shadow:0 4px 12px #246b9f22!important;
}
body[data-safe-r10-role="student"] #home .hero #hello {
 margin:0!important;color:#163c78!important;text-shadow:none!important;
 font-size:clamp(15px,4vw,19px)!important;line-height:1.38!important;font-weight:900!important;
}
body[data-safe-r10-role="student"] #home .hero .safeR25Eyebrow{display:none!important}
body[data-safe-r10-role="student"] #home .hero .safeR25Sub{display:none!important}
/* The original full search, filters and every learning tool remain accessible when More opens. */
body[data-safe-r10-role="student"] #home.sa14-ready:not(.sa14-expanded) #r64d3Toolbar{display:none!important}
body[data-safe-r10-role="student"] #modules.r64HomeGrid{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:14px 12px!important;align-items:stretch!important;direction:rtl!important;
}
body[data-safe-r10-role="student"] #home.sa14-ready:not(.sa14-expanded) #modules>.r46GroupTitle{display:none!important}
body[data-safe-r10-role="student"] #home.sa14-ready:not(.sa14-expanded) #modules>.r64ImageCard:not(.sa14-feature){display:none!important}
body[data-safe-r10-role="student"] #home.sa14-ready:not(.sa14-expanded) #modules>.sa14-feature{order:var(--sa14-order)!important}
body[data-safe-r10-role="student"] #home.sa14-expanded #modules>.r64ImageCard,body[data-safe-r10-role="student"] #home.sa14-expanded #modules>.r46GroupTitle{order:0!important}
body[data-safe-r10-role="student"] #modules>.r64ImageCard {
 box-sizing:border-box!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;
 background:#fff!important;border:1px solid #e3e8f4!important;border-radius:25px!important;
 box-shadow:0 7px 18px #1a5e9b19!important;padding:0!important;overflow:hidden!important;
 display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
}
body[data-safe-r10-role="student"] #modules>.r64ImageCard .r64CardImage {
 box-sizing:border-box!important;display:block!important;
 position:relative!important;flex:0 0 auto!important;min-height:0!important;max-height:none!important;height:auto!important;
 width:100%!important;aspect-ratio:1.44!important;
 background-color:#daf1ff!important;background-size:cover!important;background-position:center center!important;
 border-radius:24px 24px 17px 17px!important;padding:0!important;overflow:hidden!important;
}
body[data-safe-r10-role="student"] #modules>.r64ImageCard.sa14-feature .r64CardImage img{opacity:0!important}
body[data-safe-r10-role="student"] #modules>.r64ImageCard.sa14-feature[data-r64-action="challengeArena"] .r64CardImage{background-image:url('./ui194/sa14_challenge.webp')!important}
body[data-safe-r10-role="student"] #modules>.r64ImageCard.sa14-feature[data-r64-action="page:myTrainings"] .r64CardImage{background-image:url('./ui194/sa14_trainings.webp')!important}
body[data-safe-r10-role="student"] #modules>.r64ImageCard.sa14-feature[data-r64-action="page:abacus"] .r64CardImage{background-image:url('./ui194/sa14_abacus.webp')!important}
body[data-safe-r10-role="student"] #modules>.r64ImageCard.sa14-feature[data-r64-action="numberCards"] .r64CardImage{background-image:url('./ui194/sa14_numbers.webp')!important}
body[data-safe-r10-role="student"] #modules>.r64ImageCard.sa14-feature[data-r64-action="page:fun"] .r64CardImage{background-image:url('./ui194/sa14_games.webp')!important}
body[data-safe-r10-role="student"] #modules>.r64ImageCard.sa14-feature[data-r64-action="page:myReports"] .r64CardImage{background-image:url('./ui194/sa14_reports.webp')!important}
/* Original art is never cropped for secondary cards. */
body[data-safe-r10-role="student"] #modules>.r64ImageCard:not(.sa14-feature) .r64CardImage {background:linear-gradient(135deg,#e6f7ff,#fff2f9)!important}
body[data-safe-r10-role="student"] #modules>.r64ImageCard:not(.sa14-feature) .r64CardImage img {object-fit:contain!important;opacity:1!important;width:100%!important;height:100%!important;padding:10px!important;box-sizing:border-box!important}
body[data-safe-r10-role="student"] #modules>.r64ImageCard.sa13-caption-ready .sa13-card-caption {
 position:relative!important;display:flex!important;flex:1 0 auto!important;
 min-height:89px!important;max-height:none!important;height:auto!important;
 align-items:stretch!important;justify-content:center!important;
 padding:10px 32px 12px 8px!important;
 border:0!important;overflow:visible!important;background:#fff!important;
 color:var(--sa14-ink)!important;text-align:right!important;
}
body[data-safe-r10-role="student"] #modules>.r64ImageCard .sa13-card-caption strong{
 display:block!important;color:#0c2c53!important;font-size:clamp(14px,4vw,20px)!important;
 font-weight:950!important;line-height:1.35!important;text-align:right!important;
 overflow-wrap:normal!important;word-break:normal!important;
}
body[data-safe-r10-role="student"] #modules>.r64ImageCard .sa13-card-caption small{
 display:block!important;color:#72849b!important;font-size:clamp(10px,2.6vw,12px)!important;
 font-weight:650!important;text-align:right!important;line-height:1.5!important;margin-top:4px!important;
}
body[data-safe-r10-role="student"] #modules>.r64ImageCard .sa13-card-caption::after {
 content:'›';position:absolute;bottom:20px;left:8px;right:auto;
 width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
 color:#fff;font-family:Arial,sans-serif;font-size:29px;line-height:20px;font-weight:700;
 background:#29b6e6;box-shadow:0 0 0 5px #cceffa;
}
body[data-safe-r10-role="student"] #modules>.r64ImageCard[data-r64-action="challengeArena"] .sa13-card-caption::after{background:#ffac36;box-shadow:0 0 0 5px #fff1d4}
body[data-safe-r10-role="student"] #modules>.r64ImageCard[data-r64-action="page:abacus"] .sa13-card-caption::after{background:#9a74ee;box-shadow:0 0 0 5px #efe4ff}
body[data-safe-r10-role="student"] #modules>.r64ImageCard[data-r64-action="page:fun"] .sa13-card-caption::after{background:#f278b1;box-shadow:0 0 0 5px #fce2f0}
body[data-safe-r10-role="student"] #modules>.r64ImageCard[data-r64-action="page:myTrainings"] .sa13-card-caption::after{background:#27c7af;box-shadow:0 0 0 5px #dcfff3}
body[data-safe-r10-role="student"] #modules>.r64ImageCard .r64d5Star{z-index:5!important;top:8px!important;left:8px!important;right:auto!important;width:30px!important;height:30px!important}
/* Never hide titles if a script fails: legacy title remains an accessible fallback. */
body[data-safe-r10-role="student"] #modules>.r64ImageCard:not(.sa13-caption-ready) .r64CardTitle{background:#fff!important;min-height:70px!important;display:block!important;visibility:visible!important}
body[data-safe-r10-role="student"] #modules>.sa14-more{
 order:990!important;grid-column:1/-1!important;min-height:108px;width:100%;display:flex;align-items:center;justify-content:space-between;
 box-sizing:border-box;border-radius:23px;border:1px solid #cdbdfd;background:linear-gradient(112deg,#dfd3ff,#f5efff 64%,#e9e2ff);
 color:#1c3d88;box-shadow:0 9px 19px #7765a01d;overflow:hidden;cursor:pointer;font:inherit;padding:10px 18px;gap:12px;
}
body[data-safe-r10-role="student"] #modules>.sa14-more:focus-visible{outline:3px solid #367ef5;outline-offset:2px}
body[data-safe-r10-role="student"] #modules>.sa14-more .sa14-more-copy{display:flex;flex-direction:column;gap:3px;text-align:right;font-weight:950;font-size:21px;line-height:1.5}
body[data-safe-r10-role="student"] #modules>.sa14-more .sa14-more-copy small{font-size:11px;font-weight:700;color:#74649a}
body[data-safe-r10-role="student"] #modules>.sa14-more .sa14-more-art{display:block;flex:0 0 133px;width:133px;height:82px;border-radius:17px;background:url('./ui194/sa14_more.webp') center/cover no-repeat}
body[data-safe-r10-role="student"] #modules>.sa14-more .sa14-more-arrow{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;flex:0 0 38px;background:#9d82e8;color:#fff;font-size:29px;font-weight:900}
body[data-safe-r10-role="student"] #home.sa14-expanded #modules>.sa14-more{margin-top:12px}
body[data-safe-r10-role="student"] #modules>.r64ImageCard:active{transform:scale(.975)!important}
@media(max-width:375px){
 body[data-safe-r10-role="student"] #modules.r64HomeGrid{gap:12px 9px!important}
 body[data-safe-r10-role="student"] #modules>.r64ImageCard{border-radius:18px!important}
 body[data-safe-r10-role="student"] #modules>.r64ImageCard.sa13-caption-ready .sa13-card-caption{min-height:90px!important;padding:9px 30px 10px 7px!important}
 body[data-safe-r10-role="student"] #modules>.r64ImageCard .sa13-card-caption strong{font-size:13.5px!important}
 body[data-safe-r10-role="student"] #modules>.r64ImageCard .sa13-card-caption small{font-size:10px!important}
 body[data-safe-r10-role="student"] #modules>.sa14-more .sa14-more-art{flex-basis:91px;width:91px}
 body[data-safe-r10-role="student"] #home .sa14-brand strong{font-size:17px!important}
}
@media(prefers-reduced-motion:reduce){body[data-safe-r10-role="student"] #modules>.r64ImageCard{transition:none!important}}

/* Final guard: older R64 styles enforced square cards and clipped captions. */
body.safeR25HomeActive[data-safe-r10-role="student"] #modules.r64HomeGrid>.r64ImageCard{
 aspect-ratio:auto!important; height:auto!important;max-height:none!important;
 overflow:hidden!important;align-self:stretch!important;
}
body.safeR25HomeActive[data-safe-r10-role="student"] #modules.r64HomeGrid>.r64ImageCard .sa13-card-caption{height:auto!important;min-height:89px!important;overflow:visible!important}
body.safeR25HomeActive[data-safe-r10-role="student"] #home .hero>.card:first-child #hello{color:#163c78!important;text-shadow:none!important}
body.safeR25HomeActive[data-safe-r10-role="student"] #home.sa14-expanded #r64d3Toolbar{display:block!important}

/* Expanded catalog must keep the original working search and category filters. */
body.safeR25HomeActive[data-safe-r10-role="student"] #home.sa14-expanded #r64d3Toolbar {
 display:block!important;visibility:visible!important;overflow:visible!important;
 height:auto!important;min-height:100px!important;padding:13px!important;
 opacity:1!important;
}
body[data-safe-r10-role="student"] #home.sa14-expanded #r64d3Toolbar * {visibility:visible!important}

/* Consolidated from stable UI features of Dev15 */
/* Dev15 — mobile-first pre-login, preserves the working QR/ID/purchase handlers. */
#loginScreen.login{background:linear-gradient(180deg,#e0f4ff,#f7fcff 55%,#fff)!important;padding:0!important;min-height:100dvh!important;overflow-x:hidden!important}
#loginScreen .loginbox.safeR25LoginShell{box-sizing:border-box!important;width:min(100%,500px)!important;max-width:500px!important;min-height:100dvh!important;padding:18px 15px 40px!important;margin:0 auto!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;display:block!important;overflow:visible!important}
#loginScreen .safeR25LoginHead{position:relative!important;display:flex!important;min-height:184px!important;background:linear-gradient(120deg,#1789e5,#6bd5f9)!important;border:1px solid #9edafa!important;border-radius:28px!important;padding:24px 14px 18px 142px!important;box-sizing:border-box!important;overflow:hidden!important;box-shadow:0 12px 26px #2b79a82a!important;align-items:center!important;justify-content:flex-start!important}
#loginScreen .safeR25LoginHead h1{font-size:clamp(24px,6vw,34px)!important;color:#fff!important;line-height:1.3!important;margin:0 0 8px!important;font-weight:950!important;text-shadow:0 2px 5px #23628c44!important}
#loginScreen .safeR25LoginHead p{color:#fff!important;opacity:.95!important;font-size:clamp(12px,3.1vw,15px)!important;line-height:1.65!important;max-width:280px!important;margin:0!important;font-weight:700!important}
#loginScreen .safeR25LoginHead img{position:absolute!important;right:auto!important;left:6px!important;bottom:5px!important;width:140px!important;height:150px!important;object-fit:contain!important;filter:drop-shadow(0 4px 5px #00437522)!important}
#loginScreen .safeR25LoginTitle{margin:21px 3px 13px!important;font-size:19px!important;color:#17456f!important;font-weight:950!important}
#loginScreen .safeR25LoginGrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important;align-items:stretch!important}
#loginScreen .safeR25LoginCard{height:auto!important;min-height:190px!important;padding:0!important;box-sizing:border-box!important;display:flex!important;flex-direction:column-reverse!important;border:1px solid #c4dff3!important;border-radius:23px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 9px 20px #255a9620!important;cursor:pointer!important;touch-action:manipulation!important;transition:transform .12s ease,box-shadow .12s ease!important;position:relative!important}
#loginScreen .safeR25LoginCard:active{transform:scale(.97)!important}
#loginScreen .safeR25LoginCard:focus-visible{outline:3px solid #187de5!important;outline-offset:3px!important}
#loginScreen .safeR25LoginVisual{flex:1 1 auto!important;min-height:120px!important;max-height:none!important;display:block!important;overflow:hidden!important}
#loginScreen .safeR25LoginVisual img{display:block!important;width:100%!important;height:100%!important;aspect-ratio:1.35!important;object-fit:cover!important;object-position:center!important;max-width:100%!important;border:0!important;border-radius:0!important;pointer-events:none!important}
#loginScreen .safeR25LoginCard b{order:-1;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;height:auto!important;min-height:50px!important;padding:9px 6px!important;font-size:clamp(13px,3.6vw,17px)!important;line-height:1.35!important;text-align:center!important;color:#163f74!important;background:#fff!important;white-space:normal!important}
#loginScreen .safeR25LoginCard[data-action="camera"]{border-color:#9bd9d4!important}
#loginScreen .safeR25LoginCard[data-action="identifier"]{border-color:#a9d9ff!important}
#loginScreen .safeR25LoginCard[data-action="purchase"]{border-color:#f5d4a3!important}
#loginScreen .safeR25LoginCard[data-action="gallery"]{border-color:#d9c6f5!important}
#loginScreen .safeR25IdPanel{margin:18px 0 0!important;padding:17px 13px!important;border:1px solid #cfe4f5!important;background:#fff!important;border-radius:23px!important;box-shadow:0 8px 20px #2b79a81a!important}
#loginScreen .safeR25IdPanel label{display:block!important;color:#204569!important;font-size:15px!important;font-weight:900!important;margin:0 0 10px!important}
#loginScreen .safeR25IdRow{display:flex!important;gap:9px!important;flex-direction:row!important;align-items:stretch!important;min-width:0!important}
#loginScreen #identifierInput{flex:1 1 0!important;min-width:0!important;width:100%!important;height:52px!important;border:1px solid #c5dcef!important;border-radius:14px!important;background:#fbfdff!important;color:#143d66!important;font-size:16px!important;padding:10px!important;box-sizing:border-box!important}
#loginScreen #safeR25LoginBtn{flex:0 0 86px!important;min-height:52px!important;font-size:16px!important;border-radius:14px!important;background:linear-gradient(135deg,#0879d2,#1262c5)!important;color:#fff!important;border:0!important;font-weight:950!important;cursor:pointer!important}
#loginScreen .safeR25Last{color:#58728b!important;font-size:12px!important;line-height:1.5!important;margin-top:8px!important}
@media(max-width:350px){#loginScreen .safeR25LoginHead{min-height:151px!important;padding-right:127px!important;padding-left:10px!important}#loginScreen .safeR25LoginHead img{width:117px!important;height:130px!important}#loginScreen .safeR25LoginGrid{gap:9px!important}#loginScreen .safeR25LoginCard{min-height:153px!important}#loginScreen .safeR25LoginVisual{min-height:104px!important}}
@media(prefers-reduced-motion:reduce){#loginScreen .safeR25LoginCard{transition:none!important}}
/* Clicks must reach cards; visual children must not swallow gestures. */
#modules .r64ImageCard .r64CardImage,#modules .r64ImageCard .r64CardImage *,#modules .r64ImageCard .sa13-card-caption,#modules .r64ImageCard .sa13-card-caption *{pointer-events:none!important}
#modules .r64ImageCard{touch-action:manipulation!important;cursor:pointer!important}
#modules .r64ImageCard .r64d5Star{pointer-events:auto!important}

#loginScreen .safeR25LoginHead h1{white-space:normal!important;overflow-wrap:normal!important;font-size:clamp(22px,5.7vw,28px)!important;max-width:100%!important}
#loginScreen .safeR25LoginHead>div{min-width:0!important;max-width:100%!important}

/* Consolidated from stable UI features of Dev08 */
/* Soroban Academy — Development 08. No changes to game engines. */
.r64d8RoomHeading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px}.r64d8RoomHeading h3{margin:0}.r64d8RoomHeading p{font-size:12px;margin:6px 0;color:#65766c}.r64d8RoomHeading button{min-width:78px}.r64d8JoinableRoom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;margin:9px 0;border-radius:18px;background:#f8fbf9;border:1px solid #dce9e1;box-shadow:0 7px 22px #234d3b0a}.r64d8JoinableRoom h4{font-size:17px;margin:7px 0 3px;color:#224a38}.r64d8JoinableRoom p{font-size:12px;margin:0 0 7px;color:#5d7165}.r64d8JoinableRoom small{font-weight:900;color:#276345}.r64d8RoomDetail{min-width:0;flex:1}.r64d8LiveTag{display:inline-flex;gap:5px;align-items:center;font-size:10px;font-weight:900;color:#166344;background:#dbf5e6;padding:4px 8px;border-radius:99px}.r64d8LiveTag i{height:6px;width:6px;border-radius:50%;background:#1f9d5c}.r64d8JoinableRoom button{white-space:nowrap;border-radius:13px;padding:12px 14px}.r64d8EmptyRooms{text-align:center;padding:25px 12px;background:#f4f8f5;border:1px dashed #ccdcd0;border-radius:16px}.r64d8EmptyRooms p{color:#6d7c70;font-size:13px}@media(max-width:510px){.r64d8JoinableRoom{flex-direction:column;align-items:stretch}.r64d8JoinableRoom button{width:100%}}
#r64d8AccessCurtain{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:18px;background:radial-gradient(circle at 20% 15%,#dbfae8 0,transparent 35%),radial-gradient(circle at 80% 80%,#d5e9fb 0,transparent 40%),linear-gradient(155deg,#f0f9f5,#e4f0fa);font-family:inherit;color:#1e4738;direction:rtl;overflow-y:auto}#r64d8AccessCurtain.on{display:flex}#r64d8AccessCurtain .r64d8AccessCard{width:min(100%,470px);background:#fff;border-radius:32px;padding:28px 24px;text-align:center;box-shadow:0 24px 68px #1c59492b;border:1px solid #daeae2}#r64d8AccessCurtain .r64d8Hero{font-size:56px;display:block;margin:0 auto 12px}#r64d8AccessCurtain h2{font-size:27px;line-height:1.5;margin:5px 0 12px;color:#124c3a}#r64d8AccessCurtain p{font-size:15px;line-height:2;color:#526b61}#r64d8AccessCurtain .r64d8Hours{background:#f0f8f2;padding:12px;border-radius:16px;margin:16px 0;font-size:13px;font-weight:850;color:#295d46}#r64d8AccessCurtain button{border:0;border-radius:15px;min-height:46px;padding:12px 18px;font-weight:900;cursor:pointer}#r64d8AccessCurtain #r64d8AccessRetry{color:#fff;background:#14684b}#r64d8AccessCurtain #r64d8AccessLogout{color:#215543;background:#e7f3ec;margin-inline-start:8px}

#r64d8AccessCurtain .r64d8Hero{width:142px;height:142px;border-radius:30px;display:flex;align-items:center;justify-content:center;position:relative;background:linear-gradient(140deg,#e1f8ea,#dbeafc);border:1px solid #d3e9db;box-shadow:0 12px 26px #1b724220;margin-bottom:22px}#r64d8AccessCurtain .r64d8Hero img{width:112px;height:112px;object-fit:contain;border-radius:20px}#r64d8AccessCurtain .r64d8Hero span{position:absolute;top:-18px;right:-10px;font-size:35px;color:#ecaf16;text-shadow:0 4px 10px #c89d2452}

/* Consolidated from stable UI features of Dev09 */
/* Development 09: Mobile-first room entry; layout only, never replaces existing game RPCs. */
#r56ArenaPage,#r56ArenaPage *{box-sizing:border-box}
#r56ArenaPage{min-width:0;overflow-wrap:anywhere;padding:9px 12px 95px;max-width:680px}
#r56ArenaPage .r56Head{gap:7px;align-items:center}
#r56ArenaPage .r56Head h2{font-size:clamp(22px,5.6vw,28px)}
#r56ArenaPage .r56Head p{font-size:12px;line-height:1.5}
#r56ArenaPage .r56Tabs{padding:7px 0 13px;gap:7px;scrollbar-width:none;overscroll-behavior-x:contain}
#r56ArenaPage .r56Tabs::-webkit-scrollbar{display:none}
#r56ArenaPage .r56Tabs>button{min-height:46px;flex:0 0 auto;white-space:nowrap;font-size:12px;padding:9px 13px}
#r56ArenaPage .r56ArenaBody{min-width:0}
#r56ArenaPage .r64d7RoomInbox{margin:9px 0}
#r56ArenaPage .r64d9RoomsHome,#r56ArenaPage .r64d9RoomsPage{max-width:560px;margin:0 auto;min-width:0;direction:rtl}
#r56ArenaPage .r64d9RoomsIntro{padding:26px 10px 13px;text-align:center}
#r56ArenaPage .r64d9RoomsIntro>span{display:inline-flex;justify-content:center;align-items:center;background:#e7f6f0;border-radius:22px;width:79px;height:79px;font-size:40px}
#r56ArenaPage .r64d9RoomsIntro h3{font-size:26px;color:#17493e;margin:10px 0 3px;line-height:1.4}
#r56ArenaPage .r64d9RoomsIntro p{font-size:14px;color:#526f65;margin:0}
#r56ArenaPage .r64d9RoomOptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:13px 0 16px}
#r56ArenaPage button.r64d9RoomOption{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-width:0;min-height:192px;gap:9px;border-radius:25px;padding:17px 7px;border:2px solid #c6e4d5;background:linear-gradient(155deg,#f5fffa,#e0f3ea);color:#155b46;box-shadow:0 9px 21px #1b6b4521;font-family:inherit;cursor:pointer}
#r56ArenaPage button.r64d9RoomOption:nth-child(2){border-color:#e5d7b9;background:linear-gradient(155deg,#fffaf2,#faead0);color:#7d4e1e}
#r56ArenaPage .r64d9OptionArt{font-size:55px;line-height:1.3;filter:drop-shadow(0 5px 3px #00000012)}
#r56ArenaPage .r64d9RoomOption strong{font-size:19px;line-height:1.4}
#r56ArenaPage .r64d9RoomOption small{font-size:12px;line-height:1.4;color:#557568;font-weight:700}
#r56ArenaPage button.r64d9CodeEntry{border:1px solid #d7e1db;background:#fff;border-radius:19px;padding:15px 16px;width:100%;display:flex;gap:9px;align-items:center;justify-content:center;color:#245a4b;font-size:15px;font-weight:800;font-family:inherit;min-height:61px;flex-wrap:wrap;cursor:pointer}
#r56ArenaPage .r64d9CodeEntry span{font-size:24px}#r56ArenaPage .r64d9CodeEntry b{font-size:13px}
#r56ArenaPage .r64d9GoBack{display:inline-flex;align-items:center;gap:6px;margin:0 0 11px;min-height:46px;padding:8px 17px;border:1px solid #d6e5dc;border-radius:15px;background:white;color:#1e654c;font:800 14px inherit;cursor:pointer}
#r56ArenaPage .r64d9PageTitle{display:flex;align-items:center;gap:12px;min-width:0;padding:13px 4px 19px}
#r56ArenaPage .r64d9PageTitle>span{width:65px;height:65px;border-radius:19px;background:#e9f5ed;display:grid;place-items:center;font-size:33px;flex:0 0 65px}
#r56ArenaPage .r64d9PageTitle h3{font-size:24px;color:#184c3e;margin:0}
#r56ArenaPage .r64d9PageTitle p{font-size:13px;color:#6b7c71;margin:3px 0 0}
#r56ArenaPage .r64d9RoomsPage .r64d8RoomHeading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 14px}
#r56ArenaPage .r64d9RoomsPage .r64d8RoomHeading h3{font-size:15px;margin:0}
#r56ArenaPage .r64d9RoomsPage .r64d8JoinableRoom{min-width:0;padding:14px;border-radius:20px}
#r56ArenaPage .r64d9RoomsPage .r64d8RoomDetail h4{overflow-wrap:anywhere}
#r56ArenaPage .r64d9RoomsPage .r64d8RoomDetail p{line-height:1.7}
#r56ArenaPage .r64d9RoomsPage .r64d8RoomHeading button{min-height:47px}
#r56ArenaPage .r64d9CodePage{padding:4px 8px}
#r56ArenaPage .r64d9CodeLabel{display:block;margin:12px 0;color:#315c4d;font-size:14px;font-weight:850}
#r56ArenaPage #r56RoomCode{display:block;width:100%;height:75px;min-width:0;background:white;border:2px solid #b1d7c6;border-radius:18px;text-align:center;font-family:inherit;font-weight:900;font-size:29px;letter-spacing:4px;text-transform:uppercase;color:#144e3b;box-sizing:border-box}
#r56ArenaPage .r64d9BigAction{min-height:59px;border-radius:18px;font-family:inherit;font-size:16px;font-weight:950;margin-top:18px}
#r56ArenaPage .r64d9CreatePage .r56Panel{padding:19px 15px;border-radius:22px}
#r56ArenaPage .r64d9CreatePage h4{font-size:16px;color:#185640;margin:4px 0 8px}
#r56ArenaPage .r64d9CreatePage .r56Form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;min-width:0}
#r56ArenaPage .r64d9CreatePage label{min-width:0;font-size:13px}
#r56ArenaPage .r64d9CreatePage .r56Form select,#r56ArenaPage .r64d9CreatePage .r56Form input{max-width:100%;min-width:0;width:100%;height:50px;font-family:inherit;font-size:15px}
#r56ArenaPage .r64d9Advanced{margin-top:13px;border:1px solid #d9e9df;background:#f8fbf8;border-radius:16px;padding:13px}
#r56ArenaPage .r64d9Advanced summary{font-size:14px;font-weight:900;color:#28644f;cursor:pointer;min-height:35px}
#r56ArenaPage .r64d9Advanced>.r56Form{margin:9px 0 0}
#r56ArenaPage .r64d9RoomsPage .r64d7ScopeField{grid-column:1/-1}
#r56ArenaPage .r56RoomLobby{min-width:0;max-width:560px;margin:0 auto;padding:17px 12px}
#r56ArenaPage .r56RoomLobby .r56RoomCodeBig b{font-size:clamp(23px,7vw,36px);letter-spacing:3px}
#r56ArenaPage .r56RoomLobby .r64d7HostInvites{min-width:0;overflow-wrap:anywhere}
#r56ArenaPage .r56Members>div{min-width:0;grid-template-columns:30px minmax(0,1fr) auto;gap:5px}
#r56ArenaPage .r56Members b{min-width:0;overflow-wrap:anywhere}
#r56ArenaPage :is(button,input,select,summary):focus-visible{outline:3px solid #e4a743!important;outline-offset:3px!important}
@media(max-width:380px){#r56ArenaPage{padding-inline:7px}#r56ArenaPage .r64d9RoomOptions{gap:8px}#r56ArenaPage button.r64d9RoomOption{min-height:164px;padding:12px 5px}#r56ArenaPage .r64d9OptionArt{font-size:43px}#r56ArenaPage .r64d9RoomOption strong{font-size:16px}#r56ArenaPage .r64d9CreatePage .r56Form{grid-template-columns:1fr}}
/* Phase 2: whole photos remain visible, without stretching or accidental cropping. */
#modules .r64ImageCard{min-width:0;overflow:hidden}
#modules .r64ImageCard .r64CardImage{min-width:0;overflow:hidden;display:flex!important;align-items:center;justify-content:center}
#modules .r64ImageCard .r64CardImage img{object-fit:contain!important;object-position:center!important;max-height:100%!important;width:100%!important;height:100%!important}
#modules .r64ImageCard .r64CardTitle{overflow-wrap:anywhere;line-height:1.45!important}
/* Phase 3: trainer is an everyday mobile workspace, not an overfilled desktop dashboard. */
@media(max-width:650px){
#trainer .r64t6Intro{padding:15px!important;border-radius:19px!important}
#trainer .r64t6Intro p{line-height:1.5;font-size:12px}
#trainer .r64t6Launch{padding:11px}
#trainer .r64t6LaunchActions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px}
#trainer .r64t6Shortcut{min-width:0;min-height:55px;font-size:12px;padding:9px;white-space:normal}
#trainer .r64t6Nav{display:flex!important;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;max-width:100%;scroll-snap-type:x proximity;padding:3px 1px 10px}
#trainer .r64t6Nav::-webkit-scrollbar{display:none}
#trainer .r64t6NavButton{scroll-snap-align:start;flex:0 0 112px;min-height:80px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:15px;padding:8px 5px!important;text-align:center;font-size:12px!important;white-space:normal}
#trainer .r64t6NavIcon{width:32px;height:32px;flex:0 0 32px}
#trainer .trSection .card.sectionbox{padding:12px;min-width:0}
#trainer .trSection .toolbar>button{min-height:43px}
#trainer .r64t6Status{padding:4px 2px 10px}
#trainer .trSection .tablewrap{max-width:100%;overflow-x:auto!important}
}
/* Phase 4: wheel tuned for actual 360px handheld widths. */
#r36WheelScreen,#r36WheelScreen *{box-sizing:border-box}
#r36WheelScreen{max-width:760px;min-width:0;overflow-wrap:anywhere;padding-inline:10px}
#r36WheelScreen .r36WheelHero{gap:10px;align-items:center;flex-wrap:wrap}
#r36WheelScreen .r36WheelLayout{min-width:0}
#r36WheelScreen .r36WheelControl,#r36WheelScreen .r36WheelSide{min-width:0}
#r36WheelScreen .r36WheelStage{overflow:visible;max-width:100%}
#r36WheelScreen .r36WheelStage canvas{display:block;max-width:100%;height:auto}
#r36WheelScreen .r36WheelFilters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#r36WheelScreen .r36WheelFilters .field{min-width:0}
#r36WheelScreen .r36WheelFilters select{max-width:100%;min-width:0;width:100%;min-height:48px}
#r36WheelScreen .r36WheelActions{gap:10px;flex-wrap:wrap}
#r36WheelScreen #r36SpinBtn{touch-action:manipulation;min-width:105px;min-height:55px}
#r36WheelScreen .r36Winner b{overflow-wrap:anywhere;line-height:1.5}
@media(max-width:410px){#r36WheelScreen .r36WheelHero h2{font-size:21px}#r36WheelScreen .r36WheelHero p{font-size:12px}#r36WheelScreen .r36WheelFilters{grid-template-columns:1fr 1fr}#r36WheelScreen .r36WheelLayout{gap:12px}}
/* Phase 5: child answer buttons and game controls remain touchable. */
@media(max-width:650px){#r56ArenaPage .r56Question h2{font-size:clamp(27px,9vw,44px)}#r56ArenaPage .r56Choices{gap:9px}#r56ArenaPage .r56Choices button{min-height:69px;min-width:0;font-size:clamp(19px,6vw,26px)}#r56ArenaPage .r56Stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}#r56ArenaPage .r56Stats>div{padding:10px 5px}}
@media(prefers-reduced-motion:reduce){#r56ArenaPage button.r64d9RoomOption,#r56ArenaPage button.r64d9CodeEntry{transition:none!important;animation:none!important}}
/* Keep every challenge feature visible to children instead of clipping the last tab. */
@media(max-width:470px){
#r56ArenaPage .r56Tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;overflow:visible}
#r56ArenaPage .r56Tabs>button{min-width:0;width:100%;white-space:normal;line-height:1.35;min-height:50px;padding:7px 4px;font-size:11.8px}
}
#r56ArenaPage .r64d9BigAction,#r56ArenaPage .r64d9RoomsPage .r64d8JoinableRoom button.primary{background:#096d51!important;border:1px solid #096d51!important;color:#fff!important;box-shadow:0 6px 17px #17674925!important}
#r56ArenaPage .r64d9RoomsPage .r64d8RoomHeading button{background:#f3f8f4!important;color:#24614c!important;border:1px solid #d6e5d9!important}

/* Consolidated from stable UI features of Dev10 */
/* Mobile-focused readability across student/teacher cards, including fun & activities. */
#modules .r64ImageCard{min-width:0;min-height:166px;border-radius:20px;touch-action:manipulation}
#modules .r64ImageCard .r64CardImage{min-height:94px;max-height:125px;padding:6px;display:grid!important;place-items:center}
#modules .r64ImageCard .r64CardImage img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;filter:none!important;display:block}
#modules .r64ImageCard .r64CardTitle{line-height:1.45;white-space:normal;overflow-wrap:anywhere;font-size:clamp(12px,3.5vw,16px);font-weight:900}
#modules .r64ImageCard:focus-visible{outline:3px solid #e5a92d;outline-offset:3px}
#r64d10UsageBadge{max-width:500px;margin:6px auto 15px;border:1px solid #b9dbc7;background:#f1fbf5;color:#21583f;text-align:center;padding:12px 16px;border-radius:17px;font-size:14px;font-weight:850;line-height:1.4;direction:rtl}
#r64d10UsageBadge[hidden]{display:none}
/* Child-safe touch targets in the existing fun/activity page, without changing any handler. */
#fun :is(button,a,select),#trActivities :is(button,select),#r55FlashPage button,#r46DinoPage button,#r46DuelPage button,#r55PuzzlePage button{min-height:44px;touch-action:manipulation}
#fun :is(.card,.gameCard,.activityCard),#trActivities :is(.card,.activityCard){max-width:100%;min-width:0;overflow-wrap:anywhere}
#fun img,#trActivities img{max-width:100%;height:auto;object-fit:contain}
@media(max-width:480px){#modules{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}#modules .r64ImageCard{min-height:154px!important;padding:8px!important}#modules .r64ImageCard .r64CardImage{height:100px!important}#fun,#trActivities{padding-inline:8px!important}#fun :is(button,a,select),#trActivities :is(button,select){font-size:14px}}
@media(prefers-reduced-motion:reduce){#modules .r64ImageCard,#fun button,#trActivities button{animation:none!important;transition:none!important}}

/* Dev17: functional controls are part of the existing coordinator; no JS observer added. */
#home .r64d3Search{display:flex!important;position:relative;isolation:isolate}
#home .r64d3Search input{position:relative;z-index:1;pointer-events:auto!important}
#home .r64d3Search .r64d3Clear{position:relative;z-index:2;pointer-events:auto!important;min-width:58px;min-height:44px}
#home .r64d3Chips{display:flex!important;flex-wrap:wrap;overflow:visible!important;padding:12px 0 4px;gap:8px}
#home .r64d3Chip{min-height:45px!important;pointer-events:auto!important;position:relative}
#home .r64d5FavLink,#home .r64d5Last{min-height:44px!important;touch-action:manipulation}
#home .r64d5Panel{padding-bottom:3px;gap:11px}
#modules .r64d5Star,body[data-safe-r10-role="student"] #modules>.r64ImageCard .r64d5Star{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;font-size:24px!important}
#loginScreen .safeR25LoginCard .academyLoginHint{order:-2;display:block!important;min-height:36px!important;padding:0 7px 10px!important;text-align:center;color:#55728b;font-size:11px;line-height:1.45;background:#fff;font-weight:700}
#loginScreen .safeR25LoginCard[data-action="camera"] .academyLoginHint{color:#137d77}
#loginScreen .safeR25LoginCard[data-action="identifier"] .academyLoginHint{color:#266cbd}
#loginScreen .safeR25LoginCard[data-action="purchase"] .academyLoginHint{color:#946415}
#loginScreen .safeR25LoginCard[data-action="gallery"] .academyLoginHint{color:#7956a8}
#loginScreen .safeR25LoginCard .safeR25LoginVisual{min-height:125px!important}
#loginScreen .safeR25LoginCard .safeR25LoginVisual img{object-fit:cover!important;max-height:156px;}
@media(max-width:370px){#home .r64d3Chip{font-size:11px!important;padding:8px 11px!important}#loginScreen .safeR25LoginCard .academyLoginHint{font-size:10px;min-height:39px!important}}
/* Panels/canvases: keep form controls accessible without changing game mechanics. */
#home button:focus-visible,#trainer button:focus-visible,#fun button:focus-visible{outline:3px solid #2b84eb!important;outline-offset:2px}
#trainer .tablewrap,#myReports .tablewrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:430px){#trainer .trSection>.card,#fun .card,#myTrainings .card{min-width:0;max-width:100%}}

/* Dev17 verified filter correction: hidden must outrank the mobile card layout. */
html body[data-safe-r10-role] #home #modules.r64HomeGrid > .r64ImageCard[hidden],
html body[data-safe-r10-role] #home #modules.r64HomeGrid > .r46GroupTitle[hidden],
html body.safeR25HomeActive #home.sa14-expanded #modules.r64HomeGrid > .r64ImageCard[hidden]{
 display:none!important;visibility:hidden!important;pointer-events:none!important;
}
#r64d3Empty[hidden],#r64d5Last[hidden],#r64d5Hint[hidden]{display:none!important}


/* R64 DEVELOPMENT 18 — MOBILE INNER SCREEN UX. Keep every native handler and section. */
@media(max-width:600px){
 #fun .activitygrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 #fun .activity{padding:11px!important;min-height:0!important;border-radius:19px!important;overflow-wrap:anywhere}
 #fun .activity h3{font-size:14px!important;line-height:1.35!important}
 #fun .activity p{font-size:11px!important;line-height:1.45!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 #fun .activity button,#fun .activitypanel button,#fun .choices button,#trainer .trSection button,#myTrainings button,#todaySession button,#championship button{min-height:44px;touch-action:manipulation}
 #fun .activitypanel{padding:12px!important;border-radius:20px!important;max-width:100%;overflow:hidden}
 #fun .activitypanel canvas,#fun .activitypanel img{max-width:100%;height:auto;touch-action:none}
 #fun .choices{display:flex;flex-wrap:wrap;gap:9px;max-width:100%}
 #fun .choices>*{min-width:44px}
 #trainer .trSection{max-width:100%;overflow-wrap:anywhere}
 #trainer .trSection input,#trainer .trSection select,#trainer .trSection textarea{max-width:100%;min-width:0;font-size:16px}
 #trainer .trSection .tablewrap,#myReports .tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
 #trainer .trainerFormGrid,#trainer .trainerToolbox{grid-template-columns:minmax(0,1fr)!important}
 #myTrainings .trainingList,#todaySession .sessionAssignment{grid-template-columns:minmax(0,1fr)!important}
 #championship .r31CompGrid{grid-template-columns:minmax(0,1fr)!important}
 #championship .r35Keypad button{min-height:46px!important}
 #game .v17SourceTop{display:flex;flex-wrap:wrap;gap:8px}
 #game .v17SourceActions{display:flex;flex-wrap:wrap;gap:7px}
 #game .v17SourceActions button{min-height:42px}
}
@media(max-width:350px){#fun .activitygrid{grid-template-columns:minmax(0,1fr)!important}}

/* ====================================================
   Dev19 · SOURCE CONSOLIDATION
   Favorites were removed in the JS coordinator, not merely hidden.
   Trainer shortcuts were removed from the trainer builder. Native tabs remain.
==================================================== */
#trainer .r64t6Intro{padding:17px 17px 16px!important;border-radius:22px!important}
#trainer .r64t6Intro h2{font-size:clamp(21px,5vw,29px)!important;line-height:1.3!important}
#trainer .r64t6Intro p{font-size:13px!important;line-height:1.65!important;max-width:35ch}
#trainer .r64t6Nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important;margin:15px 0!important}
#trainer .r64t6NavButton{position:relative!important;min-width:0!important;min-height:91px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:8px!important;text-align:center!important;background:linear-gradient(140deg,#f2f9ff,#fff)!important;border:1px solid #d2e6f8!important;border-radius:19px!important;box-shadow:0 7px 17px #14477d13!important;padding:12px 8px!important;color:#1f527e!important;touch-action:manipulation}
#trainer .r64t6NavButton:nth-child(2n){background:linear-gradient(140deg,#e9fbf6,#fff)!important;border-color:#c5e9dd!important}
#trainer .r64t6NavButton:nth-child(3n){background:linear-gradient(140deg,#fff5e7,#fff)!important;border-color:#f2dcc0!important}
#trainer .r64t6NavIcon{display:flex!important;justify-content:center!important;align-items:center!important;width:42px!important;height:42px!important;border-radius:14px!important;background:#e1f0ff!important;color:#176cae!important;flex:none!important}
#trainer .r64t6NavLabel{font-size:14px!important;font-weight:900!important;line-height:1.35!important}
#trainer .r64t6NavButton[aria-current="page"],#trainer .r64t6NavButton.active,#trainer .r64t6NavButton[aria-pressed="true"]{outline:3px solid #50b8dd!important;outline-offset:0}
#trainer .r64t6Status{padding:10px 13px!important;border-radius:13px!important}
#trainer .trSection .toolbar button,#trainer .trSection button.primary,#trainer .trSection button.secondary{min-height:44px;touch-action:manipulation}
#trainer .trSection .trainerFormGrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))!important}
#trainer .trSection input,#trainer .trSection select,#trainer .trSection textarea{max-width:100%;min-width:0;font-size:16px}
#trainer .trSection .tablewrap{overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
#trainer .trSection .toolbar{flex-wrap:wrap;gap:9px}
#trainer .trSection button{white-space:normal;line-height:1.35}
@media(max-width:380px){#trainer .r64t6Nav{gap:8px!important}#trainer .r64t6NavButton{min-height:87px!important}#trainer .r64t6NavLabel{font-size:12px!important}}

/* Dev19 — competition list tabs, keeping the existing R34 engine intact. */
.r19CompFilters{display:flex;gap:7px;overflow-x:auto;padding:6px 2px 12px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.r19CompFilters button{border:1px solid #cde5fa;border-radius:14px;background:#f1f8ff;color:#20649b;font-weight:850;font-family:inherit;padding:10px 14px;min-height:45px;white-space:nowrap;flex:none;touch-action:manipulation}
.r19CompFilters button[aria-pressed="true"]{background:#1776d3;color:white;border-color:#1776d3}
.r19CompCards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:12px}
.r19CompEmpty{padding:23px 13px;text-align:center;border:1px dashed #bcd8ef;border-radius:18px;color:#54718b;background:#f6fbff}
.r31CompCard button{min-height:48px;touch-action:manipulation}
@media(max-width:480px){.r19CompCards{grid-template-columns:1fr}.r31CompCard{padding:14px!important}.r31Runner .r31Nav button{min-height:46px}}


/* DEV21: trainer dashboard cards have a single, image-led layout. This scoped
   treatment overrides legacy fixed-size image slots without altering routes. */
body[data-safe-r10-role="trainer"] #home #modules.r64HomeGrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important;align-items:stretch!important}
body[data-safe-r10-role="trainer"] #home #modules>.r46GroupTitle{grid-column:1/-1!important;font-size:18px!important;color:#15566f!important;padding:11px 5px 2px!important;margin:6px 0 0!important}
body[data-safe-r10-role="trainer"] #home #modules>.r64ImageCard{
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;
  padding:0!important;gap:0!important;margin:0!important;overflow:hidden!important;
  border-radius:23px!important;border:1.5px solid #bedde9!important;
  background:#fff!important;box-shadow:0 7px 18px rgba(15,83,110,.13)!important;
  aspect-ratio:auto!important;align-items:stretch!important;
}
body[data-safe-r10-role="trainer"] #home #modules>.r64ImageCard .r64CardImage{
  box-sizing:border-box!important;flex:0 0 auto!important;display:block!important;position:relative!important;
  height:auto!important;min-height:0!important;max-height:none!important;width:100%!important;
  aspect-ratio:1.35!important;padding:0!important;margin:0!important;overflow:hidden!important;
  border-radius:20px 20px 0 0!important;background:#e6f4fc!important;
}
body[data-safe-r10-role="trainer"] #home #modules>.r64ImageCard .r64CardImage img{
  display:block!important;width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;
  object-fit:cover!important;object-position:center!important;border-radius:0!important;
  filter:none!important;transform:none!important;
}
body[data-safe-r10-role="trainer"] #home #modules>.r64ImageCard .sa13-card-caption{
  box-sizing:border-box!important;position:relative!important;min-height:78px!important;max-height:none!important;
  flex:0 0 auto!important;margin:0!important;padding:9px 6px 12px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;
  border:0!important;background:linear-gradient(180deg,#fff,#f7fbff)!important;
}
body[data-safe-r10-role="trainer"] #home #modules>.r64ImageCard .sa13-card-caption strong{
  color:#123956!important;font-size:clamp(13.5px,3.9vw,17px)!important;font-weight:950!important;
  line-height:1.48!important;white-space:normal!important;overflow-wrap:break-word!important;
}
body[data-safe-r10-role="trainer"] #home #modules>.r64ImageCard .sa13-card-caption small{
  color:#56718b!important;font-size:11px!important;line-height:1.4!important;min-height:0!important;
}
body[data-safe-r10-role="trainer"] #home #modules>.r64ImageCard:active{transform:scale(.983)!important}
body[data-safe-r10-role="trainer"] #home #modules>.r64ImageCard:focus-visible{outline:3px solid #1688da!important;outline-offset:2px!important}
/* All common trainer forms: clear labels, touch targets and scrolling only inside tables. */
#trainer .trSection :is(button,select,input),#trainer .r64t6NavButton{min-height:44px}
#trainer .trSection :is(input,textarea,select){max-width:100%!important;min-width:0!important;font-size:16px!important}
#trainer .trSection :is(.tablewrap,.table-responsive){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
#trainer .trSection .toolbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
@media(max-width:359px){body[data-safe-r10-role="trainer"] #home #modules.r64HomeGrid{gap:9px!important}body[data-safe-r10-role="trainer"] #home #modules>.r64ImageCard .sa13-card-caption strong{font-size:13px!important}}
