/* Original pack "atlantis". Deep ocean teal, turquoise light, white marble
   and burnished gold; Cinzel and Marcellus SC for inscriptions, Lato to read. */

html[data-theme-pack='atlantis'] body {
  margin: 0;
  background: #021b22;
  color: #d6ecee;
  font: 400 16px/1.65 Lato, 'Segoe UI', sans-serif;
}

.at {
  --at-gold: #e8c36a;
  --at-gold-hi: #fff0c2;
  --at-turq: #3fe0e0;
  --at-turq-2: #1fb3c8;
  --at-marble: #f4f1e8;
  --at-deep: #021b22;
  --at-panel: rgb(3 34 42 / .82);
  --at-line: rgb(232 195 106 / .32);
  --at-muted: #8fb5bb;
  background: radial-gradient(1200px 700px at 50% 0, rgb(63 224 224 / .1), transparent 70%), linear-gradient(180deg, transparent, rgb(2 27 34 / .55) 40%, #01141a);
}
.at a { color: var(--at-turq); transition: color .2s ease, text-shadow .2s ease; }
.at a:hover { color: #9ff5f5; text-shadow: 0 0 12px rgb(63 224 224 / .5); }

.at-bubbles { position: fixed; z-index: 0; }
.at-bubbles span { top: auto; bottom: -30px; width: calc(10px * var(--s)); height: calc(10px * var(--s)); border-radius: 50%; border: 1px solid rgb(200 250 255 / .55); background: radial-gradient(circle at 30% 30%, rgb(255 255 255 / .7), rgb(160 240 255 / .12) 45%, transparent 70%); animation-name: at-bubble; animation-timing-function: ease-in; }

/* Top bar with a gold key-pattern edge */
.at-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: center; height: 66px; padding: 0 clamp(1rem, 4vw, 3rem); background: linear-gradient(180deg, rgb(2 22 28 / .95), rgb(2 22 28 / .82)); backdrop-filter: blur(10px); }
.at-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: repeating-linear-gradient(90deg, var(--at-gold) 0 12px, transparent 12px 16px, var(--at-gold) 16px 20px, transparent 20px 24px); opacity: .55; -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.at-nav { display: flex; gap: clamp(.6rem, 2vw, 2.2rem); }
.at-nav a { padding: .4rem .2rem; color: #e9f4f2; font: 400 .95rem 'Marcellus SC', serif; letter-spacing: .12em; }
.at-nav a:hover, .at-nav a.is-current { color: var(--at-gold-hi); text-shadow: 0 0 14px rgb(232 195 106 / .6); }
.at-nav a.is-current { border-bottom: 1px solid var(--at-gold); }
.at-tools { position: absolute; right: clamp(1rem, 3vw, 2.5rem); display: flex; align-items: center; gap: .8rem; }
.at .pk-lang { border: 1px solid var(--at-line); border-radius: 999px; }
.at .pk-lang button { color: var(--at-muted); border-radius: 999px; }
.at .pk-lang button.is-active { background: linear-gradient(180deg, var(--at-gold-hi), var(--at-gold)); color: #2c2206; }
.at-account { display: inline-flex; align-items: center; min-height: 38px; padding: 0 1.1rem; border: 1px solid var(--at-turq); border-radius: 999px; color: #e8ffff !important; background: rgb(63 224 224 / .12); font: 400 .9rem 'Marcellus SC', serif; letter-spacing: .08em; }
.at-account:hover { background: rgb(63 224 224 / .25); }

/* Hero: light through the water */
.at-hero { position: relative; height: clamp(560px, 72vh, 740px); overflow: hidden; isolation: isolate; }
.at-hero-art { position: absolute; inset: -3%; z-index: -4; background: url(https://assets.aetunga.com/themes/atlantis/images/hero.jpg?v=5d92f5f2bd) center 40% / cover no-repeat; animation: at-sway 22s ease-in-out infinite alternate; }
.at-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 40% 55% at 50% 45%, rgb(1 22 30 / .55), transparent 72%), linear-gradient(180deg, rgb(2 22 28 / .45), transparent 25%, transparent 60%, #021b22 100%); }
.at-rays { position: absolute; inset: -10% 0 0; z-index: -3; mix-blend-mode: screen; pointer-events: none; }
.at-rays i { position: absolute; top: -20%; left: 50%; width: 14vw; height: 130%; background: linear-gradient(180deg, rgb(190 255 255 / .35), transparent 80%); filter: blur(18px); transform-origin: 50% 0; animation: at-ray 12s ease-in-out infinite alternate; }
.at-rays i:nth-child(1) { rotate: -24deg; margin-left: -18vw; }
.at-rays i:nth-child(2) { rotate: -8deg; margin-left: -6vw; animation-delay: -3s; width: 9vw; }
.at-rays i:nth-child(3) { rotate: 10deg; margin-left: 4vw; animation-delay: -6s; }
.at-rays i:nth-child(4) { rotate: 26deg; margin-left: 14vw; animation-delay: -9s; width: 8vw; }
.at-caustics { position: absolute; inset: 0; z-index: -2; background: url(https://assets.aetunga.com/themes/atlantis/images/caustics.jpg?v=ee99fb81db) center / 700px; mix-blend-mode: soft-light; opacity: .55; animation: at-caustics 30s linear infinite; }
.at-poseidon { position: absolute; right: clamp(-40px, 3vw, 90px); bottom: -10px; height: 92%; width: auto; max-width: none; filter: drop-shadow(0 0 30px rgb(0 0 0 / .7)) drop-shadow(0 0 26px rgb(63 224 224 / .3)); animation: at-float 8s ease-in-out infinite; pointer-events: none; }
.at-hero-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 2rem 1rem 5rem; text-align: center; }
.at-crest { position: absolute; top: 50%; left: 50%; width: min(420px, 64vw); translate: -50% -60%; opacity: .22; z-index: -1; filter: drop-shadow(0 0 40px rgb(63 224 224 / .6)); animation: at-crest 8s ease-in-out infinite; pointer-events: none; }
.at-logo { display: block; filter: drop-shadow(0 4px 16px rgb(0 10 16 / .95)) drop-shadow(0 0 30px rgb(63 224 224 / .35)); transition: transform .3s ease, filter .3s ease; }
.at-logo:hover { transform: scale(1.02); }
.at-logo .site-name { background: linear-gradient(180deg, #fffaf0 0%, #f7e2a4 45%, #c99a3a 80%, #8c6420 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; text-shadow: none !important; letter-spacing: .06em; }
.at-tagline { margin: 0; color: #e3fbfb; font: 400 clamp(1rem, 1.6vw, 1.25rem) 'Marcellus SC', serif; letter-spacing: .22em; text-shadow: 0 2px 10px rgb(0 10 16 / .95); }
.at-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: .6rem; }
.at-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 220px; padding: 0 2rem; font: 700 .88rem Cinzel, serif; letter-spacing: .16em; text-transform: uppercase; border-radius: 3px; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; }
.at-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.at-btn--gold { color: #2c2206 !important; background: linear-gradient(180deg, #fff3c9, #e8c36a 50%, #b88a2e); box-shadow: 0 0 0 1px #fff4d0 inset, 0 12px 30px -12px rgb(232 195 106 / .9); text-shadow: none !important; }
.at-btn--sea { color: #e8ffff !important; background: linear-gradient(180deg, rgb(31 179 200 / .55), rgb(3 60 72 / .75)); border: 1px solid rgb(63 224 224 / .6); box-shadow: 0 12px 30px -14px rgb(63 224 224 / .7); backdrop-filter: blur(6px); }
.at-divider { position: absolute; left: 50%; bottom: 8px; width: min(900px, 90vw); translate: -50% 0; filter: drop-shadow(0 0 12px rgb(63 224 224 / .45)); pointer-events: none; }

/* Three altars */
.at-altars { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 1.5rem; width: min(1240px, calc(100% - 2rem)); margin: 1.2rem auto 0; align-items: stretch; }
.at-altar { position: relative; padding: 1.7rem 1.4rem 1.4rem; background: linear-gradient(180deg, rgb(8 58 70 / .85), var(--at-panel)); border: 1px solid var(--at-line); border-top: 0; border-radius: 4px; box-shadow: 0 24px 50px -26px #000, inset 0 0 40px rgb(0 0 0 / .35); }
.at-altar::before { content: ''; position: absolute; left: -6px; right: -6px; top: -6px; height: 14px; border-radius: 3px; background: linear-gradient(180deg, #fbf8f0, #d9d2c0); box-shadow: 0 3px 8px rgb(0 0 0 / .45), inset 0 -2px 0 rgb(0 0 0 / .08); }
.at-altar::after { content: ''; position: absolute; top: 12px; left: 8px; width: 58px; height: 58px; background: url(https://assets.aetunga.com/themes/atlantis/images/corner.webp?v=b4faa366a1) 0 0 / contain no-repeat; opacity: .85; pointer-events: none; }
.at-altar-title { margin: .3rem 0 1rem; color: var(--at-gold-hi); font: 700 1.05rem Cinzel, serif; letter-spacing: .14em; text-transform: uppercase; text-align: center; text-shadow: 0 0 14px rgb(232 195 106 / .4); }
.at-altar-title--small { margin-top: 1.2rem; font-size: .9rem; }
.at-crystal { display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; padding: 1.6rem; overflow: hidden; background: #03262e url(https://assets.aetunga.com/themes/atlantis/images/crystal.jpg?v=0b7ef346de) center 45% / cover no-repeat; box-shadow: inset 0 -120px 70px -40px #01161c, 0 24px 50px -24px rgb(63 224 224 / .45); transition: transform .3s ease, box-shadow .3s ease; }
.at-crystal::after { display: none; }
.at-crystal:hover { transform: translateY(-4px); box-shadow: inset 0 -120px 70px -40px #01161c, 0 30px 60px -22px rgb(63 224 224 / .7); }
.at-crystal-glow { position: absolute; left: 50%; top: 42%; width: 200px; height: 200px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgb(120 255 255 / .55), transparent 65%); mix-blend-mode: screen; animation: at-glow 3.2s ease-in-out infinite; }
.at-crystal-title { position: relative; color: var(--at-gold-hi); font: 700 1.6rem Cinzel, serif; text-align: center; text-shadow: 0 2px 12px #000, 0 0 22px rgb(63 224 224 / .6); }
.at-crystal-note { position: relative; color: var(--at-turq); font: 400 .88rem 'Marcellus SC', serif; letter-spacing: .12em; text-align: center; }
.at-online { display: grid; justify-items: center; gap: .1rem; padding: .3rem 0 .2rem; }
.at-online-number { color: #fff; font: 700 2.6rem/1 Cinzel, serif; text-shadow: 0 0 22px rgb(63 224 224 / .6); }
.at-online-label { display: inline-flex; align-items: center; gap: .5rem; color: var(--at-muted); font: 400 .82rem 'Marcellus SC', serif; letter-spacing: .12em; }
.at-pearl { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #bff4ff 50%, #5fd6e6); box-shadow: 0 0 10px rgb(63 224 224 / .9); animation: at-glow 2.4s ease-in-out infinite; }
.at-pearl.is-offline { background: #d06a6a; box-shadow: none; animation: none; }

/* Hall with marble columns */
.at-hall { position: relative; }
.at-column { position: absolute; top: 40px; height: 620px; width: auto; filter: drop-shadow(0 20px 30px rgb(0 0 0 / .6)); opacity: .9; pointer-events: none; }
.at-column--left { left: calc(50% - 800px); }
.at-column--right { right: calc(50% - 800px); transform: scaleX(-1); }
.at-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.8rem; width: min(1240px, calc(100% - 2rem)); margin: 2.2rem auto 0; align-items: start; }
.at-content { display: grid; gap: 1.8rem; min-width: 0; }
.at-side { display: grid; gap: 1.4rem; }
.at-panel { position: relative; padding: 1.6rem 1.3rem 1.3rem; background: var(--at-panel); border: 1px solid var(--at-line); border-radius: 4px; box-shadow: 0 20px 44px -24px #000; backdrop-filter: blur(6px); }
.at-panel::before, .at-panel::after { content: ''; position: absolute; width: 54px; height: 54px; background: url(https://assets.aetunga.com/themes/atlantis/images/corner.webp?v=b4faa366a1) 0 0 / contain no-repeat; pointer-events: none; }
.at-panel::before { top: -5px; left: -5px; }
.at-panel::after { right: -5px; bottom: -5px; transform: rotate(180deg); }
.at-panel-title { margin: 0 0 1rem; padding-bottom: .7rem; color: var(--at-gold-hi); font: 700 1rem Cinzel, serif; letter-spacing: .14em; text-transform: uppercase; text-align: center; border-bottom: 1px solid var(--at-line); }

/* Shared parts in sea colours */
.at .pk-field-label { color: var(--at-muted); font: 400 .82rem 'Marcellus SC', serif; letter-spacing: .1em; }
.at .pk-input { color: #effcfc; background: rgb(0 18 24 / .55); border: 1px solid rgb(63 224 224 / .28); border-radius: 3px; transition: border-color .2s ease, box-shadow .2s ease; }
.at .pk-input:focus { outline: none; border-color: var(--at-turq); box-shadow: 0 0 0 3px rgb(63 224 224 / .2), 0 0 18px rgb(63 224 224 / .25); }
.at .pk-button--primary { color: #2c2206; background: linear-gradient(180deg, #fff3c9, #e8c36a 55%, #b88a2e); border-radius: 3px; font: 700 .85rem Cinzel, serif; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 10px 24px -12px rgb(232 195 106 / .9); }
.at .pk-button--ghost { color: var(--at-gold-hi); background: transparent; border: 1px solid var(--at-line); font: 700 .8rem Cinzel, serif; letter-spacing: .12em; text-transform: uppercase; }
.at .pk-button--ghost:hover { background: rgb(232 195 106 / .1); }
.at .pk-error { color: #ffb0a8; }
.at .pk-login-links a { color: var(--at-muted); }
.at .pk-welcome { color: var(--at-muted); }
.at .pk-welcome strong { color: var(--at-gold-hi); }
.at .pk-account-links a { color: #e4f5f5; background: rgb(0 0 0 / .25); border-left: 2px solid transparent; }
.at .pk-account-links a:hover { border-left-color: var(--at-turq); background: rgb(63 224 224 / .1); }
.at .pk-event { background: rgb(0 20 26 / .5); border-left: 2px solid var(--at-turq); }
.at .pk-event-title { color: #eefcfc; font-weight: 700; }
.at .pk-event-day { color: var(--at-muted); font-family: 'Marcellus SC', serif; }
.at .pk-event-time { color: var(--at-gold); }
.at .pk-rank-row { background: rgb(0 20 26 / .5); border: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease; }
.at .pk-rank-row:hover { border-color: rgb(63 224 224 / .35); background: rgb(63 224 224 / .08); }
.at .pk-rank-pos { color: var(--at-muted); font-family: Cinzel, serif; border-radius: 50%; border: 1px solid rgb(63 224 224 / .3); }
.at .pk-rank-row[data-rank='1'] .pk-rank-pos { color: #2c2206; border: 0; background: radial-gradient(circle at 35% 30%, #fff6d6, #e8c36a 60%, #a57a24); box-shadow: 0 0 14px rgb(232 195 106 / .6); }
.at .pk-rank-row[data-rank='2'] .pk-rank-pos { color: #12262a; border: 0; background: radial-gradient(circle at 35% 30%, #fff, #bcd3d6); }
.at .pk-rank-row[data-rank='3'] .pk-rank-pos { color: #032a31; border: 0; background: radial-gradient(circle at 35% 30%, #cafcff, #3fb9c8); }
.at .pk-rank-name { color: #eefcfc; font-weight: 700; }
.at .pk-rank-meta { color: var(--at-muted); }
.at .pk-more { color: var(--at-gold); font-family: 'Marcellus SC', serif; letter-spacing: .08em; }
.at .pk-empty { color: var(--at-muted); font-style: italic; }

.at .pk-slider { border: 1px solid var(--at-line); border-radius: 4px; box-shadow: 0 24px 50px -24px #000; }
.at .pk-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(1 20 26 / .92), rgb(1 20 26 / .1) 55%, transparent); pointer-events: none; }
.at .pk-slide-copy { z-index: 1; }
.at .pk-slide-title { color: var(--at-gold-hi); font: 700 clamp(1.3rem, 2.4vw, 2rem) Cinzel, serif; text-shadow: 0 2px 12px #000; }
.at .pk-slide-text { color: #d3ecee; max-width: 60ch; }
.at .pk-slider-arrow { color: var(--at-gold-hi); background: rgb(0 20 26 / .6); border: 1px solid var(--at-line); }
.at .pk-slider-arrow:hover { background: rgb(63 224 224 / .3); }
.at .pk-slider-dot { background: rgb(255 255 255 / .3); }
.at .pk-slider-dot.is-active { background: linear-gradient(90deg, var(--at-turq), var(--at-gold)); }

.at-section { position: relative; padding: 1.7rem; background: var(--at-panel); border: 1px solid var(--at-line); border-radius: 4px; }
.at-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: .8rem; border-bottom: 1px solid var(--at-line); }
.at-section-head h2 { margin: 0; color: var(--at-gold-hi); font: 700 1.5rem Cinzel, serif; letter-spacing: .06em; }
.at-section-head a { white-space: nowrap; font: 400 .9rem 'Marcellus SC', serif; letter-spacing: .1em; }
.at .pk-news-card { color: #c8e2e4; background: linear-gradient(170deg, rgb(10 70 84 / .75), rgb(2 26 32 / .9)); border: 1px solid rgb(63 224 224 / .18); border-radius: 4px; }
.at .pk-news-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #fbf8f0, #d9d2c0); opacity: .85; }
.at .pk-news-card:hover { border-color: rgb(232 195 106 / .5); box-shadow: 0 18px 36px -18px rgb(63 224 224 / .45); }
.at .pk-news-date { color: var(--at-turq); font: 400 .85rem 'Marcellus SC', serif; letter-spacing: .1em; }
.at .pk-news-title { color: var(--at-gold-hi); font: 700 1.2rem/1.3 Cinzel, serif; }
.at .pk-news-more { color: var(--at-gold); font-family: 'Marcellus SC', serif; }
.at .pk-news-empty { color: var(--at-muted); border: 1px dashed var(--at-line); }

.at-footer { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1rem; margin-top: 4rem; padding: 2.5rem 1rem; text-align: center; background: linear-gradient(180deg, transparent, rgb(0 12 16 / .9) 55%); }
.at-footer-divider { width: min(760px, 90%); opacity: .85; }
.at-footer-crest { width: 80px; filter: drop-shadow(0 0 16px rgb(63 224 224 / .45)); }
.at-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.8rem; }
.at-footer-links a { color: var(--at-muted); font: 400 .95rem 'Marcellus SC', serif; letter-spacing: .08em; }
.at-footer-note { margin: 0; color: #6a8f95; font-size: .85rem; }

@keyframes at-bubble { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(calc(var(--drift) * .5), -50vh); } 100% { transform: translate(var(--drift), -105vh); opacity: 0; } }
@keyframes at-sway { from { transform: scale(1) translateX(0); } to { transform: scale(1.05) translateX(-1.2%); } }
@keyframes at-ray { from { opacity: .35; translate: -2vw 0; } to { opacity: .9; translate: 2vw 0; } }
@keyframes at-caustics { from { background-position: 0 0; } to { background-position: 700px 350px; } }
@keyframes at-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes at-crest { 0%, 100% { opacity: .18; } 50% { opacity: .3; } }
@keyframes at-glow { 0%, 100% { opacity: .55; scale: 1; } 50% { opacity: 1; scale: 1.12; } }

@media (max-width: 1660px) { .at-column { display: none; } }
@media (max-width: 1100px) {
  .at-altars { grid-template-columns: 1fr 1fr; }
  .at-crystal { grid-column: 1 / -1; grid-row: 1; min-height: 240px; }
  .at-main { grid-template-columns: minmax(0, 1fr) 290px; }
  .at-poseidon { opacity: .5; right: -140px; }
}
@media (max-width: 900px) {
  .at-altars, .at-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .at-top { display: none; }
  .at-hero { height: 480px; }
  .at-poseidon { display: none; }
  .at-btn { min-width: 0; width: min(280px, 80vw); }
  .at-altars, .at-main { width: calc(100% - 1.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .at-hero-art, .at-rays i, .at-caustics, .at-poseidon, .at-crest, .at-crystal-glow, .at-pearl { animation: none; }
}

/* ------------------------------------------------------------ performance
   Every animation here runs on the compositor (transform, translate, scale,
   opacity, filter). One that animates box-shadow or background-position runs
   on the main thread, and then the browser restyles every other running
   animation on each frame it draws, which is where the stutter came from. */
html[data-theme-pack='atlantis'] body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: #021b22 url(https://assets.aetunga.com/themes/atlantis/images/caustics.jpg?v=ee99fb81db) center top / 900px repeat; pointer-events: none; }
.at-caustics { top: -350px; left: -700px; animation-name: at-caustics-slide; }
@keyframes at-caustics-slide { to { translate: 700px 350px; } }

/* Phones get the middle of the hero, cropped at the same scale as the full picture. */
@media (max-width: 480px) { .at-hero-art { background-image: url(https://assets.aetunga.com/themes/atlantis/images/hero-m.webp?v=99527b48f3); } }
/* On a narrow screen the textures and card art below wait until the hero has painted (Shell.svelte adds .at-settled). */
@media (max-width: 900px) {
  html[data-theme-pack='atlantis']:not(.at-settled) body::before { background-image: none; }
  html:not(.at-settled) .at-caustics { background-image: none; }
  html:not(.at-settled) .at-crystal { background-image: none; }
  html:not(.at-settled) .at-altar::after { background-image: none; }
  html:not(.at-settled) .at-panel::before { background-image: none; }
  html:not(.at-settled) .at-panel::after { background-image: none; }
}
/* Room for pictures that start after the first paint, so nothing moves when they arrive. */
.at-footer-divider { aspect-ratio: 1200 / 147; }
.at-footer-crest { aspect-ratio: 560 / 564; }
