.rv-page {
  --rv-edge: #464158;
  --rv-paper: #1c1c2c;
  --rv-soft: #c3bed3;
  --rv-gold: #ffcf64;
  max-width: 1200px;
  margin: 0 auto;
}
.rv-page h1, .rv-page h2, .rv-page h3, .rv-page p, .rv-page blockquote { margin: 0; }
.rv-page ul { list-style: none; margin: 0; padding: 0; }
.rv-hero {
  --review-art: url("/assets/arena-review-amethyst.webp");
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: clamp(24px, 3.3vw, 46px);
  color: #faf9ff; border: 1px solid var(--rv-edge); border-radius: 6px;
  position: relative; isolation: isolate; overflow: hidden;
  background: #141422;
}
.rv-hero::before, .rv-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.rv-hero::before {
  z-index: -2;
  background: linear-gradient(90deg, #14142263, transparent 50% 70%, #10111eda 82%),
    var(--review-art) center 53% / cover no-repeat;
}
.rv-hero::after {
  z-index: -1;
  inset: -10% 24% -12% 45%;
  background: linear-gradient(109deg, transparent 22%, #a27afe30 39%, #e1beff74 50%, #a582ff35 60%, transparent 79%);
  mask-image: radial-gradient(ellipse at 56% 57%, #000 22%, #0009 51%, transparent 74%);
  opacity: 0;
}
.rv-hero-motion {
  display: none;
  place-items: center;
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d9ccf7;
}
.rv-hero-motion:is(:hover, :focus-visible) { background: #161322; color: #fff; }
.rv-hero-motion::before {
  content: "";
  width: 10px;
  height: 12px;
  border-inline: 3px solid currentColor;
}
.rv-hero[data-motion-paused] .rv-hero-motion::before {
  width: 0;
  height: 0;
  border: 0;
  border-block: 6px solid transparent;
  border-inline-start: 10px solid currentColor;
}
@media (prefers-reduced-motion: no-preference) {
  .rv-hero[data-motion-ready]::before {
    transform-origin: 64% 60%;
    animation: rv-art-drift 5.5s ease-in-out infinite alternate;
  }
  .rv-hero[data-motion-ready]::after { animation: rv-amethyst-glow 5.5s ease-in-out infinite; }
  .rv-hero[data-motion-paused]::before, .rv-hero[data-motion-paused]::after { animation-play-state: paused; }
  .rv-hero[data-motion-ready] .rv-hero-motion { display: grid; }
}
@keyframes rv-art-drift {
  from { transform: scale(1); }
  to { transform: scale(1.095) translateX(-1.5%); }
}
@keyframes rv-amethyst-glow {
  0%, 100% { opacity: 0; }
  18% { opacity: .24; }
  51% { opacity: 1; }
  82% { opacity: .32; }
  from { transform: translateX(-23%); }
  to { transform: translateX(22%); }
}
.rv-hero h1 { font-size: clamp(1.85rem, 3.5vw, 3.35rem); line-height: 1.04; letter-spacing: -.045em; }
.rv-hero h1 span { white-space: nowrap; color: #d7cbff; }
.rv-score { display: flex; align-items: center; gap: 17px; margin-top: 20px; }
.rv-score strong { font-size: clamp(2.3rem, 3.45vw, 3.45rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.rv-score small { color: var(--rv-soft); font-size: 1.125rem; font-weight: 500; }
.rv-score > div { display: grid; gap: 5px; color: var(--rv-soft); font-size: .94rem; }
.rv-score .gm-review-stars { display: flex; gap: 3px; background: none; }
.rv-score .gm-review-stars i {
  width: 19px; height: 19px;
  --cut: clamp(0%, calc(5 * var(--filled) - var(--offset, 0%)), 100%);
  background: linear-gradient(to right, var(--rv-gold) var(--cut), #69647c var(--cut));
  clip-path: polygon(50% 0, 62% 35%, 100% 37%, 71% 61%, 81% 98%, 50% 77%, 19% 98%, 29% 61%, 0 37%, 38% 35%);
}
.rv-score i:nth-child(2) { --offset: 100%; }
.rv-score i:nth-child(3) { --offset: 200%; }
.rv-score i:nth-child(4) { --offset: 300%; }
.rv-score i:nth-child(5) { --offset: 400%; }
.rv-breakdown { width: min(25%, 260px); min-width: 190px; }
.rv-breakdown h2 { margin-bottom: 7px; font-size: .85rem; font-weight: 600; }
.rv-breakdown li {
  display: grid; grid-template-columns: 29px 1fr 23px; gap: 9px; align-items: center;
  line-height: 1.45; font-size: .75rem; font-variant-numeric: tabular-nums;
}
.rv-breakdown b { color: var(--rv-gold); }
.rv-breakdown li > span:last-child { text-align: end; color: #dedbea; }
.rv-breakdown i { height: 4px; border-radius: 2px; background: linear-gradient(to right, #e5bc66 var(--share), #ffffff29 var(--share)); }
.rv-layout {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: start; gap: clamp(20px, 3vw, 44px); margin-top: clamp(24px, 3vw, 40px);
}
.rv-layout h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.2; letter-spacing: -.025em; }
.rv-feed > header { display: contents; }
.rv-feed > header h2 { display: none; }
.rv-write { display: none; }
.rv-list { display: grid; gap: 10px; }
.rv-list .gm-review-entry {
  border: 1px solid #413e52; padding: clamp(16px, 1.7vw, 23px);
  background: linear-gradient(115deg, #232233ef, #1c1d2be8); border-radius: 5px;
}
.rv-list .gm-review-entry header {
  display: grid; grid-template-columns: 37px minmax(0,1fr) auto;
  grid-template-areas: "avatar name date" "avatar stars date"; column-gap: 11px; row-gap: 0;
}
.rv-list .ah-review-avatar {
  grid-area: avatar; display: grid; place-items: center; height: 37px; width: 37px;
  background: linear-gradient(130deg, #70579d, #3e335d); color: #f2ecff; font-size: 1.1rem; font-weight: 700;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.rv-list header strong { grid-area: name; font-size: .94rem; }
.rv-list .rv-when {
  grid-area: date; display: inline-flex; align-items: center; gap: 6px;
  align-self: start; justify-self: end; white-space: nowrap;
}
.rv-list time { color: var(--rv-soft); }
.rv-list .gm-review-stars {
  grid-area: stars; justify-self: start; font-size: 1.12rem; letter-spacing: .05em;
  background-image: linear-gradient(to right, var(--rv-gold) var(--filled), #686378 var(--filled));
}
.rv-page .ah-review-quote { position: relative; padding-left: 24px; margin-top: 13px; }
.rv-page .ah-review-quote::before { content: "“" / ""; position: absolute; top: -.14em; left: 0; font: 700 1.95rem/1 Georgia, serif; color: #b499e5; }
.rv-list h3 { font-size: 1rem; line-height: 1.4; }
.rv-list p { color: #ddd9e7; font-size: .94rem; line-height: 1.55; white-space: pre-line; }
.rv-list h3 + p { margin-top: 4px; }
.rv-archive { margin-top: 14px; }
.rv-archive summary { width: fit-content; cursor: pointer; color: #d3c5fe; font-size: .85rem; padding-block: 8px; }
.rv-compose {
  position: relative; scroll-margin-block: 18px; min-width: 0; border-radius: 5px; border: 1px solid #564968;
  background: linear-gradient(145deg, #2c263c, #1c1d2c 68%);
  padding: clamp(18px, 2.4vw, 32px);
}
.rv-compose::before {
  content: ""; position: absolute; top: -1px; left: 7%; width: 40%; height: 2px;
  background: linear-gradient(90deg, #aa89ff, transparent);
}
.rv-compose form { margin-top: 22px; }
.rv-compose fieldset { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.rv-compose legend, .rv-compose form > label { display: block; padding: 0; font-weight: 600; font-size: .9rem; }
.rv-grade-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-grade { display: flex; }
.rv-grade label { position: relative; display: grid; place-items: center; width: 42px; min-height: 44px; cursor: pointer; }
.rv-grade label > span:first-of-type { color: #8d879c; font: 32px/1 "Segoe UI Symbol", sans-serif; }
.rv-grade label:has(:checked) > span:first-of-type,
.rv-grade label:has(~ label :checked) > span:first-of-type { color: var(--rv-gold); }
.rv-grade label:has(:focus-visible) { outline: 2px solid #bca9ff; outline-offset: -2px; border-radius: 3px; }
.rv-grade-word, .rv-counter, .rv-note { color: var(--rv-soft); font-size: .78rem; }
@media (hover:hover) {
  .rv-grade:has(label:hover) label > span:first-of-type { color: #8d879c; }
  .rv-grade:has(label:hover) label:is(:hover, :has(~ label:hover)) > span:first-of-type { color: var(--rv-gold); }
}
.rv-compose :is(input:not([type]), textarea) {
  display: block; width: 100%; margin: 7px 0 18px; padding: 10px 12px; color: #f6f3ff;
  background: #141421; border: 1px solid #555065; border-radius: 4px; font: inherit; font-size: .94rem;
}
.rv-compose :is(input,textarea)::placeholder { color: #aaa4ba; }
.rv-compose :is(input,textarea):focus-visible { outline: 2px solid #bca9ff; outline-offset: 1px; }
.rv-compose textarea { min-height: 88px; resize: vertical; }
.rv-compose .rv-counter { display: block; text-align: right; margin: -14px 1px 15px; font-variant-numeric: tabular-nums; }
.rv-submit {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 12px 22px; width: 100%; border: 0; background: transparent;
  color: #fff; font-weight: 700; line-height: 1.3; cursor: pointer;
}
.rv-submit::before {
  content: ""; position: absolute; inset: 0 6px; z-index: -1; transform: skewX(-12deg);
  background: linear-gradient(110deg, #60419f, #7454c6); border: 1px solid #a68cde; box-shadow: 0 3px #252a4d;
}
.rv-submit:is(:hover,:focus-visible)::before { background: linear-gradient(110deg, #7451b7, #8767da); }
@media (prefers-reduced-motion: no-preference) {
  .rv-submit span, .rv-grade label > span:first-of-type { transition: transform .18s ease, color .18s ease; }
  .rv-submit:is(:hover,:focus-visible) span { transform: translate(2px,-2px); }
  .rv-grade label:hover > span:first-of-type { transform: translateY(-2px); }
}
.rv-compose .rv-note { margin-top: 12px; text-align: center; }
.rv-compose .rv-error { color: #ffbcbe; font-size: .87rem; margin: 4px 0 12px; }
.rv-tick { color: #d6c1ff; font-size: 2.4rem; }
.rv-received p { color: #ddd9e7; margin: 12px 0 20px; }
.rv-received a, .rv-write { color: #d5c6ff; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .rv-layout { display: flex; flex-direction: column; }
  .rv-layout > * { width: 100%; }
  .rv-write { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-size: .83rem; white-space: nowrap; }
}
@media (max-width: 720px) {
  .rv-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; gap: 18px; padding: 19px; background: #141422;
  }
  .rv-hero::before {
    inset: 0 0 auto auto;
    width: min(100%, 400px); height: 174px;
    background: var(--review-art) right -144px top / 548px auto no-repeat;
    mask-image: linear-gradient(90deg, transparent, black 28%), linear-gradient(black 57%, transparent);
    mask-composite: intersect;
  }
  .rv-hero::after { inset: -4px 0 auto auto; width: min(67%, 280px); height: 177px; }
  @media (prefers-reduced-motion: no-preference) {
    .rv-hero[data-motion-ready] { padding-bottom: 49px; }
  }
  .rv-score { margin-top: 12px; }
  .rv-breakdown { width: 100%; min-width: 0; }
  .rv-breakdown ul { max-width: 290px; }
}
@media (max-width: 405px) {
  .rv-hero::before { background-size: 430px auto; background-position: right -117px top 8px; }
}
@media (max-width: 359px) {
  .rv-hero::before { background-size: 330px auto; background-position: right -88px top; }
}

.rv-exchange {
  display: inline-grid; place-items: center; width: 14px; height: 14px; flex: none;
  border: 1px solid currentColor; border-radius: 50%; color: var(--muted, #afb5cf);
  font: 600 9px/1 system-ui, sans-serif;
}
.rv-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.rv-page-num, .rv-page-step {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px;
  border: 1px solid #4a435f; border-radius: 4px; color: #f4f4fe; text-decoration: none;
}
.rv-page-num.is-on { background: #3a304c; border-color: #c7baff; }
.rv-page-step.is-off { opacity: .4; }
.rv-page-gap { padding: 0 2px; color: var(--muted, #afb5cf); }
