.class-award-open { overflow: hidden; }
.class-award-open .app-shell { display: none; }

.class-award-stage {
  --award-accent: #b84f3d;
  --award-wash: #fff0e8;
  --award-motif: url('/static/character-awards/day.svg');
  position: fixed;
  inset: 0;
  z-index: 900;
  isolation: isolate;
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: clamp(18px, 2.4vw, 46px) clamp(18px, 3.5vw, 68px) 100px;
  color: #164765;
  background: radial-gradient(ellipse at 50% 24%, #fff 0%, #f7fdff 39%, #e2f5fb 100%);
  text-align: center;
}
.class-award-stage[data-award-period="week"] { --award-accent: #087c78; --award-wash: #e5f8f1; --award-motif: url('/static/character-awards/week.svg'); }
.class-award-stage[data-award-period="month"] { --award-accent: #206cba; --award-wash: #e8f3ff; --award-motif: url('/static/character-awards/month.svg'); }
.class-award-stage[data-award-period="semester"] { --award-accent: #91601b; --award-wash: #fff5d9; --award-motif: url('/static/character-awards/semester.svg'); }
.class-award-stage::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 12% auto auto -68px;
  width: clamp(180px, 21vw, 400px);
  height: clamp(210px, 25vw, 470px);
  background: var(--award-motif) center / contain no-repeat;
  opacity: .075;
  transform: rotate(-17deg);
  pointer-events: none;
}
.class-award-stage::after {
  content: '';
  position: fixed;
  z-index: -1;
  inset: auto -10px 0;
  height: clamp(130px, 22vw, 320px);
  background: url('/static/character-awards/ocean.svg') bottom center / cover no-repeat;
  pointer-events: none;
  animation: award-tide 9s ease-in-out infinite alternate;
}
.class-award-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1800px;
  margin: 0 auto;
}
.class-award-top p {
  margin: 0;
  color: #396b83;
  font-size: clamp(16px, 1.4vw, 27px);
  font-weight: 700;
  text-align: left;
}
.classroom-app .class-award-stage #character-award-back {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #acd5e5;
  border-radius: 16px;
  color: #396b83;
  background: #ffffffc9;
  font-size: clamp(14px, 1.05vw, 20px);
  white-space: nowrap;
}
.class-award-stage h1 {
  margin: clamp(18px, 3.1vh, 34px) 0 12px;
  font-size: clamp(34px, 4.3vw, 80px);
  font-weight: 850;
  letter-spacing: .075em;
  line-height: 1.15;
  color: #155a7d;
}
.class-award-stage h1:focus { outline: none; }
.class-award-stage .character-award-view {
  --award-accent: inherit;
  --award-wash: inherit;
  max-width: 1800px;
  margin: 0 auto;
  color: inherit;
}
.class-award-stage .award-identity { margin: 0 0 clamp(18px, 3vh, 32px); }
.class-award-stage .award-honor-name {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: clamp(25px, 2.6vw, 48px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .1em;
}
.class-award-stage .award-honor-name::before,
.class-award-stage .award-honor-name::after {
  content: '';
  width: clamp(24px, 4vw, 70px);
  height: 2px;
  background: currentColor;
  opacity: .28;
}
.class-award-stage .award-honor-note { margin: 9px 0 0; font-size: clamp(14px, 1.15vw, 21px); color: #557b8c; }
.class-award-stage .award-controls {
  justify-content: center;
  align-items: end;
  gap: 10px 24px;
  text-align: left;
}
.class-award-stage .award-controls label,
.class-award-stage .award-period-field > span { color: #53788d; font-size: clamp(12px, .9vw, 16px); }
.class-award-stage .award-period-choices { padding: 4px; gap: 3px; border-radius: 17px; background: #dcedf4; }
.classroom-app .class-award-stage .award-controls button,
.class-award-stage .award-controls input {
  min-height: 44px;
  color: #416d85;
  background: #ffffffcf;
  border: 1px solid #b7dbe8;
  border-radius: 13px;
  padding: 9px 16px;
  font-size: clamp(14px, 1.05vw, 20px);
  transition: background-color .18s, color .18s, transform .18s;
}
.classroom-app .class-award-stage .award-period-choices button { min-height: 40px; border-color: transparent; background: transparent; }
.classroom-app .class-award-stage .award-period-choices button[aria-pressed="true"] {
  background: white;
  color: var(--award-accent);
  font-weight: 800;
  box-shadow: 0 2px 7px #28536a14;
}
.classroom-app .class-award-stage .award-controls button:hover { transform: translateY(-1px); background: white; }
.class-award-stage .award-controls input { color-scheme: light; min-height: 48px; }
.class-award-stage :is(button, input):focus-visible { outline: 3px solid #2c87b3; outline-offset: 3px; }
.class-award-stage .award-status { margin: 14px 0 0; color: #4f7287; font-size: clamp(14px, 1.2vw, 22px); }
.class-award-stage .award-group { border: 0; padding: clamp(32px, 5.8vh, 64px) 0 26px; }
.class-award-stage .award-names { justify-content: center; gap: 26px clamp(14px, 2.3vw, 42px); }
.class-award-stage .award-names li {
  flex: 0 1 calc((100% - 4 * clamp(14px, 2.3vw, 42px)) / 5);
  min-width: min(137px, 100%);
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: clamp(6px, 1.4vh, 16px);
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #164765;
  font-size: clamp(26px, 2.7vw, 52px);
  line-height: 1.25;
  font-weight: 800;
  animation: award-arrive .45s both;
  animation-delay: calc(var(--award-order, 0) * 55ms);
}
.class-award-icon { display: block; width: clamp(96px, 12.5vw, 240px); aspect-ratio: 6 / 7; }
.class-award-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.class-award-stage .award-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: clamp(24px, 4.5vh, 50px) 0 0;
  padding: 0;
  background: transparent;
  color: #55788a;
  font-size: clamp(20px, 1.9vw, 34px);
}
.class-award-stage .award-empty .class-award-icon { width: clamp(88px, 8vw, 140px); opacity: .5; filter: saturate(.55); }
.classroom-app .class-award-stage .award-results .text-button { margin-top: 22px; color: #155a7d; }
@keyframes award-arrive { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes award-tide { from { transform: translateY(0); } to { transform: translateY(6px); } }

@media (max-height: 800px) and (min-width: 900px) {
  .class-award-stage { padding-top: 20px; padding-bottom: 70px; }
  .class-award-stage h1 { margin-top: 16px; font-size: 52px; }
  .class-award-stage .award-identity { margin-bottom: 18px; }
  .class-award-stage .award-honor-name { font-size: 33px; }
  .class-award-stage .award-group { padding-top: 24px; }
  .class-award-stage .class-award-icon { width: 166px; }
}
@media (max-width: 550px) {
  .class-award-stage { padding: 16px 16px 80px; }
  .class-award-top { gap: 8px; }
  .classroom-app .class-award-stage #character-award-back { padding: 8px 10px; font-size: 12px; border-radius: 12px; }
  .class-award-stage h1 { margin-top: 24px; font-size: 34px; letter-spacing: .02em; }
  .class-award-stage .award-honor-name { font-size: 25px; letter-spacing: .04em; gap: 10px; }
  .class-award-stage .award-identity { margin-bottom: 18px; }
  .class-award-stage .award-honor-note { margin-top: 6px; font-size: 13px; }
  .class-award-stage .award-controls { gap: 12px; }
  .class-award-stage .award-period-field { width: 100%; }
  .class-award-stage .award-period-field > span { display: none; }
  .class-award-stage .award-period-choices { justify-content: center; }
  .classroom-app .class-award-stage .award-period-choices button { flex: 1; padding: 8px 10px; }
  .class-award-stage .award-controls label { display: flex; align-items: center; gap: 10px; }
  .class-award-stage .award-controls input { min-height: 44px; }
  .class-award-stage .award-status { font-size: 13px; margin-top: 12px; }
  .class-award-stage .award-group { padding-top: 24px; }
  .class-award-stage .award-names { gap: 20px 10px; }
  .class-award-stage .award-names li { flex-basis: calc((100% - 20px) / 3); min-width: min(100px, 100%); font-size: 22px; gap: 4px; }
  .class-award-stage .class-award-icon { width: 86px; }
  .class-award-stage .award-empty { font-size: 19px; margin-top: 24px; }
  .class-award-stage::before { inset: 17% auto auto -58px; width: 190px; height: 225px; }
  .class-award-stage::after { height: 130px; background-size: auto 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .class-award-stage::after, .class-award-stage .award-names li { animation: none; }
  .class-award-stage .award-controls :is(button, input) { transition: none; }
}
