/* Named styles. Every aesthetic re-skins the same .ae-card markup; rules are scoped under .ae-* roots. */

.ae-root { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; overflow: hidden; }
.ae-root p { margin: 0; }
.ae-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: min(88%, 340px); }
.ae-art { position: relative; width: 60px; aspect-ratio: 1; display: grid; place-items: center; }
.ae-meta { min-width: 0; display: grid; gap: 2px; }
.ae-title { font-size: 16px; font-weight: 750; line-height: 1.15; }
.ae-sub { font-size: 12px; }
.ae-bar { margin-top: 9px; height: 6px; position: relative; overflow: hidden; }
.ae-bar span { display: block; height: 100%; width: 42%; }
.ae-btn { font: inherit; cursor: pointer; border: 0; white-space: nowrap; }

/* neumorphism */
.ae-neu { background: #e4e8f0; color: #4a5068; }
.ae-neu .ae-card { padding: 18px; border-radius: 22px; background: #e4e8f0; box-shadow: 9px 9px 18px #c3c8d4, -9px -9px 18px #ffffff; }
.ae-neu .ae-art { width: 58px; border-radius: 50%; box-shadow: inset 5px 5px 10px #c3c8d4, inset -5px -5px 10px #ffffff; }
.ae-neu .ae-art i { width: 42%; aspect-ratio: 1; border-radius: 50%; background: #e4e8f0; box-shadow: 3px 3px 6px #c3c8d4, -3px -3px 6px #ffffff; }
.ae-neu .ae-title { color: #3d4357; }
.ae-neu .ae-sub { color: #7a8199; }
.ae-neu .ae-bar { height: 8px; border-radius: 8px; box-shadow: inset 2px 2px 4px #c3c8d4, inset -2px -2px 4px #ffffff; }
.ae-neu .ae-bar span { border-radius: 8px; background: #6d7cff; }
.ae-neu .ae-btn {
  padding: 12px 16px; border-radius: 14px; background: #e4e8f0; color: #5662e6; font-weight: 750; font-size: 13px;
  box-shadow: 5px 5px 10px #c3c8d4, -5px -5px 10px #ffffff; animation: ae-neu-press 3.6s ease-in-out infinite;
}
.ae-neu .ae-btn:active { animation: none; box-shadow: inset 4px 4px 8px #c3c8d4, inset -4px -4px 8px #ffffff; }
@keyframes ae-neu-press {
  0%, 55%, 100% { box-shadow: 5px 5px 10px #c3c8d4, -5px -5px 10px #ffffff; }
  62%, 85% { box-shadow: inset 4px 4px 8px #c3c8d4, inset -4px -4px 8px #ffffff; }
}

/* neo-brutalism */
.ae-nb { background: #ffde59; color: #000; }
.ae-nb .ae-card { padding: 14px; background: #fff; border: 3px solid #000; border-radius: 10px; box-shadow: 6px 6px 0 #000; }
.ae-nb .ae-art { width: 58px; border: 3px solid #000; border-radius: 8px; background: #a0e7e5; }
.ae-nb .ae-art i { width: 46%; aspect-ratio: 1; border-radius: 50%; background: #ff6b6b; border: 3px solid #000; }
.ae-nb .ae-title { font-weight: 900; font-size: 17px; }
.ae-nb .ae-sub { font-weight: 600; }
.ae-nb .ae-bar { height: 12px; border: 2.5px solid #000; border-radius: 6px; background: #fff; }
.ae-nb .ae-bar span { background: #ff6b6b; border-right: 2.5px solid #000; }
.ae-nb .ae-btn {
  padding: 9px 14px; background: #ff6b6b; color: #000; border: 3px solid #000; border-radius: 8px; box-shadow: 4px 4px 0 #000;
  font-weight: 850; font-size: 13px; transition: transform 0.1s, box-shadow 0.1s; animation: ae-nb-press 3s ease infinite;
}
.ae-nb .ae-btn:hover { animation: none; transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.ae-nb .ae-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; }
@keyframes ae-nb-press { 0%, 60%, 100% { transform: none; box-shadow: 4px 4px 0 #000; } 66%, 80% { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; } }

/* claymorphism */
.ae-clay { background: linear-gradient(135deg, #f3e8ff, #e0f2fe); color: #4b2a7a; }
.ae-clay .ae-card {
  padding: 18px; border-radius: 32px; background: #fff;
  box-shadow: 0 18px 30px rgb(120 80 200 / 0.25), inset -8px -8px 16px rgb(140 100 210 / 0.22), inset 8px 8px 16px rgb(255 255 255 / 0.9);
}
.ae-clay .ae-art {
  width: 60px; border-radius: 22px; background: #ffc8dd; animation: ae-clay-float 4s ease-in-out infinite;
  box-shadow: 0 8px 14px rgb(255 120 170 / 0.35), inset -6px -6px 10px rgb(230 90 140 / 0.35), inset 6px 6px 10px rgb(255 255 255 / 0.7);
}
.ae-clay .ae-art i { width: 40%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: inset -3px -3px 5px rgb(230 90 140 / 0.3); }
.ae-clay .ae-title { font-weight: 850; font-size: 17px; }
.ae-clay .ae-sub { color: #806c9e; font-weight: 600; }
.ae-clay .ae-bar { height: 10px; border-radius: 10px; background: #ede4ff; box-shadow: inset 2px 2px 4px rgb(140 100 210 / 0.25); }
.ae-clay .ae-bar span { border-radius: 10px; background: #c4b5fd; box-shadow: inset -2px -2px 3px rgb(100 70 190 / 0.3), inset 2px 2px 3px rgb(255 255 255 / 0.6); }
.ae-clay .ae-btn {
  padding: 11px 16px; border-radius: 18px; background: #c4b5fd; color: #3b1d6e; font-weight: 850; font-size: 13px;
  box-shadow: 0 8px 14px rgb(120 80 200 / 0.3), inset -4px -4px 8px rgb(100 70 190 / 0.35), inset 4px 4px 8px rgb(255 255 255 / 0.6);
}
@keyframes ae-clay-float { 50% { transform: translateY(-5px) rotate(-3deg); } }

/* skeuomorphism */
.ae-sk { background: radial-gradient(rgb(0 0 0 / 0.28) 1px, transparent 1.4px) 0 0 / 4px 4px, radial-gradient(circle at 30% 20%, #6a4630, #2b1a10 75%); }
.ae-sk .ae-card {
  padding: 14px 16px; border-radius: 14px; color: #35373c;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.14) 0 1px, transparent 1px 3px), linear-gradient(#efeff0, #b9bbbf);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #85878c, 0 0 0 1px #5d5f64, 0 12px 26px rgb(0 0 0 / 0.6);
}
.ae-sk .ae-art { width: 64px; border-radius: 50%; box-shadow: 0 2px 5px rgb(0 0 0 / 0.55); }
.ae-sk-rec {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, #e8e8e8 0 4%, #c92f2f 4.5% 25%, transparent 26%), repeating-radial-gradient(circle, #111 0 1px, #262626 1px 2.5px);
  animation: ae-sk-spin 3.5s linear infinite;
}
.ae-sk-rec::before { content: ""; position: absolute; left: 50%; top: 31%; width: 18%; height: 5%; border-radius: 2px; background: #f4d7a8; translate: -50% 0; }
.ae-sk .ae-art::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 10%, rgb(255 255 255 / 0.18) 15%, transparent 22% 55%, rgb(255 255 255 / 0.14) 62%, transparent 70%); }
@keyframes ae-sk-spin { to { transform: rotate(360deg); } }
.ae-sk .ae-title { font-weight: 800; color: #3a3c40; text-shadow: 0 1px 0 rgb(255 255 255 / 0.7); }
.ae-sk .ae-sub { color: #4f5258; text-shadow: 0 1px 0 rgb(255 255 255 / 0.6); }
.ae-sk .ae-bar { height: 8px; border-radius: 4px; background: #5d6066; box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.7), 0 1px 0 rgb(255 255 255 / 0.7); }
.ae-sk .ae-bar span { border-radius: 4px; background: linear-gradient(#b6ff7a, #46a51f); box-shadow: 0 0 6px #8cff4a; }
.ae-sk .ae-btn {
  padding: 9px 15px; border-radius: 999px; border: 1px solid #6f7277; color: #2d3035; font-weight: 800; font-size: 13px;
  text-shadow: 0 1px 0 #fff; background: linear-gradient(#ffffff, #d4d6da 50%, #c2c4c9 51%, #e6e7ea);
  box-shadow: inset 0 1px 0 #fff, 0 2px 3px rgb(0 0 0 / 0.45);
}
.ae-sk .ae-btn:active { background: linear-gradient(#c2c4c9, #e6e7ea); box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.35); }

/* flat design */
.ae-flat { background: #ecf0f1; color: #34495e; }
.ae-flat .ae-card { padding: 16px; background: #fff; border-radius: 4px; }
.ae-flat .ae-art { width: 60px; border-radius: 4px; background: #3498db; }
.ae-flat .ae-art i { width: 0; height: 0; margin-left: 5px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.ae-flat .ae-title { font-weight: 700; }
.ae-flat .ae-sub { color: #7f8c8d; }
.ae-flat .ae-bar { background: #ecf0f1; }
.ae-flat .ae-bar span { background: #2ecc71; }
.ae-flat .ae-btn { padding: 10px 16px; border-radius: 4px; background: #e74c3c; color: #fff; font-weight: 700; font-size: 13px; }
.ae-flat .ae-btn:hover { background: #c0392b; }

/* material design 3 */
.ae-md { background: #fef7ff; color: #1d1b20; }
.ae-md .ae-card { margin-bottom: 40px; padding: 16px; border-radius: 12px; background: #f3edf7; box-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 1px 3px 1px rgb(0 0 0 / 0.15); }
.ae-md .ae-art { width: 56px; border-radius: 12px; background: #eaddff; }
.ae-md .ae-art i { width: 44%; aspect-ratio: 1; border-radius: 50% 50% 50% 8px; background: #6750a4; }
.ae-md .ae-title { font-weight: 600; letter-spacing: 0.01em; }
.ae-md .ae-sub { color: #49454f; }
.ae-md .ae-bar { height: 4px; margin-top: 10px; border-radius: 2px; background: #e8def8; }
.ae-md .ae-bar span { border-radius: 2px; background: #6750a4; }
.ae-md .ae-btn { position: relative; overflow: hidden; height: 40px; padding: 0 22px; border-radius: 20px; background: #6750a4; color: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: 0.01em; }
.ae-md-fab {
  position: absolute; right: 14px; bottom: 12px; width: 48px; height: 48px; border-radius: 16px; border: 0; overflow: hidden; cursor: pointer;
  background: #eaddff; color: #21005d; font: 400 26px/1 var(--f-display);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.3), 0 4px 8px 3px rgb(0 0 0 / 0.15);
}
.ae-md-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: 0.3; transform: scale(0); pointer-events: none; animation: ae-md-ripple 650ms ease-out forwards; }
@keyframes ae-md-ripple { to { transform: scale(1); opacity: 0; } }

/* swiss style */
.ae-sw { background: #f5f4f0; color: #111; padding: 0; place-items: stretch; }
.ae-sw .ae-card {
  width: 100%; height: 100%; padding: 14px 18px 16px; gap: 0 10px; align-items: end;
  grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto 1fr auto auto;
}
.ae-sw .ae-meta { display: contents; }
.ae-sw .ae-art { grid-column: 5 / 7; grid-row: 1 / 3; align-self: start; justify-self: end; width: 26cqi; border-radius: 50%; background: #e3001b; }
.ae-sw .ae-title { grid-column: 1 / 5; grid-row: 2; position: relative; font-size: clamp(34px, 13.5cqi, 64px); font-weight: 850; letter-spacing: -0.045em; line-height: 0.84; }
.ae-sw .ae-sub { grid-column: 1 / 4; grid-row: 3; margin-top: 12px; font-size: 11.5px; font-weight: 500; }
.ae-sw .ae-bar { grid-column: 1 / 7; grid-row: 4; height: 3px; margin-top: 10px; background: #d8d6cf; }
.ae-sw .ae-bar span { background: #111; }
.ae-sw .ae-btn { grid-column: 5 / 7; grid-row: 3; justify-self: end; padding: 7px 14px; border-radius: 0; background: #111; color: #f5f4f0; font-weight: 700; font-size: 12px; }

/* brutalism */
.ae-br { background: #fff; color: #000; font-family: "Times New Roman", Times, serif; place-items: start stretch; padding: 0; }
.ae-br .ae-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 12px 16px; }
.ae-br .ae-art {
  order: 2; width: 120px; height: 40px; aspect-ratio: auto; border: 1px solid #000;
  font: 11px/1.2 "Courier New", Courier, monospace; color: #000;
}
.ae-br .ae-meta { display: block; align-self: stretch; }
.ae-br-links { order: 3; }
.ae-br .ae-btn { order: 4; }
.ae-br .ae-title { font-size: 26px; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.ae-br .ae-sub { margin-top: 4px; font: 13px "Courier New", Courier, monospace; }
.ae-br .ae-bar { height: 0; margin: 8px 0 0; border-top: 2px solid #000; overflow: visible; }
.ae-br .ae-bar span { display: none; }
.ae-br-links { font-size: 15px; }
.ae-br-links span { color: #0000ee; text-decoration: underline; }
.ae-br-links span:nth-child(2) { color: #551a8b; }
.ae-br .ae-btn { all: revert; }

/* y2k */
.ae-y2k { background: linear-gradient(160deg, #e3d6ff, #c9f0ff 55%, #ffe3f6); color: #3d2f86; }
.ae-y2k-star {
  position: absolute; width: calc(28px * var(--s)); aspect-ratio: 1; background: linear-gradient(135deg, #ffffff 20%, #9b7bff);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: ae-y2k-tw 2.8s ease-in-out infinite;
}
@keyframes ae-y2k-tw { 50% { transform: scale(0.45) rotate(45deg); opacity: 0.6; } }
.ae-y2k .ae-card {
  padding: 16px; border-radius: 24px; background: rgb(255 255 255 / 0.45); border: 1.5px solid rgb(255 255 255 / 0.95);
  box-shadow: 0 10px 30px rgb(120 100 220 / 0.25), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ae-y2k .ae-art {
  width: 62px; border-radius: 50%; animation: ae-y2k-iri 6s linear infinite;
  background: radial-gradient(circle at 32% 28%, #fff 0 9%, transparent 24%), conic-gradient(from 200deg, #ff9ce6, #9ce3ff, #c7ffb0, #fff59c, #ff9ce6);
  box-shadow: inset -6px -8px 14px rgb(80 60 160 / 0.35), 0 6px 14px rgb(120 100 220 / 0.3);
}
@keyframes ae-y2k-iri { to { filter: hue-rotate(360deg); } }
.ae-y2k .ae-title {
  font-size: 22px; font-weight: 900; font-style: italic; font-stretch: 115%; letter-spacing: -0.01em;
  background: linear-gradient(180deg, #5d6380 0%, #c9cee2 38%, #ffffff 48%, #2e3350 52%, #8f96b3 75%, #d7dbea 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 2px 3px rgb(60 50 140 / 0.45));
}
.ae-y2k .ae-sub { color: #4e4290; font-weight: 600; }
.ae-y2k .ae-bar { height: 8px; border-radius: 8px; background: rgb(255 255 255 / 0.7); box-shadow: inset 0 1px 2px rgb(80 60 160 / 0.3); }
.ae-y2k .ae-bar span { border-radius: 8px; background: linear-gradient(90deg, #ff9ce6, #9ce3ff); }
.ae-y2k .ae-btn {
  position: relative; overflow: hidden; padding: 9px 18px; border-radius: 999px; border: 1px solid #0a7cc4; color: #fff;
  font-weight: 800; font-size: 13px; text-shadow: 0 1px 1px rgb(0 60 120 / 0.55);
  background: linear-gradient(#9fe6ff, #2fb5ff 50%, #0a8fe0 51%, #63d0ff);
  box-shadow: inset 0 -2px 4px rgb(0 60 140 / 0.3), 0 4px 10px rgb(10 120 200 / 0.35);
}
.ae-y2k .ae-btn::before { content: ""; position: absolute; left: 10%; right: 10%; top: 2px; height: 45%; border-radius: 999px; background: linear-gradient(rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.1)); }

/* synthwave */
.ae-syn { background: radial-gradient(circle at 50% 46%, rgb(255 41 117 / 0.35), transparent 42%), linear-gradient(#12002b 0%, #3b0a5e 58%, #12002b 58%); color: #fff; }
.ae-syn-sun {
  position: absolute; left: 50%; top: 6%; width: 44cqi; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: linear-gradient(#ffd319, #ff8b2d 45%, #ff2975 80%);
  -webkit-mask: linear-gradient(#000 50%, transparent 50%), repeating-linear-gradient(#000 0 7px, transparent 7px 11px);
  mask: linear-gradient(#000 50%, transparent 50%), repeating-linear-gradient(#000 0 7px, transparent 7px 11px);
}
.ae-syn-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%; overflow: hidden; perspective: 260px; perspective-origin: 50% 0;
  background: #12002b; border-top: 2px solid #ff2975; box-shadow: 0 -4px 20px #ff2975;
}
.ae-syn-plane {
  position: absolute; left: -100%; right: -100%; top: 0; height: 170%; transform-origin: 50% 0; transform: rotateX(72deg);
  background-image: linear-gradient(to right, #ff2975 1.5px, transparent 1.5px), linear-gradient(#ff2975 1.5px, transparent 1.5px);
  background-size: 44px 44px; animation: ae-syn-grid 1.1s linear infinite;
}
@keyframes ae-syn-grid { to { background-position: 0 44px; } }
.ae-syn .ae-card {
  z-index: 2; padding: 12px 14px; border-radius: 6px; background: rgb(18 0 43 / 0.75); border: 1.5px solid #ff2975;
  box-shadow: 0 0 14px rgb(255 41 117 / 0.6), inset 0 0 12px rgb(255 41 117 / 0.25);
}
.ae-syn .ae-art { width: 50px; border-radius: 4px; overflow: hidden; background: linear-gradient(#ffd319, #ff2975); }
.ae-syn .ae-art i { position: absolute; inset: 52% 0 0; background: repeating-linear-gradient(#12002b 0 2px, transparent 2px 5px); }
.ae-syn .ae-title {
  font-size: 19px; font-weight: 900; font-style: italic; font-stretch: 120%; text-transform: uppercase; letter-spacing: 0.01em;
  background: linear-gradient(#ffffff 0%, #ffd6f5 45%, #ff2975 55%, #ffd319 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgb(255 41 117 / 0.8));
}
.ae-syn .ae-sub { color: #29e7ff; text-shadow: 0 0 6px #29e7ff; font-size: 11.5px; }
.ae-syn .ae-bar { height: 6px; border: 1px solid #29e7ff; box-shadow: 0 0 6px rgb(41 231 255 / 0.6); }
.ae-syn .ae-bar span { background: linear-gradient(90deg, #ff2975, #ffd319); }
.ae-syn .ae-btn {
  padding: 8px 14px; border-radius: 3px; background: transparent; border: 1.5px solid #29e7ff; color: #29e7ff;
  font-weight: 800; font-style: italic; font-size: 13px; text-shadow: 0 0 6px #29e7ff;
  box-shadow: 0 0 10px rgb(41 231 255 / 0.55), inset 0 0 8px rgb(41 231 255 / 0.35);
}

/* editorial */
.ae-ed { background: #f7f5f0; color: #1c1a17; padding: 0; place-items: stretch; }
.ae-ed .ae-card {
  width: 100%; height: 100%; padding: 16px 20px; gap: 0 16px; align-items: start; align-content: start;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto;
}
.ae-ed .ae-meta { display: contents; }
.ae-ed .ae-title { grid-column: 1; grid-row: 1; font-family: var(--f-body); font-weight: 500; font-size: clamp(30px, 11cqi, 54px); line-height: 0.92; letter-spacing: -0.025em; }
.ae-ed .ae-sub { grid-column: 1; grid-row: 2; margin-top: 6px; font-family: var(--f-body); font-style: italic; font-size: 14px; color: #4a453d; }
.ae-ed .ae-bar { display: none; }
.ae-ed .ae-art { grid-column: 2; grid-row: 1 / 3; margin-top: 30px; width: 17cqi; aspect-ratio: 3 / 4; background: linear-gradient(160deg, #20304f, #6c4a7a 55%, #c75b3a); }
.ae-ed-by {
  grid-column: 1; grid-row: 3; margin-top: 12px !important; padding: 5px 0; display: flex; gap: 8px;
  border-top: 1px solid #1c1a17; border-bottom: 1px solid #1c1a17; font: 650 10px/1.4 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase;
}
.ae-ed-by span { font-weight: 400; color: #5b554b; }
.ae-ed .ae-btn {
  grid-column: 2; grid-row: 3; align-self: stretch; margin-top: 12px; padding: 5px 0; background: none; color: #1c1a17;
  border-top: 1px solid #1c1a17; border-bottom: 1px solid #1c1a17; border-radius: 0;
  font: italic 500 13px/1.4 var(--f-body); text-decoration: underline; text-underline-offset: 3px; text-align: right;
}
.ae-ed-cols { grid-column: 1 / -1; grid-row: 4; margin-top: 10px; columns: 2; column-gap: 18px; font-family: var(--f-body); font-size: 11.5px; line-height: 1.42; color: #2e2a24; }
.ae-ed-cols p::first-letter { float: left; font-size: 3.3em; line-height: 0.8; padding: 3px 5px 0 0; font-weight: 500; color: #1c1a17; }
