:root {
  --exe-green: #5dff9a;
  --exe-green-soft: rgba(93, 255, 154, .14);
  --exe-red: #ff3f55;
  --exe-gold: #f4c76a;
  --exe-bg: #020604;
  --exe-panel: rgba(7, 15, 11, .88);
  --exe-line: rgba(115, 255, 169, .18);
  --exe-copy: #d8eee0;
  --exe-muted: #7f9d89;
}

body[data-page="rina-exe"] {
  min-height: 100vh;
  color: var(--exe-copy);
  background:
    radial-gradient(circle at 70% -10%, rgba(41, 255, 125, .09), transparent 34rem),
    linear-gradient(180deg, #020604, #050908 55%, #020403);
}

body[data-page="rina-exe"]::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 255, 168, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 255, 168, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

.rina-exe-page { min-height: 100vh; }

.exe-hub {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 72px;
}

.exe-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--exe-line);
}

.exe-command-bar__identity,
.exe-command-bar__actions,
.exe-featured__legend,
.exe-section-title,
.exe-mini-console,
.exe-dialog__head {
  display: flex;
  align-items: center;
}

.exe-command-bar__identity { gap: 13px; }
.exe-terminal-icon {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(93, 255, 154, .3);
  border-radius: 13px;
  color: var(--exe-green);
  background: rgba(93, 255, 154, .06);
  font: 700 13px/1 ui-monospace, Consolas, monospace;
  box-shadow: inset 0 0 20px rgba(93, 255, 154, .04);
}

.exe-command-bar h1,
.exe-section-title h2,
.exe-dialog h2,
.exe-featured h2 {
  margin: 0;
  color: #f3fff6;
  letter-spacing: -.04em;
}

.exe-command-bar h1 { font-size: clamp(1.45rem, 2vw, 2rem); }
.exe-micro {
  display: block;
  margin-bottom: 4px;
  color: var(--exe-green);
  font: 700 10px/1.2 ui-monospace, Consolas, monospace;
  letter-spacing: .16em;
}

.exe-command-bar__actions { justify-content: flex-end; gap: 8px; }
.exe-access-pill,
.exe-chip {
  border: 1px solid var(--exe-line);
  border-radius: 999px;
  color: var(--exe-muted);
  background: rgba(255,255,255,.025);
  font: 700 10px/1 ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.exe-access-pill { padding: 9px 12px; }
.exe-chip { padding: 9px 13px; cursor: pointer; }

.exe-icon-button {
  display: inline-flex;
  min-width: 58px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--exe-line);
  border-radius: 12px;
  color: #a5c4ae;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.exe-icon-button svg,
.exe-player__control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.exe-icon-button span { font-size: 11px; font-weight: 750; }
.exe-icon-button:hover,
.exe-icon-button:focus-visible {
  color: #ecfff2;
  border-color: rgba(93,255,154,.48);
  background: rgba(93,255,154,.09);
  outline: none;
  transform: translateY(-1px);
}
.exe-icon-button--infect {
  color: #031107;
  border-color: var(--exe-green);
  background: var(--exe-green);
  box-shadow: 0 0 22px rgba(93,255,154,.17);
}
.exe-icon-button--infect:hover,
.exe-icon-button--infect:focus-visible { color: #000; background: #8affb5; }

.exe-system-message {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--exe-muted);
  font-size: 12px;
}
.exe-system-message.is-error { color: #ff8795; }

.exe-featured {
  position: relative;
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--exe-line);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(5,13,9,.98) 0 47%, rgba(5,13,9,.72)),
    url("ouija-assets/rina-exe/rina-exe-banner.png") center 34% / cover;
  box-shadow: 0 20px 70px rgba(0,0,0,.34);
}
.exe-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0 55%, rgba(93,255,154,.06));
}
.exe-featured__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(30px, 5vw, 64px);
}
.exe-featured h2 { max-width: 540px; font-size: clamp(2rem, 5vw, 4.2rem); line-height: .98; }
.exe-featured__copy > p { max-width: 630px; margin: 18px 0 0; color: #9bb2a2; line-height: 1.65; }
.exe-featured__legend { flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.exe-featured__legend span {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  color: #b6cbbb;
  background: rgba(0,0,0,.24);
  font-size: 11px;
}
.exe-featured__legend b { margin-right: 5px; color: var(--exe-green); }

.exe-featured__portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 330px;
}
.exe-featured__portrait img {
  position: relative;
  z-index: 1;
  width: min(100%, 350px);
  height: 115%;
  object-fit: contain;
  object-position: bottom;
  filter: saturate(.75) contrast(1.1) drop-shadow(0 0 34px rgba(53,255,134,.16));
  animation: exeRinaBreathe 5.4s ease-in-out infinite;
}
.exe-featured__halo {
  position: absolute;
  width: 260px;
  aspect-ratio: 1;
  top: 12%;
  border: 1px dashed rgba(93,255,154,.22);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(93,255,154,.04);
  animation: exeHaloSpin 22s linear infinite;
}
.exe-featured__portrait > span {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 16px;
  color: rgba(141,255,181,.66);
  font: 700 9px/1 ui-monospace, Consolas, monospace;
  letter-spacing: .12em;
}

.exe-library { margin-top: 48px; }
.exe-section-title { justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.exe-section-title h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.exe-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.exe-story-card,
.exe-story-skeleton {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--story-accent, var(--exe-green)) 22%, transparent);
  border-radius: 18px;
  background: #07100b;
}
.exe-story-skeleton {
  background: linear-gradient(110deg, #07100b 30%, #0c1810 45%, #07100b 60%);
  background-size: 200% 100%;
  animation: exeSkeleton 1.6s linear infinite;
}
.exe-story-card { cursor: pointer; isolation: isolate; }
.exe-story-card__cover {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.58) contrast(1.12);
  opacity: .43;
  transition: opacity .25s ease, transform .45s ease;
}
.exe-story-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 18%, rgba(2,7,4,.48) 52%, #020604 100%),
    radial-gradient(circle at 80% 8%, color-mix(in srgb, var(--story-accent) 14%, transparent), transparent 35%);
}
.exe-story-card:hover .exe-story-card__cover { opacity: .58; transform: scale(1.035); }
.exe-story-card__body {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 19px;
}
.exe-story-card__top {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.exe-story-card__badge,
.exe-story-card__progress {
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  color: #dcebe0;
  background: rgba(1,5,3,.72);
  backdrop-filter: blur(9px);
  font: 700 9px/1 ui-monospace, Consolas, monospace;
  letter-spacing: .09em;
}
.exe-story-card__badge.is-locked { color: var(--story-accent); }
.exe-story-card h3 { margin: 0; color: #f2fff6; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.exe-story-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 16px;
  color: #8fa497;
  font-size: 12px;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.exe-story-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.exe-story-card__footer span { color: var(--story-accent); font: 700 10px/1 ui-monospace, Consolas, monospace; }
.exe-story-card__footer button,
.exe-text-button,
.exe-intensity-list button,
.exe-custom-panel button,
.exe-story-detail__action {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--story-accent, var(--exe-green)) 50%, transparent);
  border-radius: 9px;
  color: color-mix(in srgb, var(--story-accent, var(--exe-green)) 86%, white);
  background: color-mix(in srgb, var(--story-accent, var(--exe-green)) 10%, transparent);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.exe-mini-console {
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 15px;
  background: rgba(255,255,255,.02);
}
.exe-mini-console__icon { color: var(--exe-green); font-size: 23px; }
.exe-mini-console div { min-width: 0; flex: 1; }
.exe-mini-console strong { color: #dfffe8; font-size: 13px; }
.exe-mini-console p { margin: 3px 0 0; color: var(--exe-muted); font-size: 11px; }

.exe-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(86vh, 820px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(93,255,154,.24);
  border-radius: 20px;
  color: var(--exe-copy);
  background: rgba(4,10,7,.98);
  box-shadow: 0 30px 100px rgba(0,0,0,.75);
}
.exe-dialog::backdrop { background: rgba(0,3,2,.78); backdrop-filter: blur(12px); }
.exe-dialog--compact { padding: 24px; }
.exe-dialog__head { justify-content: space-between; gap: 18px; }
.exe-dialog > p { color: var(--exe-muted); font-size: 13px; line-height: 1.55; }
.exe-dialog__close {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: #b9cbbf;
  background: rgba(255,255,255,.03);
  font-size: 22px;
  cursor: pointer;
}
.exe-dialog--story > .exe-dialog__close { position: absolute; z-index: 3; top: 16px; right: 16px; }

.exe-intensity-list { display: grid; gap: 9px; margin-top: 19px; }
.exe-intensity-list article {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}
.exe-plan-icon { display: grid; width: 36px; aspect-ratio: 1; place-items: center; border-radius: 10px; color: var(--exe-green); background: var(--exe-green-soft); }
.exe-intensity-list strong,
.exe-intensity-list small { display: block; }
.exe-intensity-list strong { color: #e8ffef; font-size: 13px; }
.exe-intensity-list small { margin-top: 3px; color: var(--exe-muted); font-size: 10px; }
.exe-intensity-list article.is-owned { border-color: rgba(93,255,154,.26); }
.exe-intensity-list button:disabled { opacity: .5; cursor: default; }

.exe-custom-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--exe-line); }
.exe-custom-panel label { display: block; color: #dfffe8; font-size: 12px; font-weight: 750; }
.exe-custom-panel label small { display: block; margin-top: 3px; color: var(--exe-muted); font-weight: 400; }
.exe-custom-panel textarea {
  width: 100%;
  margin: 9px 0;
  padding: 11px;
  resize: vertical;
  border: 1px solid var(--exe-line);
  border-radius: 10px;
  color: #e9fff0;
  background: #020604;
}
.exe-safety-list { display: grid; gap: 11px; margin-top: 20px; }
.exe-safety-list > div { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start; }
.exe-safety-list span { display: grid; width: 31px; aspect-ratio: 1; place-items: center; border-radius: 9px; color: var(--exe-green); background: var(--exe-green-soft); }
.exe-safety-list p { margin: 3px 0; color: var(--exe-muted); font-size: 12px; line-height: 1.5; }
.exe-safety-list strong { color: #e8ffef; }

.exe-story-detail { --story-accent: var(--exe-green); }
.exe-story-detail__hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 28px;
  background: #030705;
}
.exe-story-detail__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: saturate(.6); }
.exe-story-detail__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, #040a07); }
.exe-story-detail__title { position: relative; z-index: 1; }
.exe-story-detail__title h2 { max-width: 580px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: .95; }
.exe-story-detail__title p { margin: 10px 0 0; color: #a8bcae; }
.exe-story-detail__body { padding: 24px 28px 28px; }
.exe-story-detail__body > p { color: #94aa9b; line-height: 1.65; }
.exe-story-detail__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.exe-story-detail__meta span { padding: 7px 9px; border-radius: 8px; color: #bfd1c4; background: rgba(255,255,255,.04); font-size: 10px; }
.exe-story-detail__action { min-height: 46px; width: 100%; }

.exe-player {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  overflow: hidden;
  color: #eaffef;
  background: #010403;
  isolation: isolate;
}
.exe-player[hidden] { display: none !important; }
.exe-player__canvas,
.exe-player__noise { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.exe-player__noise {
  z-index: -1;
  opacity: .18;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,.025) 3px);
  mix-blend-mode: screen;
}
.exe-player__topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 18px 12px;
  border-bottom: 1px solid rgba(116,255,168,.11);
  background: linear-gradient(180deg, rgba(1,5,3,.9), rgba(1,5,3,.2));
}
.exe-player__control {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  border: 0;
  color: #a8c2af;
  background: transparent;
  cursor: pointer;
}
.exe-player__control:last-child { justify-self: end; }
.exe-player__control span { font-size: 11px; font-weight: 750; }
.exe-player__chapter { text-align: center; }
.exe-player__chapter small,
.exe-player__chapter strong { display: block; }
.exe-player__chapter small { color: var(--story-accent, var(--exe-green)); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .16em; }
.exe-player__chapter strong { margin-top: 4px; font-size: 11px; letter-spacing: .08em; }

.exe-player__status {
  position: absolute;
  z-index: 8;
  top: 68px;
  right: 16px;
  width: min(300px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid rgba(93,255,154,.22);
  border-radius: 16px;
  background: rgba(3,10,6,.96);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.exe-player__status > button:first-child { position: absolute; top: 10px; right: 12px; border: 0; color: #9ab0a0; background: none; cursor: pointer; }
.exe-player__status h2 { margin: 0 0 14px; font-size: 15px; }
.exe-player__status dl { display: grid; gap: 8px; margin: 0; }
.exe-player__status dl > div { display: flex; justify-content: space-between; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.06); }
.exe-player__status dt { color: var(--exe-muted); font-size: 11px; }
.exe-player__status dd { margin: 0; color: var(--story-accent, var(--exe-green)); font: 700 11px/1 ui-monospace, monospace; }
.exe-player__status p { color: var(--exe-muted); font-size: 11px; }

.exe-player__stage {
  display: grid;
  width: min(1280px, 100%);
  height: 100%;
  grid-template-columns: minmax(300px, .82fr) minmax(440px, 1.18fr);
  align-items: end;
  margin: 0 auto;
  padding: 80px clamp(20px, 5vw, 70px) clamp(24px, 5vh, 54px);
}
.exe-player__character {
  position: relative;
  align-self: stretch;
  min-height: 0;
  pointer-events: none;
}
.exe-player__character img {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -5%;
  width: 100%;
  height: 108%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 0 36px color-mix(in srgb, var(--story-accent, var(--exe-green)) 17%, transparent));
  animation: exeStoryBreath 4.8s ease-in-out infinite;
}
.exe-player__character[data-position="left"] img { transform: translateX(-7%); }
.exe-player__character[data-position="right"] img { transform: translateX(8%); }
.exe-player__character-halo {
  position: absolute;
  width: min(65%, 330px);
  aspect-ratio: 1;
  top: 14%;
  left: 50%;
  border: 1px dashed color-mix(in srgb, var(--story-accent, var(--exe-green)) 28%, transparent);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: exeHaloSpin 18s linear infinite;
}
.exe-player__narrative {
  position: relative;
  z-index: 2;
  max-height: calc(100vh - 124px);
  overflow: auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid color-mix(in srgb, var(--story-accent, var(--exe-green)) 22%, transparent);
  border-radius: 22px;
  background: rgba(2,8,5,.82);
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
}
.exe-player__ambient {
  display: block;
  color: color-mix(in srgb, var(--story-accent, var(--exe-green)) 75%, white);
  font: 700 9px/1.5 ui-monospace, Consolas, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.exe-player__narration { margin: 12px 0 18px; color: #bdcec1; font-size: clamp(13px, 1.4vw, 16px); line-height: 1.65; }
.exe-player__dialogue { display: grid; gap: 9px; }
.exe-dialogue-line { padding: 11px 13px; border-left: 2px solid var(--story-accent, var(--exe-green)); background: rgba(255,255,255,.025); }
.exe-dialogue-line strong { display: block; margin-bottom: 4px; color: var(--story-accent, var(--exe-green)); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .09em; }
.exe-dialogue-line p { margin: 0; color: #ecfff1; font-size: 13px; line-height: 1.5; }
.exe-player__choices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 18px; }
.exe-story-choice {
  display: grid;
  min-height: 55px;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  color: #dff5e5;
  text-align: left;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.exe-story-choice:hover,
.exe-story-choice:focus-visible { border-color: var(--story-accent, var(--exe-green)); background: color-mix(in srgb, var(--story-accent, var(--exe-green)) 9%, transparent); outline: 0; transform: translateY(-1px); }
.exe-story-choice__icon { display: grid; width: 28px; aspect-ratio: 1; place-items: center; border-radius: 8px; color: var(--story-accent, var(--exe-green)); background: color-mix(in srgb, var(--story-accent, var(--exe-green)) 10%, transparent); font-size: 13px; }
.exe-story-choice span:last-child { font-size: 11px; font-weight: 750; line-height: 1.3; }
.exe-story-ending { text-align: center; }
.exe-story-ending h2 { margin: 0; color: #f0fff4; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; }
.exe-story-ending p { color: #a9bdae; line-height: 1.65; }
.exe-story-ending__rarity { display: inline-block; margin-bottom: 12px; color: var(--story-accent, var(--exe-green)); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .14em; }
.exe-story-ending__actions { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }

.rina-exe-runtime {
  position: fixed;
  z-index: 2147483200;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(0,255,103,.06), transparent 46%),
    radial-gradient(ellipse at center, transparent 42%, rgba(0,14,6,.62) 100%);
  animation: exeVignette 8s ease-in-out infinite alternate;
}
.rina-exe-runtime__grain { position: absolute; inset: 0; opacity: .14; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(81,255,146,.03) 4px); }
.rina-exe-hypno { position: absolute; top: 50%; left: 50%; width: min(62vmin, 520px); aspect-ratio: 1; transform: translate(-50%,-50%); opacity: .83; }
.rina-exe-hypno__rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(65,255,137,.78) 0 9deg, rgba(0,17,7,.74) 9deg 18deg);
  mask-image: radial-gradient(circle, transparent 0 8%, #000 9% 60%, transparent 61% 100%);
  animation: exeHaloSpin 4.2s linear infinite;
  filter: drop-shadow(0 0 18px rgba(52,255,129,.25));
}
.rina-exe-runtime[data-tier="deeper"] .rina-exe-hypno__rings { animation-duration: 2.8s; }
.rina-exe-runtime[data-tier="total"] .rina-exe-hypno__rings,
.rina-exe-runtime[data-tier="permanent"] .rina-exe-hypno__rings { animation-duration: 1.3s; filter: drop-shadow(0 0 28px rgba(52,255,129,.42)); }
.rina-exe-hypno__face { position: absolute; inset: 29%; overflow: hidden; border: 1px solid rgba(105,255,158,.44); border-radius: 50%; opacity: .72; box-shadow: 0 0 30px rgba(54,255,130,.2); }
.rina-exe-hypno__face img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.4) sepia(.4) hue-rotate(80deg) contrast(1.15); }
.rina-exe-popup-layer { position: absolute; inset: 0; }
.rina-exe-runtime__counter,
.rina-exe-runtime__eject,
.rina-exe-runtime__upgrades,
.rina-exe-runtime__toast { position: absolute; pointer-events: auto; }
.rina-exe-runtime__counter { top: max(14px, env(safe-area-inset-top)); right: 14px; padding: 9px 11px; border: 1px solid rgba(79,255,145,.28); border-radius: 8px; color: #a8ffc7; background: rgba(0,9,4,.74); font: 700 10px/1 ui-monospace, monospace; }
.rina-exe-runtime__eject { bottom: max(14px, env(safe-area-inset-bottom)); left: 14px; min-height: 37px; padding: 0 13px; border: 1px solid rgba(255,104,121,.45); border-radius: 8px; color: #ffc0c8; background: rgba(22,1,5,.82); cursor: pointer; }
.rina-exe-runtime__upgrades { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; gap: 6px; }
.rina-exe-runtime__upgrades button { min-height: 34px; border: 1px solid rgba(91,255,151,.28); border-radius: 8px; color: #aaffc8; background: rgba(0,13,5,.82); font-size: 9px; cursor: pointer; }
.rina-exe-runtime__toast { left: 50%; bottom: 72px; max-width: min(88vw, 420px); padding: 10px 13px; border: 1px solid rgba(93,255,154,.26); border-radius: 9px; color: #dffff0; background: rgba(0,9,4,.92); transform: translateX(-50%); font-size: 11px; }
.rina-exe-popup { position: absolute; max-width: min(280px, 72vw); pointer-events: none; animation: exePopupLife var(--rina-exe-life, 5s) ease both; }
.rina-exe-popup--image { width: clamp(96px, 15vw, 190px); filter: drop-shadow(0 0 15px rgba(62,255,136,.36)); }
.rina-exe-popup--image img,
img.rina-exe-popup--image { max-width: 100%; max-height: min(32vh, 260px); object-fit: contain; }
.rina-exe-popup--text { pointer-events: auto; touch-action: pan-y; padding: 12px 15px; border: 1px solid rgba(91,255,150,.35); border-radius: 9px; color: #dffff0; background: rgba(1,13,6,.89); box-shadow: 0 0 24px rgba(44,255,124,.12); font: 800 clamp(12px,2vw,16px)/1.2 ui-monospace, monospace; }
.rina-exe-popup--swirl { width: clamp(44px, 7vw, 82px); aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(rgba(72,255,141,.76) 0 12deg, rgba(1,11,5,.7) 12deg 24deg); animation: exeFloatSwirl var(--rina-exe-life, 5s) ease both; }

@keyframes exeRinaBreathe { 50% { transform: translateY(-5px) scale(1.006); } }
@keyframes exeStoryBreath { 50% { translate: 0 -5px; scale: 1.006; } }
@keyframes exeHaloSpin { to { rotate: 1turn; } }
@keyframes exeSkeleton { to { background-position: -200% 0; } }
@keyframes exeVignette { to { filter: brightness(1.13); } }
@keyframes exePopupLife {
  0% { opacity: 0; transform: translate(var(--rina-exe-drift-x), var(--rina-exe-drift-y)) rotate(var(--rina-exe-rotation)) scale(.8); }
  12%, 76% { opacity: 1; }
  100% { opacity: 0; transform: translate(0,0) rotate(var(--rina-exe-end-rotation)) scale(1.04); }
}
@keyframes exeFloatSwirl {
  0% { opacity: 0; transform: translate(var(--rina-exe-drift-x), var(--rina-exe-drift-y)) rotate(0) scale(.65); }
  16%, 70% { opacity: .82; }
  100% { opacity: 0; transform: translate(calc(var(--rina-exe-drift-x) * -2), calc(var(--rina-exe-drift-y) * -2)) rotate(440deg) scale(1.1); }
}

@media (max-width: 820px) {
  .exe-hub { width: min(100% - 22px, 680px); padding-top: 86px; }
  .exe-command-bar { align-items: flex-start; }
  .exe-command-bar__actions { flex-wrap: wrap; }
  .exe-icon-button { min-width: 44px; }
  .exe-icon-button span { display: none; }
  .exe-featured { min-height: 300px; grid-template-columns: 1fr; }
  .exe-featured__copy { padding: 30px 24px; }
  .exe-featured__portrait { display: none; }
  .exe-story-grid { grid-template-columns: 1fr; }
  .exe-story-card,
  .exe-story-card__body { min-height: 250px; }
  .exe-player__stage { grid-template-columns: 1fr; padding: 75px 12px max(12px, env(safe-area-inset-bottom)); }
  .exe-player__character { position: absolute; inset: 48px 0 33%; opacity: .42; }
  .exe-player__character img { left: 50%; width: min(92vw, 470px); transform: translateX(-50%) !important; }
  .exe-player__narrative { align-self: end; max-height: 58vh; padding: 18px; border-radius: 18px; background: rgba(2,8,5,.9); }
  .exe-player__choices { grid-template-columns: 1fr; }
  .exe-player__control span { display: none; }
  .exe-player__topbar { grid-template-columns: 44px 1fr 44px; }
  .rina-exe-hypno { width: min(84vmin, 430px); }
  .rina-exe-runtime__upgrades { top: max(54px, calc(env(safe-area-inset-top) + 42px)); right: 10px; bottom: auto; flex-direction: column; }
  .rina-exe-popup--text { max-width: min(72vw, 250px); }
}

@media (prefers-reduced-motion: reduce) {
  .exe-featured__portrait img,
  .exe-featured__halo,
  .exe-player__character img,
  .exe-player__character-halo,
  .rina-exe-hypno__rings { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
