/* RagAyothaya entry: artwork, story and real menu controls remain separate. */
:root {
  --rag-gold: #e4c481;
  --rag-gold-deep: #8d622d;
  --rag-cream: #f7e8c8;
  --rag-ink: #54391f;
  --rag-red: #7c201c;
  --rag-font: 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', Tahoma, sans-serif;
  --rag-serif: 'Baskerville', 'Palatino Linotype', Georgia, serif;
}
.rag-icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.rag-entry, .rag-dialog, .rag-game-hud { font-family: var(--rag-font); }
.rag-entry *, .rag-dialog *, .rag-game-hud * { font-family: inherit; }
.rag-entry {
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 70px 10.5vw 65px 30px;
  overflow-y: auto;
  background: #302219;
  color: var(--rag-cream);
}
.rag-world-art { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 37% center; }
.rag-entry::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(0deg, #201409a8, transparent 15%, transparent 85%, #36201528), linear-gradient(90deg, transparent 38%, #3a27120a 65%, #35201535);
  pointer-events: none;
}
.rag-entry::after { content: ''; position: absolute; inset: 13px; border: 1px solid #ffe6a925; z-index: -1; pointer-events: none; }
.rag-topbar { position: absolute; top: 19px; right: 25px; display: flex; align-items: center; gap: 10px; z-index: 5; }
.rag-top-control {
  display: flex; align-items: center; gap: 8px; min-height: 33px;
  padding: 4px 12px; border: 1px solid #dac79545; border-radius: 999px;
  background: #2d261ccc; color: #f0d99c; font-size: 12px;
  box-shadow: 0 2px 8px #0003; cursor: pointer; backdrop-filter: blur(8px);
}
.rag-top-control svg { width: 21px; height: 21px; fill: currentColor; flex-shrink: 0; }
.rag-top-control select { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; outline-offset: 3px; cursor: pointer; max-width: 110px; }
.rag-top-control option { color: var(--rag-ink); background: #f7e8c8; }
.rag-chevron { font: 24px/.8 var(--rag-serif); }
.rag-entry-quote { position: absolute; top: 39px; left: 32px; color: #ffedc8; font-size: 14px; font-style: italic; line-height: 1.75; text-shadow: 0 2px 3px #381a0d, 0 0 10px #000; }
.rag-entry .loading-items { position: relative; top: auto; width: min(420px, 35vw); gap: 0; flex-shrink: 0; }
.rag-title { width: calc(100% + 124px); margin: 0 -62px 0; line-height: 0; }
.rag-title img { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 2px #301a18a8); }
.rag-subtitle { color: #452817; margin-top: 1px; font: 22px/1.15 var(--rag-serif); letter-spacing: .035em; text-align: center; text-shadow: 0 1px 4px #ffeccd; }
.rag-tagline { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 7px -20px 18px; font-size: 14px; line-height: 1.5; color: #543218; text-shadow: 0 1px 3px #ffeacd; text-align: center; }
.rag-tagline > span:first-child, .rag-tagline > span:last-child { color: #9d7135; font-size: 18px; }
.rag-introduction {
  position: relative; width: 100%; padding: 15px 14px 16px;
  border: 2px solid #b3823a; border-radius: 5px;
  background: radial-gradient(ellipse at 50% 45%, #fff4d9ed, #ddbf86ed), repeating-linear-gradient(25deg, #dfc99c10, #e5d1ad10 3px, #b0926010 4px);
  color: var(--rag-ink); text-align: center;
  box-shadow: 0 4px 16px #311a1466, inset 0 0 0 2px #f4dd96, inset 0 0 0 4px #9c6e2d, inset 0 0 23px #94703c55;
}
.rag-introduction h3 { margin: 0 0 9px; font-size: 24px; font-weight: 400; line-height: 1.4; }
.rag-introduction h3 > span:not([data-rag-i18n]) { font-size: 17px; color: #a67b3c; }
.rag-story { font-size: 12px; line-height: 1.85; }
.rag-story p { margin: 0; }
.rag-corner { position: absolute; width: 23px; height: 23px; border: 2px solid #a27329; border-radius: 3px 0 12px 0; background: radial-gradient(circle at 0 0, #efcf77, #896022 65%, transparent 67%); box-shadow: inset 0 0 0 1px #f7e5a2; }
.rag-corner::after { content: '❧'; position: absolute; left: -2px; top: -8px; font: 30px/1 var(--rag-serif); color: #f1ce72; text-shadow: 1px 1px #71491f; }
.rag-corner.top-left { top: -3px; left: -3px; }
.rag-corner.top-right { top: -3px; right: -3px; transform: rotate(90deg); }
.rag-corner.bottom-right { bottom: -3px; right: -3px; transform: rotate(180deg); }
.rag-corner.bottom-left { bottom: -3px; left: -3px; transform: rotate(270deg); }
.rag-menu-actions { width: 85%; display: flex; flex-direction: column; gap: 7px; margin-top: 18px; }
.rag-menu-button {
  position: relative; display: flex; justify-content: center; align-items: center; gap: 13px;
  width: 100%; min-height: 43px; padding: 8px 42px;
  color: #f7e5bb; border: 1px solid #d8b16a; border-radius: 3px;
  background: linear-gradient(110deg, #34251de8, #423121eb 45%, #33251de8);
  box-shadow: inset 0 0 0 2px #584123, inset 0 0 0 3px #ba8b4280, 0 3px 10px #21130755;
  font-size: 14px; font-weight: 400; line-height: 1.5; text-shadow: 0 1px 2px #160e09;
  cursor: pointer; transition: filter .18s, transform .18s, border-color .18s;
}
.rag-menu-button::before, .rag-menu-button::after { content: ''; position: absolute; width: 10px; height: 10px; border: 1px solid #d8b16a; background: #7e5825; transform: rotate(45deg); top: calc(50% - 5px); }
.rag-menu-button::before { left: -5px; }
.rag-menu-button::after { right: -5px; }
.rag-menu-button svg { position: absolute; left: 23px; width: 20px; height: 20px; color: var(--rag-gold); fill: currentColor; }
.rag-button-end { position: absolute; right: 15px; color: #cfa04f; font-size: 13px; }
.rag-entry .start-button.rag-primary {
  width: calc(100% + 18px); align-self: center; min-height: 62px; padding: 10px 48px;
  margin: 0 0 2px; border: 2px solid #e2ba66; border-radius: 5px;
  background: radial-gradient(ellipse at 48% 0, #a34735, #781f1aeF 67%, #4a1914f5), repeating-linear-gradient(35deg, #dfa05e10, #dfa05e10 2px, transparent 3px);
  color: #ffe9bd; font-size: 24px; font-weight: 400;
  box-shadow: inset 0 0 0 2px #65371d, inset 0 0 0 3px #e3b762bd, inset 0 0 20px #d3883426, 0 4px 16px #35150780;
  opacity: .55; pointer-events: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.rag-entry .start-button.rag-primary::before { left: -5px; width: 13px; height: 13px; top: calc(50% - 7px); animation: none; border: 2px solid #d8b16a; background: #9b702b; transform: rotate(45deg); }
.rag-entry .start-button.rag-primary::after { right: -5px; left: auto; width: 13px; height: 13px; top: calc(50% - 7px); opacity: 1; border: 2px solid #d8b16a; background: #9b702b; transform: rotate(45deg); }
.rag-button-ornament { position: absolute; top: -14px; left: calc(50% - 12px); color: #f1ce7d; font-size: 23px; line-height: 1; text-shadow: 0 1px 2px #492912; }
.rag-menu-button svg.rag-start-arrow { left: auto; right: 24px; width: 24px; height: 24px; }
.rag-menu-button:hover:not(:disabled) { filter: brightness(1.13); transform: translateY(-1px); border-color: #f1d89c; }
.rag-entry .start-button.rag-primary:hover:not(:disabled) { background: radial-gradient(ellipse at 48% 0, #bc5b3c, #87261d 67%, #581b14); color: #fff0cd; }
.rag-menu-button:focus-visible, .rag-top-control:focus-visible, .rag-hud-button:focus-visible { outline: 2px solid #fff2c4; outline-offset: 5px; }
.rag-menu-button:disabled { cursor: wait; filter: saturate(.7); }
.rag-character-summary { margin: 10px 0 3px; color: #f5e3bc; font-size: 10px; line-height: 1.5; text-shadow: 0 1px 3px #20140c; }
.rag-entry .rag-loading-progress { width: 82%; display: flex; flex-direction: row; gap: 9px; margin-top: 7px; }
.rag-loader-mark { position: relative; width: 25px; height: 30px; flex-shrink: 0; color: #a58a4b; font-size: 27px; line-height: 30px; }
.rag-loader-mark .logo-fill { color: #ffe2a0; }
.rag-loading-track-group { width: 100%; }
.rag-entry .progress-bar-track { height: 2px; border-radius: 0; background: #291a1677; }
.rag-entry .progress-bar { background: linear-gradient(90deg, #b26e36, #ffe2a0); box-shadow: 0 0 9px #f3c37377; border-radius: 0; }
.rag-entry .progress-text { margin-top: 5px; font-size: 9px; letter-spacing: 0; line-height: 1.5; }
.rag-entry .progress-text span { margin: 0; color: #ffe7b8; font-weight: 400; text-shadow: 0 1px 4px #26130c; }
.rag-ready-note { min-height: 15px; color: #ffe4b6; font-size: 9px; line-height: 1.5; margin: 1px 0 0; text-shadow: 0 1px 4px #26130c; }
.rag-entry[data-state='error'] #status-label, .rag-entry[data-state='error'] .rag-ready-note { color: #ffc5af; }
.rag-entry-footer { position: absolute; bottom: 21px; left: 29px; right: 29px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; text-shadow: 0 1px 5px #000; }
.rag-footer-left { flex-shrink: 0; }
.rag-studio-logo { display: block; width: clamp(190px, 19vw, 270px); height: auto; filter: drop-shadow(0 2px 4px #160c08b3); }
.rag-footer-center { display: flex; justify-content: center; gap: 13px; font-size: 10px; line-height: 1.6; color: #efd29b; text-align: center; }
.rag-footer-right { color: #ecd5a4; font: 15px/1.3 var(--rag-serif); }
.rag-footer-right span { display: block; margin-top: 4px; font: 8px/1.6 var(--rag-serif); letter-spacing: .1em; }
.rag-game-brand { display: none; position: fixed; top: 17px; left: 22px; z-index: 9999; width: 210px; margin: 0; pointer-events: none; }
.rag-game-brand img { width: 100%; height: auto; filter: drop-shadow(0 2px 4px #0009); }
.rag-game-hud { display: none; position: fixed; bottom: 24px; left: 24px; z-index: 10000; align-items: center; gap: 13px; padding: 10px 14px; border: 1px solid #cfa45d80; border-radius: 4px; color: #f6e3bc; background: #2e221cdd; box-shadow: 0 4px 16px #0004; }
body[data-rag-playing='true'] .rag-game-hud { display: flex; }
body[data-rag-playing='true'] .rag-game-brand { display: block; }
.rag-hud-emblem { width: 36px; height: 40px; flex-shrink: 0; border: 1px solid #b78c4c; border-radius: 3px; font-size: 0; background: url('/__mirror/overrides/rag-ayothaya/background.png') 20% 16% / 500% auto; }
body[data-rag-portrait='temple'] .rag-hud-emblem { background-position: 42% 35%; }
.rag-game-hud strong { display: block; font-size: 12px; font-weight: 400; }
.rag-game-hud div > span { display: block; margin-top: 4px; color: #c6ad86; font-size: 9px; }
.rag-hud-button { border: 0; padding: 8px 4px; color: #e8cb92; background: transparent; cursor: pointer; font-size: 10px; }
.rag-dialog {
  width: min(470px, calc(100vw - 36px)); max-height: calc(100dvh - 40px); margin: auto;
  padding: 30px; border: 2px solid #a77a3f; border-radius: 6px; overflow-y: auto;
  background: radial-gradient(ellipse at 50% 0, #fff2d7, #e5c99b); color: #54371f;
  box-shadow: 0 18px 90px #0009, inset 0 0 0 2px #f5dfa8, inset 0 0 0 4px #b8915360;
}
.rag-dialog::backdrop { background: #20150ec7; backdrop-filter: blur(5px); }
.rag-dialog-small { width: min(410px, calc(100vw - 36px)); }
.rag-dialog-close { position: absolute; top: 11px; right: 12px; width: 32px; height: 32px; padding: 0; border: 0; color: #795533; background: transparent; font: 25px/1 var(--rag-serif); cursor: pointer; }
.rag-dialog-eyebrow { margin-bottom: 7px; font: 10px/1.6 var(--rag-serif); letter-spacing: .2em; color: #98703c; }
.rag-dialog h2 { margin: 0 0 12px; font-size: 24px; font-weight: 400; line-height: 1.4; }
.rag-dialog-description { margin: 0 0 21px; color: #7d5b38; font-size: 12px; line-height: 1.8; }
.rag-field-label { display: block; margin: 17px 0 8px; font-size: 12px; line-height: 1.5; }
.rag-dialog input:not([type='radio']):not([type='checkbox']):not([type='range']), .rag-dialog select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #a87f4e9c; border-radius: 3px; color: #4a301c; background: #fff5dfaa; font-size: 12px; }
.rag-dialog :is(input, select, button):focus-visible { outline: 2px solid #8d562e; outline-offset: 3px; }
.rag-field-hint { margin: 8px 0 0; color: #836440; font-size: 10px; line-height: 1.7; }
.rag-portrait-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.rag-portrait-choice { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 6px 6px 9px; border: 1px solid #aa865657; border-radius: 4px; text-align: center; cursor: pointer; font-size: 10px; line-height: 1.6; }
.rag-portrait-choice input { position: absolute; top: 12px; right: 12px; accent-color: #923e26; }
.rag-portrait-choice:has(input:checked) { border-color: #ad6e30; box-shadow: 0 0 0 2px #ad6e3059; background: #fff5df66; }
.rag-portrait-art { display: block; height: 130px; border-radius: 2px; background-image: url('/__mirror/overrides/rag-ayothaya/background.png'); background-size: 500% auto; }
.rag-portrait-art.river { background-position: 20% 16%; }
.rag-portrait-art.temple { background-position: 42% 35%; }
.rag-dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 24px; }
.rag-save-button, .rag-quiet-button { min-height: 40px; padding: 9px 18px; font-size: 12px; line-height: 1.5; border-radius: 3px; cursor: pointer; }
.rag-save-button { border: 1px solid #b48646; color: #ffe7b8; background: linear-gradient(100deg, #95352a, #60271e); box-shadow: inset 0 0 0 2px #dcaf6150; }
.rag-save-button:hover { filter: brightness(1.12); }
.rag-quiet-button { border: 1px solid #b08c5659; color: #7a5435; background: transparent; }
.rag-range-label { display: flex; justify-content: space-between; }
.rag-range-label output { color: #9b633b; font-variant-numeric: tabular-nums; }
.rag-dialog input[type='range'] { width: 100%; accent-color: #934128; cursor: pointer; }
.rag-checkbox-label { display: flex; align-items: center; gap: 10px; margin-top: 21px; font-size: 12px; cursor: pointer; }
.rag-checkbox-label input { accent-color: #934128; }
.rag-audio-settings { min-width: 0; margin: 25px 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid #a87f4e70; }
.rag-audio-settings legend { padding: 0 12px 0 0; color: #795533; font-size: 14px; }
.rag-audio-settings .rag-field-label { margin-top: 14px; }
.rag-server-option { display: flex; align-items: center; gap: 12px; padding: 17px 14px; border: 1px solid #ac814c; border-radius: 4px; background: #fff3d766; }
.rag-server-option input { accent-color: #934128; }
.rag-server-option strong { display: block; font-size: 13px; font-weight: 400; }
.rag-server-option small { display: block; margin-top: 6px; color: #8a6742; font-size: 10px; }
.rag-world-status { width: 7px; height: 7px; border-radius: 50%; background: #748643; margin-left: auto; }
@media (min-width: 1600px) {
  .rag-entry { padding-right: 13vw; }
  .rag-entry .loading-items { width: 450px; }
  .rag-story { font-size: 13px; }
  .rag-subtitle { font-size: 25px; }
  .rag-menu-button { min-height: 47px; font-size: 15px; }
}
@media (max-height: 850px) and (min-width: 901px) {
  .rag-entry { padding-top: 52px; padding-bottom: 52px; }
  .rag-entry .loading-items { width: min(370px, 35vw); }
  .rag-title { width: calc(100% + 90px); margin-left: -45px; margin-right: -45px; }
  .rag-subtitle { font-size: 19px; }
  .rag-tagline { font-size: 12px; margin-bottom: 12px; }
  .rag-introduction { padding: 12px 14px; }
  .rag-introduction h3 { margin-bottom: 5px; font-size: 22px; }
  .rag-story { font-size: 11px; line-height: 1.8; }
  .rag-menu-actions { gap: 6px; margin-top: 15px; }
  .rag-menu-button { min-height: 37px; font-size: 12px; }
  .rag-entry .start-button.rag-primary { min-height: 52px; font-size: 22px; }
  .rag-character-summary { margin-top: 7px; }
  .rag-entry-footer { bottom: 14px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .rag-entry { padding-right: 6vw; }
  .rag-entry .loading-items { width: 360px; }
  .rag-entry-quote { display: none; }
  .rag-footer-right { display: none; }
}
@media (max-height: 740px) and (min-width: 901px) {
  .rag-entry { justify-content: flex-start; padding-top: 65px; padding-bottom: 24px; }
  .rag-world-art, .rag-entry::before { position: fixed; }
  .rag-entry-footer { position: relative; inset: auto; width: 100%; flex-shrink: 0; margin-top: 32px; }
}
@media (max-width: 900px) {
  .rag-entry { display: block; padding: 0; }
  .rag-world-art { position: fixed; object-position: 27% top; }
  .rag-entry::before { position: fixed; background: linear-gradient(180deg, #25120822 10%, #2e180855 30%, #21150ccf 67%, #20150af5); }
  .rag-entry .loading-items { width: min(420px, calc(100vw - 48px)); margin: clamp(240px, 34vh, 350px) auto 40px; padding: 0; }
  .rag-title { width: calc(100% + 24px); margin: 0 -12px; }
  .rag-subtitle { color: #f4dbab; text-shadow: 0 2px 4px #301b13; font-size: 21px; }
  .rag-tagline { color: #f1d6a1; text-shadow: 0 2px 4px #301b13; margin: 7px 0 17px; font-size: 12px; gap: 8px; }
  .rag-entry-quote { display: none; }
  .rag-topbar { top: 17px; left: 18px; right: 18px; justify-content: flex-end; gap: 7px; }
  .rag-top-control { font-size: 10px; padding: 5px 9px; }
  .rag-top-control svg { width: 17px; height: 17px; }
  .rag-introduction { padding: 16px 13px; }
  .rag-introduction h3 { font-size: 23px; }
  .rag-story { font-size: 11px; line-height: 1.85; }
  .rag-menu-actions { width: 90%; }
  .rag-menu-button { min-height: 45px; }
  .rag-entry .start-button.rag-primary { min-height: 59px; }
  .rag-entry-footer { position: relative; inset: auto; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0 25px 24px; }
  .rag-footer-right { display: none; }
  .rag-studio-logo { width: min(240px, 70vw); }
  .rag-footer-center { align-self: center; font-size: 9px; gap: 8px; }
  .rag-game-brand { width: 155px; top: 18px; left: 14px; }
  .rag-game-hud { left: 14px; bottom: 14px; padding: 8px 10px; gap: 10px; }
  .rag-dialog { padding: 27px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .rag-menu-button { transition: none; }
  .rag-menu-button:hover:not(:disabled) { transform: none; }
}
/* Mobile menu layout only; reuse the approved title artwork and logo. */
@media (max-width: 900px) {
  .rag-entry { overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .rag-entry::after { position: fixed; inset: 8px; }
  .rag-topbar { top: max(10px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); }
  .rag-top-control { min-height: 44px; font-size: 11px; padding: 6px 10px; }
  .rag-top-control select { min-height: 30px; font-size: 16px; max-width: 112px; }
  .rag-entry .loading-items { display: flex; flex-direction: column; align-items: center; width: min(390px, calc(100vw - 40px)); margin: clamp(84px, 12svh, 110px) auto 18px; }
  .rag-title { width: 100%; margin: 0; }
  .rag-subtitle { font-size: clamp(16px, 4.5vw, 21px); margin: 4px 0 0; }
  .rag-tagline { margin: 7px 0 12px; line-height: 1.6; }
  .rag-menu-actions { order: 1; width: calc(100% - 16px); margin-top: 6px; gap: 8px; }
  .rag-menu-button { min-height: 44px; font-size: 13px; padding: 8px 38px; }
  .rag-entry .start-button.rag-primary { min-height: 54px; font-size: 22px; }
  .rag-character-summary { order: 2; margin: 8px 0 2px; }
  .rag-entry .rag-loading-progress { order: 3; width: calc(100% - 24px); margin-top: 3px; }
  .rag-ready-note { order: 3; margin: 2px 0 9px; font-size: 10px; }
  .rag-introduction { order: 4; padding: 10px 12px; margin-top: 9px; }
  .rag-introduction h3 { font-size: 19px; margin-bottom: 5px; }
  .rag-story { font-size: 11px; line-height: 1.7; }
  .rag-entry-footer { align-items: center; gap: 8px; margin: 0 20px 16px; }
  .rag-studio-logo { width: min(210px, 60vw); }
  .rag-footer-center { margin: 0; font-size: 9px; }
  .rag-dialog { width: min(470px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 48px 18px 20px; overscroll-behavior: contain; }
  .rag-dialog-close { width: 44px; height: 44px; top: 3px; right: 3px; }
  .rag-dialog input:not([type='radio']):not([type='checkbox']):not([type='range']), .rag-dialog select { font-size: 16px; min-height: 44px; }
  .rag-dialog input[type='range'] { min-height: 44px; }
  .rag-save-button, .rag-quiet-button { min-height: 44px; }
  .rag-checkbox-label { min-height: 44px; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .rag-entry .loading-items { width: min(390px, 52vw); margin: 68px 24px 18px auto; }
  .rag-entry-footer { width: min(390px, 52vw); margin: 0 24px 16px auto; }
}
.rag-registration[hidden] { display: none; }
.rag-registration { width: 100%; padding: 16px; margin: 8px 0; border: 1px solid #cca766; border-radius: 4px; background: #302219bd; text-align: center; color: #ffe8bb; }
.rag-registration h3 { font-size: 19px; line-height: 1.6; margin: 0 0 7px; }
.rag-registration p { font-size: 12px; line-height: 1.7; margin: 7px 0 12px; }
.rag-registration .rag-menu-button { min-height: 48px; font-size: 15px; padding: 10px 14px; }
.rag-entry[data-launch='maintenance'] .rag-menu-actions,
.rag-entry[data-launch='maintenance'] .rag-character-summary,
.rag-entry[data-launch='maintenance'] .rag-loading-progress,
.rag-entry[data-launch='maintenance'] .rag-ready-note,
.rag-entry[data-launch='maintenance'] .rag-topbar button { display: none; }
/* Fixed mobile branding, with an independently scrolling centre menu. */
@media (max-width: 900px) {
  .rag-entry { overflow: hidden; }
  /* Overflow starts below the fixed branding instead of centering above it. */
  .rag-entry .loading-items { justify-content: flex-start; }
  .rag-entry .loading-items > :not(.rag-title) { flex-shrink: 0; }
  .rag-entry .rag-menu-button { box-sizing: border-box; }
  .rag-topbar { position: fixed; }
  .rag-entry .loading-items { position: fixed; top: calc(max(8px, env(safe-area-inset-top, 0px)) + 170px); bottom: calc(max(8px, env(safe-area-inset-bottom, 0px)) + 78px); left: max(20px, calc((100vw - 390px) / 2)); right: max(20px, calc((100vw - 390px) / 2)); transform: none !important; width: auto; margin: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 8px 6px 14px; }
  .rag-entry .rag-title { position: fixed; top: calc(max(8px, env(safe-area-inset-top, 0px)) + 46px); left: 50%; transform: translateX(-50%); width: min(360px, calc(100vw - 32px)); margin: 0; z-index: 6; }
  .rag-entry-footer { position: fixed; bottom: max(8px, env(safe-area-inset-bottom, 0px)); left: 50%; right: auto; transform: translateX(-50%); width: min(390px, calc(100vw - 24px)); margin: 0; z-index: 6; }
  .rag-studio-logo { width: min(200px, 54vw); }
  .rag-footer-center { display: none; }
  .rag-registration { order: 1; padding: 12px; }
  .rag-registration h3 { font-size: 17px; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .rag-entry .loading-items { top: 100px; bottom: 70px; left: max(20px, calc((100vw - 440px) / 2)); right: max(20px, calc((100vw - 440px) / 2)); width: auto; }
  .rag-entry .rag-title { top: max(6px, env(safe-area-inset-top, 0px)); width: min(260px, 38vw); }
  .rag-studio-logo { width: 160px; }
}
