/* RUINROLL · 24-coach.css — Strategy coach.
   Generated from the consolidated stylesheet stack; rule order inside this file is cascade order. */
#coachResult {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 6px auto;
  padding: 7px 13px;
  max-width: 570px;
  border: 1px solid #85d3f07d;
  border-radius: 12px;
  background: #102d50e4;
  color: #fff7db;
  font-size: clamp(10px,1.1vw,13px);
  text-align: center;
}
#coachResult.hidden {
  display: none !important;
}
#coachResult button {
  border: 1px solid #ffe9b1;
  border-radius: 9px;
  padding: 8px 12px;
  background: linear-gradient(#ffca75,#e78b39);
  color: #122c46;
  font-weight: 950;
  white-space: nowrap;
}
@media (max-width:810px) {
  #coachResult {
    margin: 2px auto;
    padding: 4px 7px;
    font-size: 9px;
  }
  #coachResult button {
    padding: 5px 6px;
  }
}
@media (max-height:420px) {
  #coachResult {
    position: absolute;
    bottom: 10px;
    right: 6px;
    max-width: 260px;
    transform: scale(.82);
    transform-origin: bottom right;
  }
}
#coachPanel {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  place-items: center;
  background: #030a18cc;
  padding: max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
}
#coachPanel.hidden {
  display: none;
}
#coachPanel .coachBox {
  width: min(820px,100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg,#1b2a4d,#0c1631);
  border: 1.5px solid #c9a24a;
  box-shadow: 0 12px 40px #000a;
  color: #f2f6ff;
  font-family: system-ui,sans-serif;
}
#coachPanel header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
#coachPanel .coachAvatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: radial-gradient(circle at 35% 30%,#ffe9a8,#c58a22);
  box-shadow: 0 0 0 3px #3b2a07,0 0 16px #ffcf5a66;
}
#coachPanel h2 {
  margin: 0;
  font: 900 clamp(17px,4vh,24px) system-ui,sans-serif;
  color: #ffd96a;
  letter-spacing: .03em;
}
#coachPanel header p {
  margin: 2px 0 0;
  font: 700 11px system-ui,sans-serif;
  color: #c3d3ef;
}
html body #coachPanel .coachBox {
  width: min(960px,100%);
  max-height: 100%;
  gap: 6px;
  padding: 10px 14px;
}
html body #coachPanel header {
  padding-bottom: 6px;
}
html body #coachPanel .coachStats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
  margin: 0;
}
html body #coachPanel .csChip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 2px 8px;
}
html body #coachPanel .csChip i {
  font-style: normal;
  font-size: clamp(12px,3.2vh,16px);
}
html body #coachPanel .csChip small {
  letter-spacing: .06em;
}
html body #coachPanel #coachList {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  overflow: hidden;
  min-height: 0;
  flex: 1;
}
html body #coachPanel .coachCard {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  text-align: center;
  min-height: 0;
}
html body #coachPanel .coachCard .ccArt {
  font-size: clamp(22px,8vh,44px);
  line-height: 1;
}
html body #coachPanel .coachCard h3 {
  margin: 0;
  letter-spacing: .03em;
}
html body #coachPanel .coachCard p {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
html body #coachPanel .coachCard button {
  justify-self: center;
  min-height: clamp(26px,7vh,36px);
  padding: 0 18px;
  letter-spacing: .05em;
}
html body #coachPanel .coachPager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
html body #coachPanel .coachPager button {
  width: clamp(30px,8vh,40px);
  height: clamp(26px,7vh,34px);
}
html body #coachPanel .coachPager span {
  letter-spacing: .08em;
}
html body #coachPanel .coachDetail {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 12px;
}
html body #coachPanel .coachDetail header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 0 4px;
}
html body #coachPanel .coachDetail header .ccArt {
  font-size: clamp(20px,6vh,32px);
}
html body #coachPanel .coachDetail h3 {
  margin: 0;
}
html body #coachPanel .coachDetail ul {
  margin: 4px 0 0;
  padding-inline-start: 18px;
  display: grid;
  gap: 4px;
}
html body #coachPanel .hidden {
  display: none !important;
}
@media (max-height:400px) {
  html body #coachPanel .coachBox {
    padding: 6px 10px;
    gap: 4px;
  }
  html body #coachPanel header {
    gap: 8px;
  }
  html body #coachPanel .coachAvatar {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  html body #coachPanel header p {
    display: none;
  }
  html body #coachPanel .coachStats .csChip {
    min-height: 24px;
  }
}
html body #coachPanel .csChip img {
  width: clamp(16px,4.6vh,24px);
  height: clamp(16px,4.6vh,24px);
  object-fit: contain;
}
html body #coachPanel .coachCard .ccArt img {
  width: auto;
  object-fit: contain;
}
html body #coachPanel .coachDetail header .ccArt img {
  height: clamp(34px,10vh,56px);
  width: auto;
}
html body #coachPanel .coachCard .ccArt img {
  height: clamp(52px,19vh,124px);
}
html body #coachPanel .coachCard {
  gap: 2px;
  padding: 6px 10px;
}
html body#rr-app.rr-ui .coachCard h3 {
  font-size: clamp(12px,2.5vh,22px) !important;
}
html body#rr-app.rr-ui .coachCard p {
  font-size: clamp(10px,2vh,17px) !important;
}
html body#rr-app.rr-ui #coachPanel .coachBox {
  width: min(1240px,94vw) !important;
}
#rrCoach {
  position: fixed;
  z-index: 60;
  left: 50%;
  top: calc(env(safe-area-inset-top) + clamp(112px,31vh,150px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(440px,70vw);
  padding: 5px 8px 5px 6px;
  border-radius: 14px;
  background: rgba(20,8,52,.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(200,170,255,.35);
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
  pointer-events: none;
  font-family: var(--mc-display),system-ui,sans-serif;
  color: #fff;
}
#rrCoach.hidden {
  display: none;
}
#rrCoach.in {
  animation: rrCoachIn .28s cubic-bezier(.2,1.4,.4,1);
}
#rrCoach.out {
  opacity: 0;
  transform: translate(-50%,-6px);
  transition: opacity .25s,transform .25s;
}
#rrCoach.ok {
  box-shadow: 0 0 0 2px #7dffa8,0 0 18px #3fd16acc;
}
#rrCoach img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: none;
}
#rrCoach div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#rrCoach b {
  font-size: clamp(13px,3.6vh,17px);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 0 #12053a;
}
#rrCoach.lesson b {
  color: #ffe27a;
}
#rrCoach small {
  font: 800 11px/1.1 var(--mc-text),system-ui,sans-serif;
  color: #cfe8ff;
}
#rrCoach .obSkip {
  display: none;
  pointer-events: auto;
  margin-inline-start: 6px;
  padding: 4px 9px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
  color: #e9dcff;
  font: 800 10px/1 var(--mc-text),system-ui,sans-serif;
  letter-spacing: .04em;
}
body.obOn #rrCoach .obSkip {
  display: block;
}
html body#rr-app :is(#coachPanel .coachBox,#mapPicker .arenaWindow,#stagePanel .journeyShell,#homeSettingsPanel,#missionsPanel .msBox,#loadoutPanel .loadoutInner) {
  position: relative;
  overflow: hidden;
}
html body#rr-app :is(#coachPanel .coachBox,#mapPicker .arenaWindow,#stagePanel .journeyShell,#homeSettingsPanel,#missionsPanel .msBox,#loadoutPanel .loadoutInner)>* {
  position: relative;
  z-index: 1;
}
html body#rr-app :is(#coachPanel,#mapPicker,#missionsPanel,#bv20Modal,#rrInboxPanel) {
  background: #07021ad9 !important;
  backdrop-filter: blur(3px);
}
html body#rr-app :is(#coachPanel h2,#mapPicker .arenaHeader h2,#adventurePanel .advTitle h2,#stagePanel .journeyBrand span,#homeSettingsPanel .sheetHead h2,#pausePanel h2,.bv20Box h2,#rrInboxPanel .ibBox header b,#missionsPanel h2,#loadoutPanel .lhTitle h2,#langFirst h1) {
  font-family: var(--u-disp) !important;
  font-weight: 400 !important;
  letter-spacing: .03em;
  background: none !important;
  -webkit-text-fill-color: #ffd34d;
  color: #ffd34d !important;
  text-shadow: 0 3px 0 #5a2a00,0 0 12px #ffc93a66 !important;
}
html body#rr-app :is(#coachPanel header p,#adventurePanel .advTitle p,#homeSettingsPanel>p,.bv20Box>p,#loadoutPanel .lhNote) {
  color: var(--u-txt) !important;
}
html body#rr-app :is(#coachPanel .coachCard button,#duelSetup .dsRow button,#adventurePanel .advSub button,#missionsTabs button,#langFirst .lfGrid button) {
  font-family: var(--u-disp) !important;
  font-weight: 400 !important;
}
html body#rr-app :is(#coachPanel .coachCard h3,#mapPicker .arenaCard span,#mapPicker .arenaDetail h3,#adventurePanel .advCard .advBody b,#stagePanel .journeyDetails h3,#stagePanel .islandName b,.bv20Card b,#rrInboxPanel .ibList article b,#loadoutPanel .boostCard .bcText b,#loadoutPanel #loadoutBallName,#loadoutPanel #loadoutArena,#homeSettingsPanel .setBody h3,#pausePanel .audioHeader) {
  font-family: var(--u-disp) !important;
  font-weight: 400 !important;
  color: #fff !important;
  text-shadow: 0 2px 0 #12053a;
}
html body#rr-app :is(#coachPanel .coachCard p,#adventurePanel .advCard .advBody small,#stagePanel .islandName small,#stagePanel .journeyDetails small,.bv20Card small,#rrInboxPanel .ibList article span,#loadoutPanel .boostCard .bcText small,#homeSettingsPanel .setSlider,#homeSettingsPanel .setRow,#pausePanel .audioMixer label,#pausePanel #audioStatus) {
  color: var(--u-txt) !important;
}
html body#rr-app #coachPanel .csChip b {
  color: #fff;
  font-family: var(--u-disp);
}
html body#rr-app #coachPanel .csChip small {
  color: var(--u-txt);
}
html body#rr-app #coachPanel .coachCard .ccArt img {
  filter: drop-shadow(0 6px 8px #000a) drop-shadow(0 0 10px #c45bff66);
}
html body#rr-app #coachPanel .coachPager button {
  background: var(--u-blue) !important;
  border: 2px solid #a77bff !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 0 #12053a !important;
}
html body#rr-app #coachPanel .coachPager span {
  color: #ffd34d;
  font-family: var(--u-disp);
}
html body#rr-app #coachPanel .coachDetail li {
  color: #eee4ff;
}
html body#rr-app #coachPanel .coachAvatar {
  background: radial-gradient(circle at 35% 30%,#ffe9a8,#c58a22);
  box-shadow: 0 0 0 3px #3b2a07,0 0 16px #ffcf5a66;
}
#coachResult.rrLabCall {
  border-color: #ffd65a !important;
  box-shadow: 0 0 0 2px #ffd65a66,0 0 18px #ffb34766 !important;
}
#coachResult.rrLabCall #coachUpgrade {
  animation: rrLabPulse 1.1s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion:reduce) {
  #coachResult.rrLabCall #coachUpgrade {
    animation: none;
  }
}
