@import url('./mode-buttons.css?v=2');

.page-art {
  --art-accent: #a5e8f2;
  --art-glow: #65cee637;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 164px;
  margin: 0 0 24px;
  padding: 25px 43% 25px 28px;
  overflow: hidden;
  border: 1px solid #ffffff20;
  border-left: 3px solid var(--art-accent);
  border-radius: 14px;
  background: radial-gradient(ellipse at 83% 70%, var(--art-glow), transparent 58%), linear-gradient(110deg, #202331, #191c29);
}
.page-art--practice { --art-accent: #ffb3d1; --art-glow: #f879b13b; }
.page-art--wrong { --art-accent: #a3efd1; --art-glow: #58cfaa35; }
.page-art--aops { --art-accent: #ccb9ff; --art-glow: #ac8bfc38; }
.page-art--tairitsu { --art-accent: #bcb6ff; --art-glow: #9681ee40; }
.page-art-copy { position: relative; z-index: 2; min-width: 0; }
.page-art-label { display: block; color: var(--art-accent); font-size: 10px; line-height: 1.5; font-weight: 650; letter-spacing: 1.7px; text-transform: uppercase; }
.page-art-label > span { margin: 0 7px; opacity: .45; }
.page-art-copy p { margin: 9px 0 0; color: #f7f5fc; font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.25px; }
.page-art-beats { display: flex; align-items: end; gap: 4px; height: 10px; margin-top: 14px; opacity: .8; }
.page-art-beats i { width: 3px; height: 5px; border-radius: 1px; background: var(--art-accent); }
.page-art-beats i:nth-child(2), .page-art-beats i:nth-child(4) { height: 8px; }
.page-art-beats i:nth-child(3) { height: 10px; }
.page-art-stage { pointer-events: none; position: absolute; width: 43%; height: 100%; right: 0; bottom: 0; z-index: 1; }
.page-art-stage img { position: absolute; display: block; max-width: none; height: calc(100% - 16px); width: auto; right: 32px; top: 8px; object-fit: contain; border: 1px solid #ffffff40; border-radius: 10px; box-shadow: 0 8px 28px #0005; }
.page-art-orbit { position: absolute; width: 195px; height: 195px; right: 17px; top: -15px; border: 1px solid var(--art-accent); opacity: .23; border-radius: 50%; box-shadow: 0 0 0 15px #ffffff05, 0 0 0 32px #ffffff04; }
.page-art--figure .page-art-stage img { right: 68px; border-radius: 7px; }
.page-art--landscape .page-art-stage { width: 47%; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 21%); -webkit-mask-image: linear-gradient(to right, transparent, #000 21%); }
.page-art--landscape .page-art-stage img { width: 100%; height: 100%; top: 0; right: 0; object-fit: cover; object-position: 64% center; border: 0; border-radius: 0; box-shadow: none; }
.page-art--landscape .page-art-orbit { display: none; }
.page-art--review-square { min-height: 234px; padding-right: 260px; }
.page-art--review-square .page-art-stage { width: 200px; height: 200px; right: 24px; top: 50%; bottom: auto; transform: translateY(-50%); }
.page-art--review-square .page-art-stage img { position: static; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; transform: none; border: 0; border-radius: 0; }
.page-art--review-square .page-art-orbit { display: none; }
.page-art--poster { min-height: 250px; padding-right: 48%; }
.page-art--poster .page-art-stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; min-width: 0; min-height: 0; box-sizing: border-box; width: 46%; padding: 12px; }
.page-art--poster .page-art-stage img { position: static; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.page-art--poster .page-art-orbit { display: none; }
.page-art--challenge-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px; min-height: 0; padding: 16px 24px; background: radial-gradient(ellipse at 85% 55%, #8e40c548, transparent 60%), linear-gradient(110deg, #151c38, #261538); }
.page-art--challenge-scene .page-art-copy p { max-width: 540px; font-size: clamp(18px, 2vw, 24px); }
.page-art--challenge-scene .page-art-stage { position: static; width: 100%; height: auto; }
.page-art--challenge-scene .page-art-stage img { position: static; width: 100%; height: 168px; max-width: 100%; max-height: 168px; object-fit: contain; border: 0; border-radius: 8px; box-shadow: none; transform: none; }
.page-art--challenge-scene .page-art-orbit { display: none; }
@media (max-width: 650px) {
  .page-art { min-height: 144px; margin-bottom: 20px; padding: 20px 42% 20px 18px; }
  .page-art-copy p { font-size: 16px; line-height: 1.4; }
  .page-art-label { font-size: 8px; letter-spacing: .8px; }
  .page-art-label > span { margin: 0 4px; }
  .page-art-stage { width: 40%; }
  .page-art-stage img { max-width: calc(100% - 12px); height: auto; max-height: calc(100% - 16px); right: 8px; top: 50%; transform: translateY(-50%); }
  .page-art--figure .page-art-stage img { height: calc(100% - 16px); width: auto; right: 18px; }
  .page-art--landscape .page-art-stage { width: 44%; }
  .page-art--landscape .page-art-stage img { max-width: none; max-height: none; height: 100%; top: 0; right: 0; transform: none; object-position: 65% center; }
  .page-art-orbit { width: 150px; height: 150px; right: -16px; top: -2px; }
  .page-art-beats { margin-top: 11px; }
  .page-art--poster { flex-direction: column; align-items: stretch; gap: 18px; padding: 20px; }
  .page-art--poster .page-art-stage { position: relative; display: block; width: 100%; height: auto; padding: 0; }
  .page-art--poster .page-art-stage img { height: auto; max-height: 320px; }
  .page-art--review-square { flex-direction: column; align-items: stretch; gap: 16px; min-height: 0; padding: 20px; }
  .page-art--review-square .page-art-stage { position: static; align-self: center; width: min(100%, 200px); height: auto; aspect-ratio: 1; transform: none; }
  .page-art--review-square .page-art-stage img { height: auto; max-height: none; }
  .page-art--challenge-scene { grid-template-columns: minmax(0, 1fr); gap: 10px; min-height: 0; padding: 14px 18px; }
  .page-art--challenge-scene .page-art-copy p { max-width: none; font-size: 16px; }
  .page-art--challenge-scene .page-art-stage img { height: 128px; max-height: 128px; }
}
@media (max-width: 380px) {
  .page-art { min-height: 136px; padding-left: 13px; }
  .page-art-copy p { font-size: 14px; }
  .page-art-label { font-size: 7px; }
  .page-art--figure .page-art-stage img { right: 10px; }
}

/* Topic video belongs inside the companion banner, between copy and artwork. */
.page-art--with-action { display: grid; grid-template-columns: minmax(0, 1fr) 340px minmax(0, 1fr); gap: 24px; min-height: 184px; padding: 20px 28px; }
.page-art--with-action .page-art-copy { grid-column: 1; }
.page-art--with-action .page-art-copy p { font-size: 18px; }
.page-art-action { position: relative; z-index: 2; display: flex; justify-content: center; min-width: 0; }
.page-art-action .topic-video-entry { width: 340px; max-width: 100%; }
.page-art--with-action .page-art-stage { position: static; display: flex; align-items: center; justify-content: flex-end; grid-column: 3; width: 100%; height: 144px; padding: 0; mask-image: none; -webkit-mask-image: none; transform: none; }
.page-art--with-action .page-art-stage img { position: static; width: auto; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; transform: none; }
.page-art--with-action .page-art-orbit { display: none; }
@media (max-width: 940px) {
  .page-art--with-action { grid-template-columns: minmax(0, 1fr) 120px; gap: 18px 24px; padding: 20px; }
  .page-art--with-action .page-art-copy { grid-column: 1; grid-row: 1; }
  .page-art--with-action .page-art-stage { grid-column: 2; grid-row: 1; height: 110px; }
  .page-art--with-action .page-art-action { grid-column: 1 / -1; grid-row: 2; margin-bottom: 6px; }
}
@media (max-width: 400px) {
  .page-art--with-action { grid-template-columns: minmax(0, 1fr) 84px; gap: 16px; padding: 16px; }
  .page-art--with-action .page-art-copy p { font-size: 15px; }
  .page-art--with-action .page-art-stage { height: 84px; }
}
