:root {
  --ink: #243047;
  --muted: #667085;
  --paper: #fffaf0;
  --line: #dbe3ec;
  --sky: #55b9d2;
  --rose: #e8657a;
  --leaf: #63b882;
  --gold: #f2bd49;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(85,185,210,.18), rgba(242,189,73,.22)),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-test-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 3px solid #35acd2;
  background: #050505;
  color: #fff;
  padding: 10px max(14px, calc((100% - 1240px) / 2));
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

.admin-test-bar .apple-toggle + .apple-toggle {
  margin-left: 6px;
}

.admin-test-bar div {
  display: grid;
  gap: 2px;
}

.admin-test-bar strong {
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-test-bar span {
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 800;
}

.apple-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.class-flow-toast {
  position: fixed;
  top: 74px;
  left: 50%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(560px, calc(100vw - 28px));
  border: 3px solid #35acd2;
  border-radius: 16px;
  padding: 13px 18px;
  background: #050505;
  color: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
  transform: translateX(-50%);
  animation: flowToastIn 260ms ease-out;
}

.class-flow-toast > div {
  display: grid;
  gap: 2px;
}

.class-flow-toast strong {
  font-size: 1rem;
  font-weight: 950;
}

.class-flow-toast span {
  color: rgba(255, 255, 255, .82);
  font-size: .84rem;
  font-weight: 800;
}

.class-flow-toast.is-fresh {
  border-color: #ffcc00;
}

.class-flow-toast button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: #35acd2;
  color: #fff;
  box-shadow: 0 4px 0 rgba(255, 255, 255, .16);
  font-size: .85rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.class-flow-toast.is-fresh button {
  background: #ffcc00;
  color: #243047;
}

.class-flow-toast.is-leaving {
  animation: flowToastOut 320ms ease-in forwards;
}

@keyframes flowToastIn {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes flowToastOut {
  to {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
}

.apple-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.apple-toggle span {
  position: relative;
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #4b5563;
  transition: background .18s ease;
}

.apple-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform .18s ease;
}

.apple-toggle input:checked + span {
  background: #34c759;
}

.apple-toggle input:checked + span::after {
  transform: translateX(20px);
}

.apple-toggle em {
  color: rgba(255, 255, 255, .88);
  font-style: normal;
}

.play-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 0 46px;
}

.play-hero,
.play-access,
.quest-stage,
.reward-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 18px rgba(35,48,71,.1);
}

.play-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 14px 18px;
}

.play-hero img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.kicker {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

p {
  color: var(--muted);
}

.play-access {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 180px auto auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0;
  padding: 16px;
}

.trial-dash-board {
  margin: 18px 0;
}

.oam-class-header,
.oam-active-row,
.oam-student-grid,
.oam-not-here-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 34px rgba(35,48,71,.1);
}

.oam-class-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 15px 0;
  padding: 14px;
  font-size: 16px;
}

.oam-class-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.oam-flow-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.oam-flow-summary article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.oam-flow-summary .flow-class-card {
  border-color: #ffcc00;
  background: #fffbe8;
}

.oam-class-history {
  margin: 18px 0 0;
}

.class-session-drawer {
  border: 2px solid #d7e2ec;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.class-session-drawer > summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #243047;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.class-session-drawer > summary span,
.class-session-drawer > summary small {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.class-session-drawer > summary small {
  color: #667085;
  font-size: 11px;
}

.class-history-title {
  margin: 12px 0 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.class-history-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.class-history-list article {
  flex: 0 0 210px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 9px;
  background: #fff;
}

.class-history-list strong,
.class-history-list span {
  display: block;
}

.class-history-list strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 950;
}

.class-history-list span {
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.class-history-list p {
  margin: 6px 0 0;
  color: #1d2327;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.class-receipt-batch {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  border: 2px solid #d7e2ec;
  border-radius: 10px;
  padding: 12px;
  background: #f7fbff;
}

.class-receipt-batch header {
  display: flex;
  gap: 10px;
  align-items: center;
}

.class-receipt-batch header > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.class-receipt-batch strong,
.class-receipt-batch small,
.class-receipt-batch p {
  display: block;
  margin: 0;
}

.class-receipt-batch header strong {
  color: #243047;
  font-size: 14px;
  font-weight: 950;
}

.class-receipt-batch header small,
.class-receipt-batch p {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.class-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.class-receipt-actions button {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #35b7d4;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(36, 48, 71, .16);
}

.class-receipt-actions button:first-child {
  background: #31bf59;
}

.class-receipt-student-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.class-receipt-student-list article {
  border: 2px solid #dbe9f0;
  border-radius: 9px;
  padding: 10px;
  background: #fff;
}

.class-receipt-student-list strong,
.class-receipt-student-list span {
  display: block;
}

.class-receipt-student-list strong {
  color: #243047;
  font-size: 13px;
  font-weight: 950;
}

.class-receipt-student-list span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 6px;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
}

.class-receipt-student-list i {
  color: #0f6d83;
}

.class-receipt-market-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.class-receipt-market-list article {
  border: 2px solid #d7e2ec;
  border-radius: 9px;
  padding: 10px;
  background: #fff;
}

.class-receipt-market-list article.is-ready {
  border-color: #7ddc9e;
  background: #ebfff1;
}

.class-receipt-market-list article.is-prep {
  border-color: #ffd277;
  background: #fff8df;
}

.class-receipt-market-list article.is-waiting {
  border-color: #d7e2ec;
  background: #f9fafb;
}

.class-receipt-market-list strong {
  color: #243047;
  font-size: 13px;
  font-weight: 950;
}

.class-receipt-market-list span,
.class-receipt-market-list small {
  color: #667085;
  font-size: 11px;
  font-weight: 850;
}

.oam-flow-summary strong,
.oam-flow-summary span {
  display: block;
}

.oam-flow-summary strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.oam-flow-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.oam-class-header-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.oam-class-teacher-img {
  width: 70px;
  height: 70px;
  border: 3px solid #de84b4;
  border-radius: 50%;
  object-fit: cover;
}

.oam-class-title {
  font-size: 20px;
  font-weight: 800;
}

.oam-class-meta,
.oam-class-teacher {
  font-size: 14px;
  opacity: .85;
}

.class-header-stats,
.credit-badges,
.session-status,
.actions,
.gateway-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.class-header-controls {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 0;
}

.class-header-stats {
  justify-content: flex-end;
}

.finish-class-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid #e7ad00;
  border-radius: 7px;
  padding: 10px 16px;
  background: #ffc928;
  color: #202b3c;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .14);
  cursor: pointer;
}

.finish-class-button:disabled {
  cursor: wait;
  opacity: .6;
}

.count-badge,
.session-pill,
.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.count-badge {
  background: #eef7fb;
  color: #246378;
}

.count-badge strong {
  font-size: 1rem;
}

.oam-row-title {
  margin: 18px 0 8px;
  font-size: 1.1rem;
}

.oam-active-row {
  min-height: 180px;
  padding: 12px;
}

.oam-student-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  border: 2px dashed #ccc;
  background: #f7f7f7;
}

.oam-not-here-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 96px;
  padding: 12px;
  border: 2px dashed #e0a5b3;
  background: #fff6f8;
}

.oam-card {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 250px;
  gap: 10px;
  margin: 10px;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, opacity .22s ease;
}

.oam-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(35,48,71,.14);
}

.oam-card.not-arrived .visual,
.oam-card.not-arrived .name,
.oam-card.not-arrived .rewards,
.oam-card.not-arrived .points,
.oam-card.not-arrived p {
  filter: grayscale(.7);
  opacity: .72;
}

.oam-card.not-arrived .actions {
  filter: none;
  opacity: 1;
}

.oam-card.arrived-card .visual,
.oam-card.arrived-card .name,
.oam-card.arrived-card .rewards,
.oam-card.arrived-card .points,
.oam-card.arrived-card p {
  filter: none;
  opacity: 1;
}

.oam-card.state-ready {
  border-color: #3ba55d;
}

.oam-card.state-arrived {
  border-color: #55b9d2;
  background: #f2fbff;
}

.oam-card.state-not-here {
  opacity: .62;
}

.oam-card.not-here-card {
  border-color: #d88ba0;
  background: #fff6f8;
}

.oam-card.not-here-card .ready {
  display: inline-flex !important;
}

.oam-card.state-checked {
  border-color: #2eb872;
  background: #f2fff6;
}

.oam-card.state-support {
  box-shadow: 0 0 0 3px rgba(140,111,240,.18), 0 14px 26px rgba(35,48,71,.12);
}

.oam-card.state-reply {
  border-color: #38bdf8;
}

.oam-card.state-low-credit {
  box-shadow: 0 0 0 3px rgba(251,146,60,.18), 0 14px 26px rgba(35,48,71,.12);
}

.oam-card.active-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: stretch;
  width: 92%;
  max-width: 1160px;
  margin-left: 41px;
  padding: 18px;
  border: 3px solid #ffcc00;
  outline: 4px solid #eef40f;
  transform: scale(1.02);
  box-shadow: 0 0 18px rgba(222,132,180,.75);
  animation: oamPromoteCard 280ms ease, borderPulse 2s infinite ease-in-out;
}

.oam-card.active-turn {
  z-index: 10;
  overflow-x: hidden;
  overflow-y: visible;
}

.visual {
  position: relative;
  height: 200px;
  min-height: 200px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef4f7;
}

.oam-card.active-card .visual {
  height: 280px;
  min-height: 280px;
}

.main-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.placeholder-img {
  display: grid;
  place-items: center;
  color: var(--rose);
  font-size: 1.4rem;
  font-weight: 950;
}

.percent-ring {
  position: absolute;
  z-index: 3;
  right: 10px;
  top: 10px;
  border: 2px solid var(--oam-ring, #de84b4);
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: #000;
  box-shadow: 0 0 18px var(--oam-glow, rgba(222,132,180,.55));
  font-weight: 700;
}

.controls {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: scale(.9);
  transition: all .25s ease;
}

.oam-card.active-card .controls,
.oam-active-row .oam-card .controls {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0;
  background: #111;
}

.card-body p {
  margin-bottom: 10px;
}

.name {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  font-size: 1.24rem;
  font-weight: 950;
}

.oam-card.active-card .name {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

.trial-pill {
  background: #fff4cc;
  color: #8a5a00;
}

.captured-pill {
  background: #e7f8ec;
  color: #137333;
}

.invoice-pill {
  background: #f2f4f7;
  color: #344054;
}

.not-here-pill {
  background: #f5e8ec;
  color: #9f3048;
}

.support-pill {
  background: #efeafd;
  color: #4e36a3;
}

.credit-warning-pill {
  background: #fff0df;
  color: #9a3412;
}

.reply-pill {
  background: #e0f2fe;
  color: #075985;
}

.flow-note {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #137333;
  background: #e7f8ec;
  font-size: .78rem;
  font-weight: 900;
}

.class-credit {
  border: 1px solid #b7e4c7;
  background: #e7f8ec;
  color: #137333;
}

.actions button,
.gateway-actions button {
  min-height: 38px;
}

.card-data-post {
  display: block;
  overflow: visible;
}

.oam-card.active-card .card-data-post {
  display: inline-flex;
  gap: 42px;
}

.oam-card.active-card .card-body {
  min-width: min(430px, 100%);
}

.actions-section {
  border: 2px solid silver;
  border-radius: 12px;
  padding: 0 18px 12px;
  font-size: 18px;
}

.data-headers {
  margin: 12px 0 2px;
  color: #1d2327;
  font-size: 24px;
  font-weight: 500;
}

.data-titles {
  width: 100%;
  margin: 12px 0 7px;
  color: #1d2327;
  font-size: 18px;
  font-weight: 500;
}

.game-hr {
  width: 69px;
  height: 5px;
  margin: 8px 0;
  border: 0;
  border-radius: 5px;
}

.red {
  background: red;
}

.points {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
  color: #475467;
}

.point-adjustment-pill {
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  border-radius: 999px;
  padding: 3px 7px;
  background: #ffe4e6;
  color: #c51622;
  font-size: .78em;
  font-weight: 950;
}

.active-timer {
  display: inline-block;
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 800;
}

.timer-bonus {
  margin-left: 8px;
  color: #1f8f3a;
}

.hideOutside {
  display: none;
}

.oam-card.active-card .hideOutside {
  display: block;
}

.game-stats {
  display: none;
}

.oam-card.active-card .game-stats {
  display: block;
  min-width: 250px;
  font-size: 18px;
}

.character-class-panel,
.art-treasures-panel {
  margin: 10px 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  line-height: 1.9;
  font-weight: 800;
}

.oam-card:not(.active-card) .actions-section,
.oam-card:not(.active-card) .game-stats {
  display: none;
}

.badge-area {
  margin-top: 8px;
}

.trial-credit {
  border: 1px solid #ffd6e8;
  background: #fff1f7;
  color: #b42363;
}

.makeup-credit {
  border: 1px solid #ffe29a;
  background: #fff8df;
  color: #8a5a00;
}

.oam-big-flip,
.oam-oamiemon-img-wrap,
.oam-flip-side img {
  cursor: pointer;
}

.oam-big-flip {
  position: absolute;
  inset: 0;
  z-index: 1;
  perspective: 900px;
}

.oam-big-flip-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s ease;
}

.oam-big-flip.is-flipped .oam-big-flip-inner {
  transform: rotateY(180deg);
}

.oam-flip-side {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.oam-flip-side img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oam-flip-front {
  transform: rotateY(0deg);
}

.oam-flip-back {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg);
  background: #fff;
}

.oam-oamiemon-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.oam-oamiemon-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.percent-fill,
.profile-fill,
.oamiemon-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
  z-index: 4;
  transition: height .45s ease;
}

.profile-fill {
  background: rgba(169, 255, 0, .25);
}

.oamiemon-fill {
  background: var(--oam-fill, rgba(222,132,180,.35));
}

.oam-big-flip .oam-big-flip-inner,
.oam-big-flip.is-flipped .oam-big-flip-inner,
.oam-big-flip.is-kingdom .oam-big-flip-inner {
  transform: none !important;
}

.oam-big-flip .oam-flip-side {
  opacity: 0;
  transform: none;
  transition: opacity .45s ease, filter .45s ease;
}

.oam-big-flip[data-flip-face="0"] .oam-flip-front,
.oam-big-flip[data-flip-face="1"] .oam-flip-back,
.oam-big-flip[data-flip-face="2"] .oam-flip-kingdom {
  opacity: 1;
}

.oam-flip-kingdom {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.oam-flip-kingdom img {
  object-fit: cover;
}

.kingdom-fill {
  background: rgba(48, 191, 90, .28);
}

.kingdom-progress-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 5;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(36, 48, 71, .86);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.notifications,
.notice-list {
  overflow: visible;
}

.notifications {
  margin-top: 14px;
}

.notice-list {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  padding-bottom: 20px;
}

.project-update-notice {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  border: 0;
  border-radius: 18px;
  padding: 14px;
  background: #95ccff;
  color: #fff;
  font-weight: 900;
}

.market-pickup-notice {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  padding: 12px;
  background: #fff4cc;
  color: #243047;
  font-weight: 950;
}

.market-pickup-notice.is-ready {
  background: #dfffe9;
  border-color: #31bf59;
}

.market-pickup-notice.is-prep {
  background: #fff4cc;
  border-color: #f5c542;
}

.market-pickup-notice .project-update-title {
  margin: 0;
  color: #0f6d83;
}

.market-pickup-notice strong,
.market-pickup-notice span {
  display: block;
  color: #243047;
}

.market-pickup-notice span {
  font-size: .84rem;
}

.project-update-notice strong {
  font-size: 15px;
}

.project-update-notice span {
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 800;
}

.latest-update-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: start;
  margin-top: 8px;
  border: 2px solid #fff;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  color: #1d2327;
  box-shadow: 0 8px 18px rgba(35,48,71,.12);
}

.latest-update-card strong,
.latest-update-card span {
  display: block;
}

.latest-update-card strong {
  color: #3b82f6;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.latest-update-card span {
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.latest-update-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: #1d2327;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.latest-update-card img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.empty-latest-update {
  box-shadow: none;
  opacity: .82;
}

.notice-btn {
  position: relative;
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  color: #fff;
  overflow: hidden;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.notice-btn::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px dashed rgba(255,255,255,.9);
  border-radius: 12px;
  pointer-events: none;
}

.notice-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.project-photo-update-btn {
  background: #38bdf8;
}

.character-levelup-btn {
  background: #f97316;
}

.teacher-note-update-btn {
  background: #8b5cf6;
}

.reward-bounty-box {
  margin-top: 10px;
  border: 3px solid #fff;
  border-radius: 16px;
  padding: 12px;
  background: #d9d7d7;
  color: royalblue;
  font-size: 18px;
  text-align: center;
}

.reward-bounty-title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.reward-bounty-stage {
  margin: -2px 0 8px;
  color: #414b5f;
  font-size: 12px;
  font-weight: 950;
}

.reward-bounty-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.reward-bounty-schedule {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.reward-bounty-schedule > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 2px solid rgba(65, 75, 95, .12);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, .72);
  color: #414b5f;
  font-size: 12px;
  font-weight: 900;
}

.reward-bounty-schedule > span.is-next {
  border-color: rgba(65, 105, 225, .45);
  color: royalblue;
}

.reward-bounty-schedule .reward-bounty-item {
  min-width: 0;
  padding: 2px 5px;
}

.reward-bounty-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  font-size: 22px;
  font-weight: 900;
}

.project-update-notice.notice-new-glow {
  animation: oamNoticePulseGlow 1.1s ease-in-out 4;
  border-color: #de84b4;
  box-shadow:
    0 0 0 4px rgba(222,132,180,.25),
    0 0 24px rgba(222,132,180,.9);
}

.empty-board {
  margin: 0;
  padding: 18px;
  font-weight: 900;
}

.smoke-panel {
  grid-template-columns: 1fr auto 1fr;
}

.smoke-results {
  display: grid;
  gap: 14px;
}

.play-access form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: #40516a;
  font-weight: 850;
}

input,
select {
  min-height: 46px;
  border: 1px solid #cdd6e1;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%),
    linear-gradient(to right, #edf2f7, #edf2f7);
  background-position:
    calc(100% - 24px) 52%,
    calc(100% - 17px) 52%,
    calc(100% - 42px) 50%;
  background-size:
    7px 7px,
    7px 7px,
    1px 24px;
  background-repeat: no-repeat;
  cursor: pointer;
}

select:hover {
  border-color: #9fb0c2;
  background-color: #fbfdff;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: var(--sky);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  background: #9aa7b5;
  cursor: not-allowed;
}

.quest-stage {
  overflow: hidden;
}

.quest-scene {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(242,189,73,.28), transparent 34%),
    linear-gradient(135deg, rgba(99,184,130,.13), rgba(85,185,210,.12));
}

.quest-avatar {
  display: grid;
  gap: 14px;
  place-items: center;
  min-height: 310px;
}

.quest-avatar img {
  width: min(260px, 80%);
  filter: drop-shadow(0 18px 22px rgba(35,48,71,.2));
}

.legacy-level-card {
  width: min(280px, 92%);
  border: 1px solid rgba(36,48,71,.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.88);
  text-align: center;
  box-shadow: 0 12px 24px rgba(35,48,71,.1);
}

.legacy-level-card p,
.legacy-level-card strong {
  display: block;
  margin: 0;
}

.legacy-level-card p {
  color: var(--rose);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legacy-level-card strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.quest-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
}

.quest-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

dt {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.quest-meter {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.quest-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), var(--gold));
  transition: width .55s ease;
}

.project-updates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.next-bounty {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  border: 1px solid rgba(242,189,73,.55);
  border-radius: 8px;
  padding: 12px;
  background: #fff8df;
}

.check-in-guide {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 2px solid #bae6fd;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #f0f9ff, #fff);
}

.check-in-guide div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.check-in-guide strong,
.check-in-guide span {
  display: block;
}

.check-in-guide strong {
  color: #075985;
  font-weight: 950;
}

.check-in-guide span {
  color: #667085;
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.check-in-guide ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-in-guide li {
  position: relative;
  border-radius: 8px;
  padding: 8px 10px 8px 34px;
  background: #fff;
  color: #344054;
  font-size: .88rem;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px #dbe3ec;
}

.check-in-guide li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #94a3b8;
  border-radius: 999px;
  transform: translateY(-50%);
}

.check-in-guide li.is-done {
  color: #166534;
  background: #f0fdf4;
}

.check-in-guide li.is-done::before {
  border-color: #22c55e;
  background: #22c55e;
  box-shadow: inset 0 0 0 3px #fff;
}

.battle-flow-panel {
  display: grid;
  gap: 10px;
  border: 2px solid #fecdd3;
  border-radius: 8px;
  background: #fff7f8;
  padding: 10px;
}

.battle-flow-panel > header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.battle-flow-panel > header img,
.battle-flow-fallback {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid #fb7185;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.battle-flow-fallback {
  color: #be123c;
  font-size: 20px;
}

.battle-flow-panel > header strong,
.battle-flow-panel > header span {
  display: block;
}

.battle-flow-panel > header strong {
  color: #9f1239;
  font-size: 16px;
  font-weight: 950;
}

.battle-flow-panel > header span {
  color: #667085;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.battle-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.battle-flow-task {
  display: grid;
  gap: 7px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.battle-flow-task header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.battle-flow-task header strong {
  color: #243047;
  font-size: 13px;
  font-weight: 950;
}

.battle-flow-task header span {
  border-radius: 999px;
  background: #ffe4ec;
  color: #be185d;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.battle-flow-task p {
  margin: 0;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.battle-flow-dice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.battle-flow-dice span {
  border-radius: 8px;
  background: #f8fafc;
  padding: 7px;
  color: #344054;
  font-size: 11px;
  font-weight: 950;
  text-transform: none;
}

.battle-flow-dice i {
  color: #0ea5e9;
}

.battle-flow-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}

.battle-flow-rules span {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #fecdd3;
  color: #9f1239;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  padding: 8px;
}

.battle-flow-rules i {
  color: #0ea5e9;
}

.battle-manual-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.battle-manual-row label {
  color: #667085;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.battle-manual-row input {
  width: 100%;
  min-height: 38px;
  margin-top: 4px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  padding: 8px 10px;
  color: #243047;
  font: inherit;
  font-weight: 900;
}

.battle-manual-row button {
  min-height: 38px;
  border-radius: 8px;
  background: #ff2a32;
}

.battle-flow-note {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.next-bounty strong,
.next-bounty span {
  display: block;
}

.next-bounty strong {
  color: #8a5a00;
}

.next-bounty > span {
  color: var(--muted);
  font-weight: 900;
}

.next-bounty div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.next-bounty div span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 950;
}

.project-updates img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #eef4f7;
}

.gateway-actions {
  margin-top: 14px;
}

.quest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 18px;
}

.toggle-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 44px;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
}

#playStatusText {
  margin: 0;
  font-weight: 900;
}

#playStatusText[data-type="ok"] {
  color: #2f8b55;
}

#playStatusText[data-type="error"] {
  color: var(--rose);
}

.oam-class-header-card.is-waiting {
  display: flex;
  align-items: center;
  gap: 14px;
}

.play-spinner {
  display: inline-block;
  width: 54px;
  height: 54px;
  border: 6px solid #e8f8ff;
  border-top-color: #32b8d8;
  border-right-color: #ff2733;
  border-radius: 999px;
  animation: playSpin 780ms linear infinite;
}

.play-ready-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 42px;
  border: 3px solid rgba(84, 184, 208, .35);
  border-radius: 8px;
  background: #e8f8ff;
  color: #0f7f97;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.choose-class-empty {
  display: grid;
  place-items: center;
  min-height: 170px;
  width: 100%;
  border: 2px dashed rgba(84, 184, 208, .35);
  border-radius: 8px;
  background: #f7fcff;
  color: #526070;
  font-size: 1.05rem;
}

@keyframes playSpin {
  to {
    transform: rotate(360deg);
  }
}

.reward-panel {
  position: relative;
  margin: 0 18px 18px;
  padding: 22px;
  overflow: hidden;
  background: #fff;
}

.reward-panel h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.reward-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.reward-burst span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--gold);
  animation: pop 900ms ease both;
}

.reward-burst span:nth-child(1) { left: 12%; top: 28%; }
.reward-burst span:nth-child(2) { left: 26%; top: 68%; background: var(--sky); animation-delay: 80ms; }
.reward-burst span:nth-child(3) { left: 72%; top: 22%; background: var(--rose); animation-delay: 140ms; }
.reward-burst span:nth-child(4) { left: 82%; top: 66%; background: var(--leaf); animation-delay: 220ms; }
.reward-burst span:nth-child(5) { left: 48%; top: 12%; animation-delay: 300ms; }

.oamiemon-stage-pulse {
  animation: activePulse 1.6s ease 2;
}

.oam-oamiemon-info-modal,
.oam-photo-booth,
.closed-shop-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20,29,45,.72);
}

.oam-oamiemon-info-modal[hidden],
.oam-photo-booth[hidden],
.closed-shop-modal[hidden] {
  display: none;
}

.oam-oamiemon-info-card,
.oam-photo-booth-card,
.closed-shop-card {
  position: relative;
  width: min(1040px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  padding: 24px;
}

.closed-shop-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  width: min(640px, 94vw);
  border: 4px solid #ffd7e9;
  background: #fff;
}

.closed-shop-card > img {
  width: clamp(132px, 24vw, 190px);
  height: clamp(132px, 24vw, 190px);
  border: 6px solid #fff;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 42%;
  box-shadow: 0 16px 30px rgba(35, 48, 71, .18);
}

.closed-shop-card h2 {
  margin: 2px 0 8px;
  color: #243047;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: .98;
}

.closed-shop-card p:last-child {
  margin: 0;
  color: #667085;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
}

.closed-shop-modal {
  z-index: 10000020;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0;
  background: #202b3d;
}

.oam-info-header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding-right: 42px;
}

.oam-info-header img {
  width: 140px;
  height: 140px;
  border: 4px solid #de84b4;
  border-radius: 24px;
  background: #fff4fb;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(35,48,71,.18));
}

.oam-stage-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.oam-stage-card,
.gateway-card {
  position: relative;
  border: 2px solid #eee;
  border-radius: 18px;
  padding: 12px;
  background: #fff;
  text-align: center;
  font-weight: 900;
}

.oam-stage-card.current {
  border-color: #de84b4;
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(222,132,180,.18), 0 0 26px rgba(222,132,180,.45);
}

.oam-stage-card.locked,
.gateway-card.locked {
  filter: grayscale(.85);
  opacity: .58;
}

.oam-stage-card.current.locked {
  filter: none;
  opacity: 1;
}

.stage-lock-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 5px solid #fff;
  border-radius: 999px;
  background: #243047;
  color: #fff;
  font-size: 1.85rem;
  box-shadow: 0 7px 18px rgba(35, 48, 71, .28);
  pointer-events: none;
}

.oam-stage-card img {
  width: 100%;
  aspect-ratio: 1;
  max-height: 180px;
  object-fit: contain;
}

.oam-stage-card strong,
.oam-stage-card span {
  display: block;
}

.oam-stage-card span {
  color: var(--rose);
  font-weight: 950;
}

summary {
  cursor: pointer;
  font-weight: 950;
}

.oam-info-section-drawer {
  margin-top: 28px;
}

.oam-info-section-drawer > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 15px;
  background: #eef7fb;
  color: #0f6d83;
  font-size: 1.05rem;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .08);
}

.kingdom-shop-drawer {
  margin-top: 34px;
}

.bad-guy-drawer > summary {
  margin-bottom: 14px;
  background: #fff4e8;
  color: #9a4b10;
}

.kingdom-shop-drawer > summary {
  margin-bottom: 14px;
  background: #f4f9ee;
  color: #477018;
}

.oamiemon-map {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.gateway-branch h3 {
  margin-bottom: 8px;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.gateway-grid .gateway-card.is-wide {
  justify-self: center;
  width: min(620px, 100%);
}

.gateway-card h4 {
  margin: 6px 0;
}

.gateway-card strong {
  color: var(--leaf);
  font-size: .75rem;
  text-transform: uppercase;
}

.gateway-card.locked strong {
  color: var(--muted);
}

.current-level-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: #ff2733;
  color: #fff;
  font-size: .72rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 5px 0 rgba(35, 48, 71, .16);
}

.gateway-card.is-wide .current-level-badge {
  top: 14px;
  right: 14px;
}

.oam-photo-student-header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-right: 42px;
}

.oam-photo-student-header img {
  width: 72px;
  height: 72px;
  border: 3px solid var(--gold);
  border-radius: 999px;
  object-fit: cover;
}

.oam-photo-stage {
  margin-top: 14px;
}

#oamPhotoVideo,
#oamPhotoCanvas {
  width: 100%;
  max-height: 68vh;
  border-radius: 8px;
  background: #111827;
  object-fit: cover;
}

.oam-photo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

@keyframes activePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242,189,73,.72);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(242,189,73,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242,189,73,0);
  }
}

@keyframes oamPromoteCard {
  from {
    transform: scale(.96) translateY(12px);
    opacity: .4;
  }
  to {
    transform: scale(1.02) translateY(0);
    opacity: 1;
  }
}

@keyframes borderPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 204, 0, .7);
  }
  70% {
    box-shadow: 0 0 0 36px rgba(255, 204, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
  }
}

@keyframes oamNoticePulseGlow {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(222,132,180,0),
      0 0 8px rgba(222,132,180,.35);
  }
  50% {
    transform: scale(1.035);
    box-shadow:
      0 0 0 6px rgba(222,132,180,.25),
      0 0 30px rgba(222,132,180,1);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(222,132,180,0),
      0 0 8px rgba(222,132,180,.35);
  }
}

@keyframes pop {
  from {
    transform: scale(.4);
    opacity: 0;
  }
  45% {
    transform: scale(1.5);
    opacity: .9;
  }
  to {
    transform: translateY(-34px) scale(.8);
    opacity: 0;
  }
}

@media (max-width: 820px) {
  .play-hero,
  .play-access,
  .play-access form,
  .oam-flow-summary,
  .quest-scene,
  .oam-card.active-card,
  .oam-card.active-card .card-data-post,
  .oam-info-header,
  .oam-stage-row,
  dl {
    grid-template-columns: 1fr;
  }

  .oam-card,
  .oam-card.active-card {
    width: 100%;
    margin-left: 0;
  }

  .play-hero {
    display: grid;
  }

  .oam-class-header {
    display: grid;
  }
}

/* =========================================================
   Trial Dash Style Lock
   Shared attendance game modal styling
========================================================= */

body {
  color: #1d2327;
  background: #f0f0f1;
  font-family: Arial, Helvetica, sans-serif;
}

.play-shell {
  width: min(1280px, calc(100% - 24px));
  padding-top: 12px;
}

.play-hero,
.play-access,
.quest-stage,
.reward-panel {
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.reward-panel.already-checked-panel {
  border-color: #f2c94c;
  background: #fffbe8;
}

.play-hero {
  min-height: auto;
  margin-bottom: 15px;
  padding: 14px;
}

.play-hero h1 {
  margin: 0 0 4px;
  font-size: 30px;
  font-weight: 900;
}

.play-hero p {
  margin-bottom: 0;
}

.play-access {
  margin: 15px 0;
  padding: 14px;
}

button,
input,
select,
textarea {
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
}

.actions button {
  border: 1px solid #c3c4c7;
  border-radius: 3px;
  padding: 6px 10px;
  color: #1d2327;
  background: #f6f7f7;
  font-weight: 400;
}

.actions button:hover {
  border-color: #8c8f94;
  background: #f0f0f1;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #c3c4c7;
  border-radius: 3px;
  padding: 6px 10px;
  color: #1d2327;
  background: #f6f7f7;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.profile-link:hover {
  border-color: #8c8f94;
  background: #f0f0f1;
  color: #1d2327;
}

.trial-story-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 39, 51, .25);
  border-radius: 8px;
  padding: 6px 12px;
  color: #fff;
  background: #ff2733;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .16);
}

.trial-story-link:hover {
  transform: translateY(-1px);
  color: #fff;
  background: #e61f2a;
}

.message-profile-link {
  border-color: #7dd3fc;
  background: #e0f2fe;
  color: #075985;
}

.message-profile-link:hover {
  border-color: #38bdf8;
  background: #bae6fd;
  color: #075985;
}

.gateway-actions button,
#previewReset,
#previewCheckIn,
#previewInfo,
#previewPhoto,
#questCheckIn,
#oamiemonInfoButton,
#photoBoothButton {
  border-radius: 3px;
  font-weight: 600;
}

.trial-dash-board {
  margin-top: 20px;
}

.oam-class-header,
.oam-active-row,
.oam-student-grid {
  box-shadow: none;
}

.oam-class-header {
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  font-size: 16px;
}

.oam-class-header-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.oam-class-teacher-img {
  width: 70px;
  height: 70px;
  border: 3px solid #de84b4;
  border-radius: 50%;
  object-fit: cover;
}

.oam-class-title {
  font-size: 20px;
  font-weight: 800;
}

.oam-class-meta,
.oam-class-teacher {
  font-size: 14px;
  opacity: .85;
}

.oam-active-row {
  width: 100%;
  margin-bottom: 20px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.oam-student-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  border: 2px dashed #ccc;
  border-radius: 16px;
  padding: 12px;
  background: #f7f7f7;
}

.oam-row-title {
  margin: 18px 0 8px;
}

.oam-card {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 250px;
  margin: 10px;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  box-shadow: none;
  transition:
    transform 260ms ease,
    opacity 260ms ease,
    filter 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.oam-card:hover {
  transform: none;
  box-shadow: none;
}

.oam-card.captured {
  border-color: #3ba55d;
}

.oam-card button.active,
button.active {
  background: #3ba55d;
  color: #fff;
}

.visual {
  position: relative;
  height: 200px;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
}

.oam-card.active-card .visual {
  height: 280px;
  min-height: 0;
}

.main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.percent-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0;
  background: rgba(169, 255, 0, .25);
  z-index: 4;
}

.percent-ring {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  border: 2px solid var(--oam-ring, #de84b4);
  border-radius: 20px;
  padding: 5px 10px;
  background: #000;
  color: #fff;
  box-shadow: 0 0 18px var(--oam-glow, rgba(222,132,180,.55));
  font-weight: 700;
}

.controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transform: scale(.9);
  transition: all .25s ease;
}

.oam-active-row .oam-card .controls,
.oam-card.active-card .controls {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.oam-card.not-arrived .visual,
.oam-card.not-arrived .name,
.oam-card.not-arrived .rewards,
.oam-card.not-arrived .points {
  filter: grayscale(1);
  opacity: .5;
}

.oam-card.not-arrived .actions {
  filter: none;
  opacity: 1;
}

.oam-card.not-arrived .ready,
.oam-card.not-arrived .pass,
.oam-card.not-arrived .next,
.oam-card.not-arrived .penalty {
  display: none !important;
}

.oam-card.arrived-card .visual,
.oam-card.arrived-card .name,
.oam-card.arrived-card .rewards,
.oam-card.arrived-card .points,
.oam-card.arrived-card p {
  filter: none !important;
  opacity: 1 !important;
}

.oam-card.not-here-card .ready {
  display: inline-flex !important;
}

.oam-card.active-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: stretch;
  width: 92%;
  max-width: 1160px;
  margin-left: 41px;
  border: 3px solid #ffcc00;
  border-radius: 8px;
  outline: 4px solid #eef40f;
  padding: 18px;
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(222,132,180,.75);
  animation: borderPulse 2s infinite ease-in-out;
  overflow-x: hidden;
  overflow-y: visible;
  z-index: 10;
}

.oam-card.active-card .name {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 800;
}

.oam-card .name {
  margin-top: 4px;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 800;
}

.session-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 269px;
  margin: 10px 0;
}

.session-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
}

.captured-pill {
  background: #e8f5e9;
  color: #1b5e20;
}

.trial-pill {
  background: #fff4cc;
  color: #8a5a00;
}

.invoice-pill {
  background: #f2f4f7;
  color: #344054;
}

.credit-badges {
  display: -webkit-inline-box;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.credit-badge {
  position: relative;
  bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.credit-badge strong {
  font-size: 14px;
}

.class-credit {
  border: 1px solid #b7e4c7;
  background: #e7f8ec;
  color: #137333;
}

.makeup-credit {
  border: 1px solid #d0d5dd;
  background: #f2f4f7;
  color: #475467;
}

.trial-credit {
  border: 1px solid #f2c94c;
  background: #fff4cc;
  color: #8a5a00;
}

.oam-card.active-card .rewards,
.oam-card.active-card .actions {
  margin: 10px 0;
  font-size: 18px;
}

.oam-card.active-card .card-data-post {
  display: grid;
  grid-template-columns: minmax(230px, 1.05fr) minmax(210px, .75fr) minmax(285px, 1fr);
  gap: 42px;
  align-items: start;
  overflow: visible;
}

.oam-card.active-card .notifications {
  margin-top: 0;
}

.emoji-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.6;
}

img.emoji {
  display: inline !important;
  width: 1em;
  height: 1em;
  margin: 0 .07em;
  vertical-align: -.1em;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.card-data-post,
.notifications,
.notice-list {
  overflow: visible;
}

.actions-section {
  border: 2px solid silver;
  border-radius: 12px;
  padding: 0 18px 12px;
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.compact-actions {
  display: block;
  margin-top: 8px;
  color: #1d2327;
  font-size: 16px;
  font-weight: 700;
}

.compact-actions .data-titles {
  margin: 8px 0 4px;
}

.compact-actions button {
  min-height: 24px;
  margin: 0 3px 4px 0;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 2px 8px;
  background: #fff;
  color: #1d2327;
  font-size: 14px;
}

.compact-profile-link {
  min-height: 24px;
  margin: 0 3px 4px 0;
  padding: 2px 8px;
  font-size: 14px;
}

.actions button,
.gateway-actions button {
  min-height: 38px;
}

.active-timer {
  display: inline-block;
  margin-top: -7px;
  margin-bottom: 13px;
  margin-left: -2px;
  font-size: 18px;
  font-weight: 800;
}

.timer-bonus {
  margin-left: 8px;
  color: #1f8f3a;
}

.data-headers {
  margin: 12px 0 2px;
  color: #1d2327;
  font-size: 24px;
  font-weight: 500;
}

.data-titles {
  width: 100%;
  margin: 12px 0 7px;
  color: #1d2327;
  font-size: 18px;
  font-weight: 500;
}

.game-hr {
  width: 69px;
  height: 5px;
  margin: 8px 0;
  border: 0;
  border-radius: 5px;
}

.red {
  background: red;
}

.game-stats,
.hideOutside {
  display: none;
}

.oam-active-row :is(.game-stats, .hideOutside),
.oam-card.active-card :is(.game-stats, .hideOutside) {
  display: block;
}

.character-class-panel,
.art-treasures-panel {
  margin: 10px 0;
}

.rewards.art-treasures-panel {
  border: 0;
  border-radius: 6px;
  padding: 1px 10px 13px;
  background-color: rgb(248, 251, 211);
  cursor: pointer;
}

.character-class.rewards.character-class-panel {
  border: 0;
  border-radius: 6px;
  padding: 1px 10px 13px;
  background-color: rgb(211, 241, 251);
  cursor: pointer;
}

.character-class-panel.character-alert {
  animation: characterShake .28s ease-in-out 8, characterGlow 2.4s ease-out;
}

.art-treasures-panel.reward-alert {
  animation: rewardShake .28s ease-in-out 8, rewardGlow 2.4s ease-out;
}

.active-timer.timer-negative,
.timer-warning {
  color: #d63638;
}

.bonus-blink {
  animation: oamBonusBlink .3s ease-in-out 3;
}

.oam-card.oamiemon-stage-pulse .oam-big-flip,
.oam-card.oamiemon-stage-pulse .oam-oamiemon-img-wrap {
  animation: oamiemonStagePulseGlow 1s ease-in-out 5;
}

@keyframes characterShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(5px) rotate(1deg); }
  75% { transform: translateX(-5px) rotate(-1deg); }
}

@keyframes characterGlow {
  0% { box-shadow: 0 0 0 rgba(56,189,248,0); }
  30% { box-shadow: 0 0 28px rgba(56,189,248,.95); }
  100% { box-shadow: 0 0 0 rgba(56,189,248,0); }
}

@keyframes rewardShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px) rotate(-1deg); }
  75% { transform: translateX(5px) rotate(1deg); }
}

@keyframes rewardGlow {
  0% { box-shadow: 0 0 0 rgba(250,204,21,0); }
  30% { box-shadow: 0 0 28px rgba(250,204,21,.95); }
  100% { box-shadow: 0 0 0 rgba(250,204,21,0); }
}

@keyframes oamiemonStagePulseGlow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(222,132,180,0));
  }
  50% {
    transform: scale(1.08);
    filter:
      drop-shadow(0 0 16px rgba(222,132,180,.95))
      drop-shadow(0 0 34px rgba(255,204,0,.85));
  }
}

@keyframes oamBonusBlink {
  0%, 100% {
    color: #d63638;
    transform: scale(1);
  }
  50% {
    color: #ff0000;
    transform: scale(1.2);
  }
}

.reward-bounty-box {
  margin-top: 10px;
  border: 3px solid #fff;
  border-radius: 16px;
  padding: 12px;
  background: #d9d7d7;
  color: royalblue;
  font-size: 18px;
}

.reward-bounty-title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.reward-bounty-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.reward-bounty-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  font-size: 28px;
  font-weight: 900;
}

.notice-list {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 6px;
}

.notice-list::-webkit-scrollbar {
  width: 8px;
}

.notice-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255,255,255,.6);
}

.project-update-notice {
  margin-top: 14px;
  border: 0;
  border-radius: 18px;
  padding: 14px;
  background: #95ccff;
  color: #fff;
  font-weight: 900;
}

.project-update-title {
  margin-bottom: 12px;
  font-size: 15px;
  letter-spacing: .03em;
}

.project-update-notice:last-child {
  margin-bottom: 100px;
}

.notice-btn {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  margin: 6px 0;
  border: 0;
  border-radius: 18px;
  padding: 16px 18px;
  color: #fff;
  overflow: hidden;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.notice-btn::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px dashed rgba(255,255,255,.9);
  border-radius: 12px;
  pointer-events: none;
}

.project-photo-update-btn {
  background: #38bdf8;
}

.character-levelup-btn {
  background: #f97316;
}

.teacher-note-update-btn {
  background: #8b5cf6;
}

.photo-update-complete-btn,
.accomplishment-complete-btn,
.character-complete-btn,
.next-project-complete-btn {
  background: #22c55e !important;
  color: #fff !important;
}

.notice-btn.is-pending {
  border: 2px solid rgba(255, 255, 255, .86);
  background: #f8fbff !important;
  color: #233047 !important;
}

.notice-btn.is-pending::after {
  border-color: rgba(35, 48, 71, .24);
}

.notice-btn.is-pending i {
  color: #8a98aa;
  margin-right: 6px;
}

.notice-btn.is-complete {
  display: block;
  width: 100%;
  margin: 6px 0;
  border-radius: 18px;
  padding: 14px 16px;
  background: #22c55e !important;
  color: #fff !important;
  font-weight: 900;
}

.project-update-notice.is-complete {
  background: #eafff2;
  color: #176238;
}

.project-update-notice.is-complete .project-update-title {
  color: #176238;
}

.project-update-complete-row {
  display: grid;
  gap: 8px;
}

.project-update-complete-row span {
  border: 2px solid rgba(34, 197, 94, .22);
  border-radius: 999px;
  padding: 8px 10px;
  background: #fff;
  color: #176238;
  font-weight: 900;
}

.notice-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.oam-oamiemon-info-modal {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.75);
}

.oam-oamiemon-info-card {
  position: relative;
  width: min(95vw, 1000px);
  max-height: 92vh;
  overflow: auto;
  border-radius: 28px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}

.oam-info-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.oam-info-header img {
  width: 140px;
  height: 140px;
  border: 4px solid #de84b4;
  border-radius: 24px;
  background: #fff4fb;
  object-fit: contain;
}

.oam-stage-card,
.gateway-card {
  position: relative;
  border: 2px solid #eee;
  border-radius: 18px;
  padding: 12px;
  background: #fff;
  text-align: center;
  font-weight: 900;
}

.oam-stage-card.current {
  border-color: #de84b4;
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(222,132,180,.18), 0 0 26px rgba(222,132,180,.45);
}

.oam-stage-card.locked,
.gateway-card.locked {
  filter: grayscale(.85);
  opacity: .58;
}

.oam-stage-card.current.locked {
  filter: none;
  opacity: 1;
}

.oam-photo-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  touch-action: none;
}

#oamPhotoVideo,
#oamPhotoCanvas {
  width: 100%;
  display: block;
  max-height: 70vh;
  border-radius: 18px;
  background: #000;
  object-fit: cover;
}

#oamPhotoMask {
  position: absolute;
  left: 50%;
  top: 35%;
  z-index: 5;
  width: 160px;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  transform-origin: center center;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.oam-photo-status {
  margin: 10px 0 0;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

#oamPhotoMask:active {
  cursor: grabbing;
}

.oam-photo-student-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.oam-photo-student-header img {
  width: 72px;
  height: 72px;
  border: 3px solid #eee;
  border-radius: 999px;
  object-fit: cover;
  background: #f5f5f5;
}

.oam-media-mode-row,
.oam-update-type-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.oam-update-type-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.oam-media-mode-row button,
.oam-update-type-row button {
  min-height: 44px;
  border: 2px solid #d8e1ea;
  border-radius: 999px;
  background: #fff;
  color: #273547;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(39,53,71,.12);
}

.oam-media-mode-row button.is-active,
.oam-update-type-row button.is-active {
  border-color: #ff2530;
  background: #ff2530;
  color: #fff;
}

.oam-update-caption {
  display: block;
  margin-top: 14px;
  color: #5d6b7c;
  font-weight: 950;
}

.oam-update-caption textarea {
  width: 100%;
  min-height: 92px;
  margin-top: 8px;
  border: 2px solid #d8e1ea;
  border-radius: 16px;
  padding: 12px;
  font: inherit;
  font-weight: 800;
  resize: vertical;
}

.oam-notice-hook-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.oam-hook-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 2px solid #d8e1ea;
  border-radius: 16px;
  padding: 10px 12px;
  background: #f8fbfd;
  cursor: pointer;
}

.oam-hook-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.oam-hook-check span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e7f8ff;
  color: #1689a4;
  font-weight: 950;
}

.oam-hook-check strong {
  color: #273547;
  font-size: .92rem;
  line-height: 1.05;
}

.oam-hook-check:has(input:checked) {
  border-color: #2eb74f;
  background: #effff2;
}

.oam-hook-check:has(input:checked) span {
  background: #2eb74f;
  color: #fff;
}

.oam-update-hook-card {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border: 2px solid #f2bd49;
  border-radius: 16px;
  padding: 12px;
  background: #fff8df;
  color: #273547;
}

.oam-update-hook-card strong {
  color: #ff2530;
  font-weight: 950;
  text-transform: uppercase;
}

.oam-update-hook-card span {
  font-weight: 800;
  line-height: 1.3;
}

.oam-update-hook-card p {
  margin: 2px 0 0;
  color: #475467;
  font-size: .88rem;
  font-weight: 850;
  line-height: 1.35;
}

.oam-update-rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.oam-update-rule-chips span {
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(242, 189, 73, .65);
  color: #7a4f00;
  font-size: .74rem;
  font-weight: 950;
  line-height: 1;
  padding: 6px 9px;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .oam-media-mode-row,
  .oam-update-type-row,
  .oam-notice-hook-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oam-update-type-row button {
    min-height: 48px;
    font-size: .82rem;
  }
}

.oam-photo-student-info {
  flex: 1;
}

.oam-photo-smile {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.oam-photo-booth {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.75);
}

.oam-quick-note-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.72);
}

.oam-quick-note-card {
  position: relative;
  width: min(92vw, 560px);
  border-radius: 20px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.oam-quick-note-card h2 {
  margin: 4px 0 16px;
  font-size: 28px;
  font-weight: 900;
}

.oam-quick-note-card textarea {
  width: 100%;
  min-height: 150px;
  margin-top: 8px;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
}

.oam-note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.oam-note-actions button {
  border: 1px solid #c3c4c7;
  border-radius: 3px;
  padding: 8px 12px;
  background: #f6f7f7;
  color: #1d2327;
}

.oam-photo-booth-card {
  position: relative;
  width: min(92vw, 720px);
  border-radius: 24px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.oam-photo-close,
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: none;
  border-radius: 999px;
  padding: 0;
  background: #111;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.oam-photo-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

#oam-active-row,
#oam-active-row .oam-card,
#oam-active-row .card-data-post,
#oam-active-row .notifications,
#oam-active-row .notice-list,
.oam-active-row,
.oam-active-row .oam-card,
.oam-active-row .card-data-post,
.oam-active-row .notifications,
.oam-active-row .notice-list {
  overflow: visible;
}

#oam-active-row .oam-card.active-turn,
.oam-active-row .oam-card.active-turn {
  max-width: 1160px;
  overflow: visible;
}

#oam-active-row .notifications,
.oam-active-row .notifications {
  max-height: none;
  overflow: visible;
  min-height: 0;
  padding-right: 12px;
}

#oam-active-row .notice-list,
.oam-active-row .notice-list {
  max-height: none;
  overflow: visible;
  min-height: 0;
  padding-right: 8px;
  padding-bottom: 20px;
}

.oam-card .visual,
.oam-card .oam-big-flip,
.oam-card .oam-oamiemon-img-wrap,
.oam-card .oam-flip-side img {
  cursor: pointer;
}

.oamiemon-map-element-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.oamiemon-gateway-card {
  width: 100%;
  max-width: 210px;
  margin: 0 auto;
  border: 2px solid #eee;
  border-radius: 18px;
  padding: 10px;
  background: #fff;
  text-align: center;
  font-weight: 900;
}

.oamiemon-gateway-card.locked {
  filter: grayscale(.85);
  opacity: .58;
}

.oamiemon-gateway-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.oamiemon-map-mon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.oamiemon-map-mon {
  width: 56px;
  border: 2px solid #eee;
  border-radius: 14px;
  padding: 5px;
  background: #fff;
  text-align: center;
}

.oamiemon-map-mon.locked {
  filter: grayscale(1);
  opacity: .45;
}

.oamiemon-map-mon.earned {
  border-color: #3ba55d;
}

.oamiemon-map-mon.current {
  border-color: #de84b4;
  animation: oamiemonMapPulse 1.4s infinite ease-in-out;
}

.oamiemon-mon-img {
  width: 100%;
  height: 48px;
  object-fit: contain;
}

.oamiemon-gateway-name {
  margin-top: 6px;
  font-weight: 900;
}

.oamiemon-gateway-skill {
  color: #555;
  font-size: 13px;
  font-weight: 800;
}

.oam-oamiemon-info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 999;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.oam-oamiemon-info-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.oam-oamiemon-info-main-img {
  width: 140px;
  height: 140px;
  border: 4px solid #de84b4;
  border-radius: 24px;
  object-fit: contain;
  background: #fff4fb;
}

.oam-oamiemon-info-title {
  color: #de3f86;
  font-size: 34px;
  font-weight: 900;
}

.oam-oamiemon-info-subtitle {
  color: #555;
  font-size: 18px;
  font-weight: 800;
}

.oam-oamiemon-info-section {
  margin-top: 18px;
  border-radius: 22px;
  padding: 18px;
  background: #f7f7f7;
}

.oam-oamiemon-info-section h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.oam-oamiemon-completed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}

.oam-oamiemon-completed-item {
  border: 2px solid #eee;
  border-radius: 18px;
  padding: 12px;
  background: #fff;
  text-align: center;
  font-weight: 900;
}

.oam-oamiemon-completed-item img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

.oam-oamiemon-completed-item.locked {
  filter: grayscale(.85);
  opacity: .58;
}

.oam-oamiemon-empty {
  color: #777;
  font-weight: 900;
}

.oam-reward-info-modal,
.oam-character-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.72);
}

.oam-reward-info-card,
.oam-character-modal-card {
  position: relative;
  width: min(94vw, 950px);
  border-radius: 26px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0,0,0,.35);
}

.oam-reward-info-close,
.oam-character-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.oam-reward-info-student,
.oam-character-student {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.oam-reward-info-img,
.oam-character-student-img {
  width: 86px;
  height: 86px;
  border: 4px solid #de84b4;
  border-radius: 999px;
  object-fit: cover;
  background: #f3f3f3;
}

.oam-reward-info-title,
.oam-character-title {
  color: #de3f86;
  font-size: 18px;
  font-weight: 800;
}

.oam-reward-info-name,
.oam-character-name {
  font-size: 32px;
  font-weight: 900;
}

.oam-reward-info-grid,
.oam-character-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.oam-reward-info-box,
.oam-character-box {
  border: 2px solid #eee;
  border-radius: 22px;
  padding: 18px;
  background: #fafafa;
  text-align: center;
}

.oam-reward-info-emoji-wrap,
.oam-character-emoji-wrap {
  position: relative;
  display: inline-block;
}

.oam-reward-info-emoji,
.oam-character-emoji {
  font-size: 76px;
  line-height: 1;
}

.oam-reward-info-count,
.oam-character-count {
  position: absolute;
  top: -12px;
  right: -18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 4px solid #fff;
  border-radius: 999px;
  padding: 0 8px;
  background: red;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.oam-reward-info-label,
.oam-character-label {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 900;
}

.oam-reward-info-description,
.oam-character-description {
  margin-top: 8px;
  color: #555;
  font-size: 14px;
  line-height: 1.35;
}

.oam-penalty-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  display: none;
  width: 340px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  padding: 16px;
  background: #fff;
  box-shadow:
    0 10px 40px rgba(0,0,0,.18),
    0 2px 10px rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
}

.oam-penalty-student {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #ececec;
  padding-bottom: 14px;
}

.oam-penalty-student img {
  width: 58px;
  height: 58px;
  border: 3px solid #ffcc00;
  border-radius: 999px;
  object-fit: cover;
  background: #eee;
}

.oam-penalty-label {
  color: #888;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.oam-penalty-name {
  color: #111;
  font-size: 20px;
  font-weight: 900;
}

.oam-penalty-close {
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: none;
  border-radius: 999px;
  background: #f2f2f2;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.oam-penalty-panel button[data-penalty] {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 8px;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff5f5;
  color: #b42318;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.oam-penalty-panel button[data-penalty]:hover {
  background: #ffe3e3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(180,35,24,.12);
}

.oam-penalty-panel button[data-penalty]:active {
  transform: scale(.98);
}

@keyframes oamiemonMapPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(222,132,180,0);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 18px rgba(222,132,180,.75);
  }
}

@media (max-width: 782px) {
  .oam-card.active-card {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .oam-card.active-card .visual {
    height: 240px;
  }

  .oam-card.active-card .card-data-post {
    display: block;
  }
}

.oam-media-mode-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.oam-media-mode-row button {
  border: 2px solid #dbe3ec;
  color: #243047;
  background: #fff;
  box-shadow: 0 4px 0 rgba(35,48,71,.14);
}

.oam-media-mode-row button.is-active {
  border-color: #ff2a32;
  color: #fff;
  background: #ff2a32;
}

#oamVideoPreview {
  display: block;
  width: 100%;
  max-height: 70vh;
  border-radius: 18px;
  background: #000;
  object-fit: contain;
}

#oamVideoPreview[hidden] {
  display: none;
}

.oam-quick-note-modal[hidden],
.oam-photo-booth[hidden],
.oam-oamiemon-info-modal[hidden] {
  display: none !important;
}

.oam-update-caption {
  margin-top: 14px;
}

.oam-update-caption textarea {
  width: 100%;
  min-height: 86px;
  border: 1px solid #cdd6e1;
  border-radius: 12px;
  padding: 12px;
  color: #243047;
  font: inherit;
  resize: vertical;
}

.oam-parent-share-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: #243047;
}

.latest-video-pill,
.project-video-update-tile {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.latest-video-pill {
  width: 58px;
  height: 58px;
}

.project-video-update-tile {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
}

/* =========================================================
   Attendance Game Cleanup Pass
   Keeps behavior intact, but makes the teacher flow calmer.
========================================================= */

body {
  background:
    linear-gradient(180deg, #f7fbff 0, #fffaf0 420px, #fffaf0 100%);
  color: #243047;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.play-shell {
  width: min(1180px, calc(100% - 28px));
  padding-bottom: 52px;
}

.play-hero {
  border: 0;
  border-bottom: 4px solid rgba(85, 185, 210, .34);
  border-radius: 0;
  background: transparent;
  padding: 14px 4px 12px;
}

.play-hero h1 {
  color: #243047;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  letter-spacing: 0;
}

.play-hero p:last-child {
  max-width: 520px;
  color: #667085;
  font-weight: 750;
  line-height: 1.35;
}

.play-hero img {
  width: 78px;
  height: 78px;
}

.play-access {
  grid-template-columns: minmax(150px, auto) minmax(150px, .75fr) minmax(170px, .9fr) minmax(230px, 1.25fr) auto auto;
  gap: 10px;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .1);
}

.play-internal-student-select {
  display: none !important;
}

.play-access label.is-locked-filter select {
  border-color: rgba(255, 39, 51, .35);
  background: #fff4f5;
}

.play-access form,
.access-key-control,
.play-access label {
  display: grid;
  gap: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.access-key-control {
  align-self: end;
}

.access-key-modal {
  position: fixed;
  inset: 0;
  z-index: 9999998;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 5, 5, .62);
}

.access-key-modal[hidden] {
  display: none !important;
}

.access-key-card {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 28px));
  border: 3px solid #7c5cff;
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
  color: #243047;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

#loadQuestersButton {
  background: #635bff;
}

#loadQuestersButton:hover {
  background: #5248df;
}

.access-key-card h2 {
  margin: 0;
  font-size: 1.8rem;
}

.access-key-card p {
  margin: 0;
  color: #667085;
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.35;
}

.access-key-card label {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.access-key-card input {
  width: 100%;
  min-height: 48px;
  border: 2px solid rgba(124, 92, 255, .32);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 1.15rem;
  font-weight: 900;
}

.access-key-card input:focus {
  border-color: #7c5cff;
  outline: 3px solid rgba(124, 92, 255, .16);
}

.access-key-card .oam-note-actions button[type="submit"] {
  background: #635bff;
}

.access-key-card .oam-note-actions button[type="submit"]:hover {
  background: #5248df;
}

.character-class-modal {
  position: fixed;
  inset: 0;
  z-index: 9999997;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 40, .58);
  backdrop-filter: blur(4px);
}

.character-class-modal[hidden] {
  display: none !important;
}

.penalty-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999998;
  pointer-events: none;
}

.penalty-panel[hidden] {
  display: none !important;
}

.penalty-panel-card {
  position: relative;
  width: min(380px, calc(100vw - 28px));
  border: 3px solid #ff2733;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  color: #243047;
  box-shadow: 0 16px 0 rgba(35, 48, 71, .18);
  pointer-events: auto;
}

.penalty-panel-card h2 {
  margin: 2px 38px 6px 0;
  font-size: 1.8rem;
}

.penalty-panel-card p:not(.kicker) {
  margin: 0 0 14px;
  color: #667085;
  font-weight: 800;
}

.penalty-option-grid {
  display: grid;
  gap: 10px;
}

.oam-photo-booth.is-attendance-capture .oam-media-mode-row,
.oam-photo-booth.is-attendance-capture .oam-update-type-row {
  display: none;
}

.oam-attendance-photo-options {
  display: grid;
  grid-template-columns: minmax(160px, auto) 1fr;
  gap: 12px;
  align-items: center;
  margin: 10px 0 12px;
}

.oam-attendance-photo-options[hidden] {
  display: none !important;
}

.oam-set-profile-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border: 2px solid #bfeaf3;
  border-radius: 999px;
  padding: 8px 14px;
  background: #effbff;
  color: #0f6d83;
  font-weight: 950;
}

.oam-set-profile-check input {
  width: 20px;
  height: 20px;
  accent-color: #35b7d4;
}

.oam-mask-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.oam-mask-choice-row button {
  border: 2px solid #d7e2ec;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: #243047;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(36, 48, 71, .12);
  cursor: pointer;
}

.oam-mask-choice-row button.is-active {
  border-color: #ff2733;
  background: #ff2733;
  color: #fff;
}

.oam-mask-placement-tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  border: 2px dashed #bfeaf3;
  border-radius: 16px;
  padding: 10px;
  background: #f4fcff;
}

.oam-mask-placement-tools[hidden] {
  display: none !important;
}

.oam-mask-placement-tools span {
  margin-right: auto;
  color: #0f6d83;
  font-weight: 950;
  max-width: 46%;
}

.oam-mask-placement-tools button {
  min-width: 54px;
  min-height: 54px;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  background: #35b7d4;
  color: #fff;
  font-weight: 950;
  font-size: 1rem;
  box-shadow: 0 4px 0 rgba(15, 109, 131, .18);
  cursor: pointer;
}

.oam-photo-booth.is-attendance-capture #oamPhotoCanvas {
  cursor: grab;
  touch-action: none;
}

.oam-photo-booth.is-attendance-capture #oamPhotoCanvas:active {
  cursor: grabbing;
}

.penalty-option-grid button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  border: 2px solid #ffd3d6;
  border-radius: 12px;
  padding: 12px;
  background: #fff7f7;
  color: #243047;
  text-align: left;
  box-shadow: 0 4px 0 rgba(255, 39, 51, .16);
  cursor: pointer;
}

.penalty-option-grid button:hover {
  transform: translateY(-1px);
  border-color: #ff2733;
  background: #fff0f1;
}

.penalty-option-grid span,
.penalty-option-grid strong {
  font-weight: 950;
}

.penalty-option-grid strong {
  color: #ff2733;
}

.penalty-option-grid small {
  grid-column: 1 / -1;
  color: #667085;
  font-weight: 800;
  line-height: 1.25;
}

.penalty-turn-note {
  justify-self: start;
  grid-column: 1 / -1;
  border-radius: 999px;
  padding: 4px 8px;
  background: #243047;
  color: #fff;
  font-size: .74rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.character-class-card {
  position: relative;
  width: min(620px, calc(100vw - 28px));
  border: 3px solid #35b7d4;
  border-radius: 14px;
  padding: 24px;
  background: #fff;
  color: #243047;
  box-shadow: 0 18px 0 rgba(35, 48, 71, .16);
}

.character-class-card h2 {
  margin: 2px 0 6px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.character-class-card > p:not(.kicker) {
  margin: 0 44px 18px 0;
  color: #667085;
  font-weight: 800;
}

.character-class-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.character-class-choice-grid button {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 132px;
  border: 2px solid #d7e2ec;
  border-radius: 12px;
  background: #f8fbff;
  color: #243047;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .14);
  cursor: pointer;
}

.character-class-choice-grid button:hover {
  transform: translateY(-2px);
  border-color: #35b7d4;
  background: #e8f8ff;
}

.character-class-choice-grid span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #fff;
  font-size: 2.25rem;
  box-shadow: inset 0 0 0 2px rgba(53, 183, 212, .22);
}

.character-class-choice-grid strong {
  font-size: .95rem;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .character-class-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.play-access input,
.play-access select {
  width: 100%;
  min-height: 42px;
  border: 2px solid #d7e2ec;
  border-radius: 8px;
  padding: 0 12px;
  color: #243047;
  background: #f8fbfd;
  font-size: 15px;
  font-weight: 850;
  text-transform: none;
}

.play-access button,
.actions button,
.compact-actions button,
.gateway-actions button,
.quest-actions button,
.profile-link,
.trial-story-link {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  color: #fff;
  background: #39b6d5;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .14);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
}

.play-access button:hover,
.actions button:hover,
.compact-actions button:hover,
.gateway-actions button:hover,
.quest-actions button:hover,
.profile-link:hover,
.trial-story-link:hover {
  transform: translateY(-1px);
  color: #fff;
  background: #249fbd;
}

#resetGameFlow,
.actions .not-here,
.compact-actions .not-here {
  background: #7b8794;
}

.trial-story-link {
  background: #ff2733;
}

.trial-dash-board {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.oam-class-header {
  margin: 0;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .09);
}

.oam-class-title {
  color: #243047;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  font-weight: 950;
  line-height: 1.05;
}

.oam-class-meta,
.oam-class-teacher {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  opacity: 1;
}

.oam-class-teacher-img {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(85, 185, 210, .45);
  box-shadow: 0 4px 0 rgba(35, 48, 71, .1);
}

.class-header-stats,
.credit-badges,
.session-status,
.actions,
.gateway-actions,
.compact-actions {
  gap: 7px;
}

.count-badge,
.session-pill,
.credit-badge {
  min-height: 28px;
  padding: 6px 9px;
  font-size: 11px;
  line-height: 1;
}

.oam-flow-summary {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 0;
}

.oam-flow-summary article {
  border-color: #d7e2ec;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 2px 0 rgba(35, 48, 71, .08);
}

.oam-flow-summary .flow-class-card {
  border-color: rgba(255, 39, 51, .28);
  background: #fff3f4;
}

.oam-flow-summary .flow-market-card {
  border-color: rgba(49, 191, 89, .42);
  background: #f0fff4;
}

.oam-flow-summary .flow-finish-card {
  display: flex;
  align-items: stretch;
  min-width: 230px;
  padding: 0;
  border-color: #efb91f;
  background: #fff8d9;
}

.flow-finish-card button {
  width: 100%;
  min-height: 62px;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: #ffc928;
  color: #202b3c;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.flow-finish-card button:disabled {
  cursor: wait;
  opacity: .6;
}

.oam-row-title {
  margin: 8px 0 -4px;
  color: #243047;
  font-size: 1rem;
  font-weight: 950;
}

.oam-active-row,
.oam-student-grid,
.oam-not-here-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  min-height: 84px;
  margin: 0;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.oam-active-row {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  background: #fffdf5;
}

.oam-student-grid {
  background: #f8fbfd;
}

.oam-not-here-row {
  background: #fff6f8;
}

.empty-board {
  margin: 0;
  padding: 10px;
  color: #667085;
  font-weight: 800;
}

.oam-card,
.oam-card.active-card {
  width: auto;
  max-width: none;
  margin: 0;
  outline: 0;
  transform: none;
  animation: none;
}

.oam-card {
  display: grid;
  gap: 8px;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 2px 0 rgba(35, 48, 71, .08);
}

.oam-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(35, 48, 71, .1);
}

.oam-card.active-card {
  grid-column: 1 / -1;
  grid-template-columns: minmax(210px, 280px) 1fr;
  gap: 14px;
  border: 2px solid #f2bd49;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(35, 48, 71, .14);
}

.active-turn-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  background: #eef7fb;
  color: #0f7f97;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.visual {
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #eef7fb;
}

.oam-card.active-card .visual {
  height: auto;
  min-height: 0;
}

.percent-ring {
  top: 8px;
  right: 8px;
  border: 0;
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(36, 48, 71, .9);
  box-shadow: none;
  font-size: 12px;
  font-weight: 950;
}

.controls {
  right: 8px;
  bottom: 8px;
  gap: 5px;
}

.controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .18);
  font-size: 1rem;
}

.controls button span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
}

.controls .oamiemon-info-icon span {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
}

/* Attendance capture is intentionally simpler than a project update. */
.oam-photo-booth.is-attendance-capture .oam-media-mode-row,
.oam-photo-booth.is-attendance-capture .oam-update-type-row,
.oam-photo-booth.is-attendance-capture .oam-update-caption,
.oam-photo-booth.is-attendance-capture .oam-notice-hook-row,
.oam-photo-booth.is-attendance-capture .oam-update-hook-card,
.oam-photo-booth.is-attendance-capture #oamStartVideoBtn,
.oam-photo-booth.is-attendance-capture #oamStopVideoBtn,
.oam-photo-booth.is-attendance-capture #oamUsePhotoBtn,
.oam-photo-booth.is-attendance-capture #oamSaveUpdateBtn {
  display: none !important;
}

.controls .minus {
  background: #ff2733;
}

.controls .plus {
  background: #30bf5a;
}

.controls .oamiemon-info-icon {
  background: #635bff;
}

.controls button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.card-data-post {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.oam-card.active-card .card-data-post {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, .75fr) minmax(260px, .85fr);
  gap: 12px;
  min-width: 0;
}

.card-body,
.game-stats,
.notifications,
.actions-section {
  min-width: 0;
}

.oam-card.active-card .card-body {
  min-width: 0;
}

.oam-card .name,
.oam-card.active-card .name {
  margin: 0 0 7px;
  color: #243047;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.08;
}

.oam-card.active-card .name {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.points {
  color: #667085;
  font-size: 19px;
  font-weight: 850;
}

.active-timer {
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.active-timer {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 6px 0 0;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef7fb;
}

.timer-bonus {
  color: #0f7f97;
}

.ready-bonus-pill {
  border: 2px solid rgba(255, 204, 0, .8);
  background: #fff4ad !important;
  color: #6f4f00 !important;
  box-shadow: 0 4px 0 rgba(242, 189, 73, .28);
}

.ready-bonus-pill i {
  color: #ff9f1c;
}

.arrival-bonus-pill {
  border: 2px solid #4ab8d2;
  background: #e5f8ff !important;
  color: #075d73 !important;
  box-shadow: 0 4px 0 rgba(42, 141, 165, .22);
}

.arrival-bonus-pill i {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #36acc8;
  color: #fff;
}

.arrival-bonus-pill.arrival-rank-first {
  border-color: #168ba8;
  background: #36acc8 !important;
  color: #fff !important;
  box-shadow: 0 5px 0 #08718b, 0 8px 18px rgba(8, 113, 139, .2);
}

.arrival-bonus-pill.arrival-rank-first i {
  background: #ff2d3a;
  color: #fff;
}

.arrival-bonus-pill.arrival-rank-second {
  border-color: #8a78c7;
  background: #f0ebff !important;
  color: #4f3d89 !important;
}

.arrival-bonus-pill.arrival-rank-second i {
  background: #7661bd;
}

.arrival-bonus-pill.arrival-rank-third {
  border-color: #ef8d72;
  background: #fff0eb !important;
  color: #8a3d2b !important;
}

.arrival-bonus-pill.arrival-rank-third i {
  background: #e86f52;
}

.card-body p {
  margin: 8px 0;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.badge-area {
  margin-top: 7px;
}

.student-latest-note {
  display: grid;
  gap: 3px;
  margin: 8px 0 0;
  border: 2px solid #d7e2ec;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fffdf3;
  color: #243047;
}

.student-latest-note strong {
  color: #8f1f28;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.student-latest-note span {
  color: #4b5563;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.oam-card:not(.active-card) .badge-area .credit-badge:not(:first-child),
.oam-card:not(.active-card) .card-body > .credit-badges,
.oam-card:not(.active-card) .data-titles,
.oam-card:not(.active-card) .penalty {
  display: none;
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.compact-actions[hidden] {
  display: none !important;
}

.compact-actions button,
.compact-actions .profile-link,
.compact-actions .trial-story-link {
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1;
}

.compact-actions .undo-checkin {
  border-color: #f59e0b;
  background: #fff7ed;
  color: #9a3412;
}

.actions-section,
.game-stats,
.notifications {
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfd;
}

.data-headers,
.data-titles {
  width: auto;
  margin: 0 0 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.game-hr {
  display: none;
}

.actions-section .actions {
  margin-bottom: 10px;
}

.actions-section .data-titles {
  flex-basis: 100%;
}

.character-class-panel,
.art-treasures-panel {
  margin: 8px 0;
  border-color: #d7e2ec;
  border-radius: 8px;
  padding: 9px;
  line-height: 1.25;
}

.emoji-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.notifications .notice-list {
  display: grid;
  gap: 8px;
}

.oam-card.active-card .notifications,
#oam-active-row .notifications,
.oam-active-row .notifications {
  display: flex;
  flex-direction: column;
  max-height: clamp(340px, 48vh, 520px);
  min-height: 0;
  overflow: hidden;
}

.oam-card.active-card .notifications .notice-list,
#oam-active-row .notice-list,
.oam-active-row .notice-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  padding-bottom: 8px;
  scrollbar-gutter: stable;
}

@media (max-width: 1180px) and (min-width: 821px) {
  .oam-card.active-card {
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  }

  .oam-card.active-card .card-data-post {
    grid-template-columns: minmax(250px, 1.1fr) minmax(220px, .9fr);
  }

  .oam-card.active-card .notifications {
    grid-column: 1 / -1;
    max-height: 300px;
  }

  .oam-card.active-card .notifications .notice-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .oam-card.active-card,
  .oam-card.active-card .card-data-post {
    grid-template-columns: minmax(0, 1fr);
  }

  .oam-card.active-card .visual {
    width: min(100%, 360px);
    justify-self: center;
  }
}

.teacher-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.teacher-status-pills .session-pill {
  margin: 0;
}

.latest-update-card,
.project-update-notice,
.next-bounty,
.check-in-guide,
.battle-flow-panel {
  border-radius: 8px;
}

.quest-stage {
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .1);
}

.quest-stage {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.quest-stage .quest-scene,
.quest-stage .toggle-row,
#questCheckIn {
  display: none !important;
}

.quest-stage .quest-actions {
  padding: 0;
  background: transparent;
}

.quest-scene {
  grid-template-columns: minmax(210px, 300px) 1fr;
  gap: 14px;
}

.quest-avatar,
.quest-card {
  border-radius: 8px;
}

.quest-card dl {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.quest-actions {
  border-radius: 8px;
}

.reward-bounty-list {
  align-items: center;
}

.reward-bounty-item {
  min-width: 76px;
  min-height: 42px;
  justify-content: center;
  gap: 8px;
  border: 2px solid rgba(65, 105, 225, .18);
  padding: 8px 14px;
  color: #243047;
  font-size: 1rem;
  line-height: 1;
}

.reward-bounty-item .emoji,
.reward-bounty-item img.emoji {
  width: 30px;
  height: 30px;
  min-width: 30px;
}

.reward-bounty-item strong {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 28px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  font-size: 1.05rem;
  font-weight: 950;
}

.oam-info-header.has-banner {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 0;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 3px solid #d7e2ec;
  border-radius: 22px;
  padding: 0;
  color: #fff;
  background: #f6f8fb;
}

.oam-info-header.has-banner img {
  grid-area: 1 / 1;
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: none;
}

.oam-info-header.has-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(17, 24, 39, .72), rgba(17, 24, 39, .02) 48%);
}

.oam-info-header.has-banner > div {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 20px;
  text-shadow: 0 2px 10px rgba(17, 24, 39, .55);
}

.oam-info-header.has-banner .kicker,
.oam-info-header.has-banner p {
  color: #fff;
}

.oam-stage-card,
.gateway-card {
  display: grid;
  gap: 7px;
  color: #243047;
  cursor: pointer;
  appearance: none;
}

.oam-stage-card:hover,
.gateway-card:hover,
.oam-stage-card.is-selected,
.gateway-card.is-selected {
  border-color: #de84b4;
  box-shadow: 0 0 0 4px rgba(222,132,180,.18), 0 0 26px rgba(222,132,180,.45);
}

.oam-stage-card.locked:hover,
.gateway-card.locked:hover {
  opacity: .78;
}

.gateway-card.is-wide {
  grid-column: 1 / -1;
  grid-template-columns: 110px 1fr;
  align-items: center;
  text-align: left;
}

.gateway-card.is-wide .oamiemon-gateway-img {
  grid-row: span 4;
}

.kingdom-shop-preview {
  display: grid;
  margin-top: 10px;
}

.shop-gateway-card {
  position: relative;
  width: min(760px, 100%);
  justify-self: center;
  align-items: center;
  overflow: hidden;
}

.shop-gateway-hero-img,
.shop-gateway-card .oamiemon-gateway-img {
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 7;
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
  background: #f6f8fb;
}

.shop-gateway-owner {
  position: relative;
  z-index: 10;
  display: grid;
  place-items: center;
  width: clamp(136px, 19vw, 190px);
  height: clamp(136px, 19vw, 190px);
  margin-top: 0;
  border: 5px solid #fff;
  border-radius: 999px;
  padding: 8px;
  background: #fff;
  color: #8f1f28;
  box-shadow: 0 10px 24px rgba(35, 48, 71, .22);
  overflow: visible;
}

.shop-gateway-owner img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  transform-origin: center center;
}

.shop-gateway-closed-row {
  display: grid;
  grid-template-columns: auto;
  gap: 0;
  align-items: center;
  justify-content: center;
  margin-top: -82px;
  margin-bottom: 14px;
  filter: none !important;
  opacity: 1 !important;
}

.shopkeeper-lock-badge,
.shop-lock-badge {
  position: absolute;
  z-index: 6;
  right: -15px;
  bottom: -11px;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 5px solid #fff;
  border-radius: 999px;
  background: #8f1f28;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(70, 18, 24, .28);
  filter: none !important;
  opacity: 1 !important;
}

.shopkeeper-lock-badge i,
.shop-lock-badge i {
  display: block;
  line-height: 1;
}

.oam-stage-detail-slot {
  margin: 12px 0 18px;
}

.oam-stage-detail-card,
.bad-guy-info-card {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 16px;
  align-items: start;
  border: 2px solid #d7e2ec;
  border-radius: 18px;
  padding: 14px;
  background: #f8fbff;
  color: #243047;
  text-align: left;
}

.oam-stage-detail-card > img,
.bad-guy-info-img {
  width: 224px;
  height: 224px;
  border: 3px solid rgba(53, 183, 212, .28);
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
}

.gateway-detail-card > img {
  object-fit: cover;
}

.oam-stage-detail-card h3,
.bad-guy-info-card strong {
  display: block;
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.05;
}

.oam-stage-detail-card p,
.bad-guy-info-card p {
  margin: 7px 0;
  color: #667085;
  font-weight: 800;
}

.oam-stage-detail-chips,
.bad-guy-reward-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.oam-stage-detail-chips span,
.bad-guy-reward-row > span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #e8f8ff;
  color: #0f6d83;
  font-size: .75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.oam-stage-rewards,
.bad-guy-reward-row {
  margin-top: 10px;
}

.bad-guy-reward-row .reward-bounty-list {
  margin-top: 0;
}

.oam-photo-booth-card {
  width: min(96vw, 880px) !important;
  max-height: 94vh;
  display: grid;
  gap: 12px;
  overflow: auto;
}

.oam-photo-stage {
  display: grid;
  place-items: center;
  width: 100%;
  max-height: min(52vh, 470px);
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

#oamPhotoVideo,
#oamVideoPreview,
#oamPhotoCanvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 470px);
  border-radius: 16px;
  background: #111827;
  object-fit: contain;
}

#oamVideoPreview[hidden],
#oamPhotoCanvas[hidden],
#oamPhotoVideo[hidden] {
  display: none !important;
}

.oam-photo-status {
  margin: 0;
  color: #667085;
  font-size: .9rem;
  font-weight: 850;
}

.oam-photo-actions {
  margin: -2px 0 4px !important;
  justify-content: center;
}

.oam-update-caption {
  margin-top: 0;
}

.gateway-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.gateway-grid .gateway-card.is-wide {
  justify-self: center;
  width: min(620px, 100%);
}

.oam-info-back-button {
  justify-self: start;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #243047;
  color: #fff;
  font-size: .85rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 5px 0 rgba(35, 48, 71, .18);
  cursor: pointer;
}

.oam-info-back-button:hover {
  transform: translateY(-1px);
  background: #0f172a;
}

.stage-lock-badge {
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 5px solid #fff;
  border-radius: 999px;
  background: #8f1f28;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(70, 18, 24, .28);
}

.stage-lock-badge i {
  display: block;
  line-height: 1;
}

.oam-stage-card.locked,
.gateway-card.locked {
  filter: none;
  opacity: 1;
}

.oam-stage-card.locked > :not(.stage-lock-badge):not(.current-level-badge),
.gateway-card.locked > :not(.stage-lock-badge):not(.shopkeeper-lock-badge):not(.current-level-badge):not(.shop-gateway-closed-row) {
  filter: grayscale(.85);
  opacity: .58;
}

.stage-lock-badge,
.shopkeeper-lock-badge {
  filter: none !important;
  opacity: 1 !important;
}

@media (max-width: 980px) {
  .play-access,
  .oam-card.active-card,
  .oam-card.active-card .card-data-post,
  .quest-scene {
    grid-template-columns: 1fr;
  }

  .gateway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .oam-info-header.has-banner {
    aspect-ratio: 16 / 9;
  }

  .play-hero {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 620px) {
  .admin-test-bar,
  .play-hero,
  .oam-class-header {
    display: grid;
  }

  .play-shell {
    width: min(100% - 16px, 1180px);
  }

  .class-header-controls,
  .class-header-stats {
    justify-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }

  .finish-class-button {
    width: 100%;
  }

  .play-hero img {
    width: 58px;
    height: 58px;
  }

  .oam-active-row,
  .oam-student-grid,
  .oam-not-here-row {
    grid-template-columns: 1fr;
  }

  .gateway-grid,
  .gateway-card.is-wide,
  .oam-stage-detail-card,
  .bad-guy-info-card {
    grid-template-columns: 1fr !important;
  }

  .oam-info-header.has-banner {
    aspect-ratio: 4 / 3;
  }

  .oam-stage-detail-card > img,
  .bad-guy-info-img {
    width: 100%;
    height: auto;
    max-height: 224px;
  }
}
