/* =====================================================================================
   EndlessRPG "Frost" content theme (2026-11-22)
   The page chrome is blue crystal (frames, menu, sidebar); this turns the tibia.com parchment
   content area into the same night-blue so the whole page reads as one piece.

   Loaded after every other stylesheet when $config['endless_theme'] === 'frost'
   (templates/endless/config.php: ?theme=frost / ?theme=classic, remembered in a cookie).
   Table row colours still come from config.ini (bgcolor="#F1E0C6" etc.) - they are remapped
   here with attribute selectors, so no PHP/Twig file has to know about the theme.
   ===================================================================================== */

:root {
    /* OLED: the surfaces are (near) true black; the ice accents carry the colour */
    --frost-bg: #000000;
    --frost-bg-2: #01060d;
    --frost-row-a: #06111f;          /* was lightborder #F1E0C6 */
    --frost-row-b: #02070f;          /* was darkborder  #D4C0A1 */
    --frost-head-1: #0f3a63;         /* was vdarkborder #505050 */
    --frost-head-2: #061a30;
    --frost-line: rgba(140, 215, 255, .14);
    --frost-line-strong: rgba(150, 225, 255, .45);
    --frost-text: #d9e9f8;
    --frost-text-strong: #f4fbff;
    --frost-muted: #86a3c0;
    --frost-link: #7fd4ff;
    --frost-link-hover: #e2f7ff;
    --frost-gold: #ecd38e;
    --frost-input: #000000;
    --frost-hover: rgba(80, 180, 255, .14);
    --frost-ice: #a9e6ff;
    --frost-glow: rgba(110, 200, 255, .55);
}

/* ---- content surface ------------------------------------------------------------- */
.Content .BoxContent {
    background-color: var(--frost-bg) !important;
    background-image:
        radial-gradient(120% 55% at 50% -12%, rgba(70, 170, 255, .22), transparent 62%),        /* aurora */
        radial-gradient(38% 30% at 0% 0%, rgba(175, 228, 255, .11), transparent 72%),          /* frosted corners */
        radial-gradient(38% 30% at 100% 0%, rgba(175, 228, 255, .11), transparent 72%),
        radial-gradient(30% 25% at 0% 100%, rgba(120, 200, 255, .06), transparent 70%),
        radial-gradient(30% 25% at 100% 100%, rgba(120, 200, 255, .06), transparent 70%),
        repeating-linear-gradient(115deg, rgba(185, 232, 255, .022) 0 1px, transparent 1px 9px),  /* rime grain */
        repeating-linear-gradient(65deg, rgba(185, 232, 255, .014) 0 1px, transparent 1px 13px),
        linear-gradient(180deg, var(--frost-bg-2) 0%, var(--frost-bg) 40%) !important;
    color: var(--frost-text) !important;
}
.Content .Box { background-color: var(--frost-bg) !important; color: var(--frost-text); }
.Content .BoxContent,
.Content .BoxContent td,
.Content .BoxContent p,
.Content .BoxContent li,
.Content .BoxContent span:not([class*="rank_"]):not(.erpg-count),
.Content .BoxContent div:not(.erpg-slot):not(.erpg-lock) {
    color: var(--frost-text);
}
.Content .BoxContent b,
.Content .BoxContent strong,
.Content .BoxContent h1,
.Content .BoxContent h2,
.Content .BoxContent h3,
.Content .BoxContent h4 {
    color: var(--frost-text-strong);
}
.Content .BoxContent h1,
.Content .BoxContent h2,
.Content .BoxContent h3 { color: var(--frost-gold); }
.Content .BoxContent hr { border: 0; border-top: 1px solid var(--frost-line-strong); }

/* ---- links --------------------------------------------------------------------------- */
.Content a,
.Content a:visited,
.Content .BoxContent a,
.Content .BoxContent a b { color: var(--frost-link); }
.Content a:hover,
.Content .BoxContent a:hover,
.Content .BoxContent a:hover b { color: var(--frost-link-hover); }
/* character names keep MyAAC's online/offline colours, just brighter on dark */
.Content .BoxContent a[style*="color: green"],
.Content .BoxContent a[style*="color:green"] { color: #5fe07a !important; }
.Content .BoxContent a[style*="color: red"],
.Content .BoxContent a[style*="color:red"] { color: #ff7a7a !important; }
.Content .BoxContent font[color="green" i] { color: #5fe07a; }
.Content .BoxContent font[color="red" i] { color: #ff7a7a; }

/* ---- classic MyAAC tables (bgcolor from config.ini) ------------------------------------ */
.Content [bgcolor="#F1E0C6" i] { background-color: var(--frost-row-a) !important; }
.Content [bgcolor="#D4C0A1" i] { background-color: var(--frost-row-b) !important; }
.Content [bgcolor="#505050" i] {
    background-color: var(--frost-head-2) !important;
    background-image: linear-gradient(180deg, var(--frost-head-1), var(--frost-head-2)) !important;
}
.Content [bgcolor="#505050" i] td,
.Content [bgcolor="#505050" i] .white,
.Content .white { color: var(--frost-text-strong) !important; }
.Content [bgcolor="#F1E0C6" i],
.Content [bgcolor="#D4C0A1" i] { border-color: var(--frost-line); }
.Content table[cellspacing="1"] { border-collapse: separate; }
.Content th {
    background-color: var(--frost-head-2) !important;
    background-image: linear-gradient(180deg, var(--frost-head-1), var(--frost-head-2));
    color: var(--frost-text-strong) !important;
}
/* hard-coded parchment shades inside system templates */
.Content [style*="#FAF0D7" i],
.Content [style*="#F1E0C6" i]:not([style*="border"]),
.Content [style*="#D4C0A1" i],
.Content [style*="#FFF2DB" i] { background-color: var(--frost-row-a) !important; }
.Content [bgcolor="#FAF0D7" i] { background-color: var(--frost-row-a) !important; }
/* character page: ring around the outfit */
.Content div[style*="border:2px solid #F1E0C6" i] { border-color: #3d6aa8 !important; box-shadow: 0 0 10px rgba(80, 140, 255, .35); }

/* ---- tibia.com table containers --------------------------------------------------------- */
.TableContainer { border-color: #000 !important; }
.TableContainer .Odd,
.Content .BoxContent .Even { background-color: var(--frost-row-a) !important; }
.TableContainer .Even,
.Content .BoxContent .Odd { background-color: var(--frost-row-b) !important; }
.TableContainer .CaptionContainer,
.TableContainer .CaptionContainer .CaptionInnerContainer {
    background-color: var(--frost-head-2) !important;
    background-image: linear-gradient(180deg, var(--frost-head-1), var(--frost-head-2));
}
.TableContainer .CaptionContainer .Text { color: var(--frost-text-strong) !important; }
.TableContentContainer,
.TableContainer .Table1,
.TableContainer .Table2,
.TableContainer .Table3,
.TableContainer .Table4,
.TableContainer .Table5 {
    background-color: var(--frost-row-b) !important;
    border-color: var(--frost-line) !important;
}
.TableContent td,
.TableContainer td { color: var(--frost-text); border-color: var(--frost-line) !important; }
.LabelH,
.LabelH td { background-color: var(--frost-head-2) !important; color: var(--frost-text-strong) !important; }
.LabelV,
.LabelV150,
.LabelV200 { color: var(--frost-text-strong); }
.SmallBox .Message,
.SmallBox .ErrorMessage { background-color: var(--frost-row-a) !important; color: var(--frost-text) !important; }
.moduleRowOver { background-color: var(--frost-hover) !important; }

/* ---- bootstrap tables/cards used by some MyAAC pages ------------------------------------ */
.Content .table { color: var(--frost-text); --bs-table-bg: transparent; --bs-table-color: var(--frost-text); }
.Content .table > :not(caption) > * > * { background-color: transparent; color: var(--frost-text); border-color: var(--frost-line); }
.Content .table-striped > tbody > tr:nth-of-type(odd) > * { background-color: var(--frost-row-a); --bs-table-accent-bg: transparent; }
.Content .table-striped > tbody > tr:nth-of-type(even) > * { background-color: var(--frost-row-b); }
.Content .table thead th,
.Content .table-dark,
.Content .thead-dark th { background: linear-gradient(180deg, var(--frost-head-1), var(--frost-head-2)) !important; color: var(--frost-text-strong) !important; border-color: var(--frost-line) !important; }
.Content .table-hover > tbody > tr:hover > * { background-color: var(--frost-hover); }
.Content .card,
.Content .list-group-item { background-color: var(--frost-row-b); color: var(--frost-text); border-color: var(--frost-line); }
.Content .card-header { background: linear-gradient(180deg, var(--frost-head-1), var(--frost-head-2)); color: var(--frost-text-strong); border-color: var(--frost-line); }
.Content .alert-info { background: #10284a; color: #cfe2ff; border-color: #2d5a99; }
.Content .alert-warning { background: #3a2f10; color: #ffe9a8; border-color: #8a6d1f; }
.Content .alert-danger { background: #3a1216; color: #ffc9cf; border-color: #8a2a33; }
.Content .alert-success { background: #0f3020; color: #c6f2d6; border-color: #2a7a4c; }

/* MyAAC message boxes from error()/success()/note()/warning() (tools/css/messages.css): pastel
   backgrounds whose dark text colour the theme's light text overrides -> unreadable. Dark versions. */
.Content div.error,
.Content div.success,
.Content div.note,
.Content div.warning,
.Content div.info {
    font-size: 12px !important;
    line-height: 1.45;
    padding: 8px 12px !important;
    border: 1px solid !important;
    border-left-width: 4px !important;
    border-radius: 4px;
}
.Content div.error   { background: #2e0d12 !important; border-color: #b8323f !important; border-left-color: var(--ember, #ff3b47) !important; color: #ffc9cf !important; }
.Content div.success { background: #0d2a1c !important; border-color: #2a7a4c !important; border-left-color: #3fd17f !important; color: #c6f2d6 !important; }
.Content div.note,
.Content div.info    { background: #0e2442 !important; border-color: #2d5a99 !important; border-left-color: #7fd4ff !important; color: #d6e9ff !important; }
.Content div.warning { background: #33290c !important; border-color: #8a6d1f !important; border-left-color: #ffcc00 !important; color: #ffe9a8 !important; }
.Content div.error *, .Content div.success *, .Content div.note *, .Content div.info *, .Content div.warning * { color: inherit !important; }
.Content div.error a, .Content div.success a, .Content div.note a, .Content div.info a, .Content div.warning a { color: #ffffff !important; text-decoration: underline; }

/* ---- forms ------------------------------------------------------------------------------ */
.Content input[type="text"],
.Content input[type="password"],
.Content input[type="email"],
.Content input[type="number"],
.Content input[type="search"],
.Content input:not([type]),
.Content select,
.Content textarea,
.Content .form-control,
.Content .form-select {
    background-color: var(--frost-input) !important;
    color: var(--frost-text-strong) !important;
    border: 1px solid #2d4a78 !important;
    border-radius: 3px;
}
.Content input:focus,
.Content select:focus,
.Content textarea:focus,
.Content .form-control:focus {
    outline: none;
    border-color: #5d8fd6 !important;
    box-shadow: 0 0 0 2px rgba(93, 143, 214, .25) !important;
}
.Content input::placeholder,
.Content textarea::placeholder { color: #6f809a; }
.Content select option { background: var(--frost-input); color: var(--frost-text-strong); }

/* ---- misc --------------------------------------------------------------------------------- */
.Content .BoxContent code,
.Content .BoxContent pre { background: #08111f; color: #bcd3f5; border: 1px solid var(--frost-line); }
.Content .BoxContent blockquote { border-left: 3px solid #2d5a99; background: rgba(20, 40, 75, .5); color: var(--frost-text); }
.Content .BoxContent ::selection { background: #2d5a99; color: #fff; }
#Footer, #Footer a { color: var(--frost-muted); }

/* ---- MyAAC .myaac-table (online, commands ...: zebra rows from an inline <style>) ------------ */
.Content .myaac-table > tbody > tr:nth-child(2n) { background: var(--frost-row-a) !important; }
.Content .myaac-table > tbody > tr:nth-child(2n+1) { background: var(--frost-row-b) !important; }
.Content .myaac-table > tbody > tr:hover { background: var(--frost-hover) !important; }
.Content .myaac-table,
.Content .myaac-table td,
.Content .myaac-table th { border-color: var(--frost-line) !important; }

/* ---- char bazaar ------------------------------------------------------------------------------ */
.AuctionDisplay,
.ShortAuctionData,
.ShortAuctionData .AuctionTimer,
.CurrentBid,
.SpecialCharacterFeatures {
    background-color: var(--frost-row-a) !important;
    border-color: #2d4a78 !important;
    color: var(--frost-text);
}

/* ---- status bar under the top links ------------------------------------------------------------- */
#statusbar { background-color: var(--frost-row-b) !important; color: var(--frost-text); }

/* ---- tibia.com box decorations (brown gif strips set inline in the templates) ------------------ */
.Content .CaptionBorderTop,
.Content .CaptionBorderBottom {
    background-image: none !important;
    background-color: rgba(120, 170, 255, .55) !important;
    height: 1px !important;
}
.Content .CaptionBorderBottom { bottom: 0 !important; }
.Content .CaptionVerticalLeft,
.Content .CaptionVerticalRight {
    background-image: none !important;
    background-color: rgba(120, 170, 255, .35) !important;
    width: 1px !important;
}
.Content .CaptionEdgeLeftTop,
.Content .CaptionEdgeRightTop,
.Content .CaptionEdgeLeftBottom,
.Content .CaptionEdgeRightBottom {
    background-image: none !important;
    background-color: #7fb6ff !important;
    width: 3px !important;
    height: 3px !important;
    box-shadow: 0 0 4px rgba(127, 182, 255, .8);
}
.Content .TableShadowRightTop,
.Content .TableContentAndRightShadow,
.Content .TableBottomShadow,
.Content .TableBottomLeftShadow,
.Content .TableBottomRightShadow { background-image: none !important; }
.Content .TableContentContainer { border-color: #2d4a78 !important; box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }

/* ---- "Server starts in" countdown (start-countdown plugin): brown frame -> ice blue ------------- */
#defaultCountdownParent {
    background: linear-gradient(180deg, #13284a, #0b1628) !important;
    border-color: #2d5a99 !important;
    box-shadow: 0 0 14px rgba(60, 120, 230, .35) !important;
}
#defaultCountdownParent:hover { border-color: #7fb6ff !important; box-shadow: 0 0 20px rgba(80, 150, 255, .6) !important; }
#defaultCountdownParent,
#defaultCountdownParent div { color: var(--frost-text-strong) !important; }
#defaultCountdown { background-color: #08111f !important; border-color: #2d4a78 !important; }

/* ---- spells page tabs (label background = vdarkborder from an inline <style>) ------------------- */
.Content .ts_Spells > label {
    background: linear-gradient(180deg, var(--frost-head-1), var(--frost-head-2)) !important;
    border: 1px solid var(--frost-line-strong);
    color: var(--frost-text-strong) !important;
}
.Content .ts_Spells > input:checked + label {
    background: linear-gradient(180deg, #2d5a99, #1f3d6b) !important;
    box-shadow: 0 0 8px rgba(80, 140, 255, .45);
}


/* =====================================================================================
   Ice layer: glow, frosted glass and crisp edges on top of the black surfaces
   ===================================================================================== */

/* frame around the content + its headline bar (content_frame.css sets the classic blue) */
.Content .Box {
    background-color: #000 !important;
    border-left-color: #1f6aa8 !important;
    border-right-color: #1f6aa8 !important;
    box-shadow: 0 0 18px rgba(60, 160, 255, .45), inset 0 0 22px rgba(60, 160, 255, .12) !important;
}
.Content .BorderTitleText {
    background: linear-gradient(180deg, #0b2c4f 0%, #010810 100%) !important;
    border-bottom: 1px solid rgba(150, 225, 255, .55) !important;
    box-shadow: 0 1px 10px rgba(80, 180, 255, .35);
}
.Content .Border_1 { background: linear-gradient(180deg, #5cc4ff 0%, #04121f 100%) !important; }
.Content .Border_2 { background-color: #1f6aa8 !important; }
.Content .Border_3 { border-top-color: #1f6aa8 !important; border-bottom-color: #1f6aa8 !important; }

/* headings: ice-white fading into cyan */
.Content .BoxContent h1,
.Content .BoxContent h2,
.Content .BoxContent h3 {
    background: linear-gradient(180deg, #ffffff 0%, #bdeeff 55%, #5cc4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    filter: drop-shadow(0 0 6px rgba(90, 190, 255, .45));
}

/* header rows: glacier blue with a lit top edge */
.Content [bgcolor="#505050" i],
.Content th,
.TableContainer .CaptionContainer,
.TableContainer .CaptionContainer .CaptionInnerContainer,
.Content .table thead th,
.LabelH,
.LabelH td {
    background-image: linear-gradient(180deg, #11426f 0%, #082340 55%, #04162b 100%) !important;
    box-shadow: inset 0 1px 0 rgba(200, 240, 255, .35), inset 0 -1px 0 rgba(120, 200, 255, .25);
}
.Content [bgcolor="#505050" i],
.Content [bgcolor="#505050" i] td,
.Content [bgcolor="#505050" i] b,
.Content th,
.TableContainer .CaptionContainer .Text,
.LabelH td {
    color: #f4fbff !important;
    text-shadow: 0 0 6px rgba(130, 210, 255, .55);
}

/* rows: thin rime lines between them, a cold glow under the pointer */
.Content [bgcolor="#F1E0C6" i] > td,
.Content [bgcolor="#D4C0A1" i] > td,
.Content .myaac-table > tbody > tr > td { box-shadow: inset 0 -1px 0 var(--frost-line); }
.Content tr[bgcolor="#F1E0C6" i]:hover,
.Content tr[bgcolor="#D4C0A1" i]:hover { background-color: #0a2038 !important; }

/* tables as frosted glass */
.Content table[cellspacing="1"],
.TableContainer,
.Content .myaac-table {
    box-shadow: 0 0 0 1px rgba(140, 215, 255, .16), 0 0 14px rgba(40, 140, 255, .12);
}
.TableContentContainer,
.TableContainer .Table1,
.TableContainer .Table2,
.TableContainer .Table3,
.TableContainer .Table4,
.TableContainer .Table5 {
    background-color: rgba(4, 14, 28, .85) !important;
    border-color: rgba(140, 215, 255, .25) !important;
}

/* caption decorations: glowing ice lines and crystal points */
.Content .CaptionBorderTop,
.Content .CaptionBorderBottom {
    background-color: rgba(170, 230, 255, .75) !important;
    box-shadow: 0 0 6px rgba(120, 210, 255, .7);
}
.Content .CaptionVerticalLeft,
.Content .CaptionVerticalRight { background-color: rgba(150, 225, 255, .45) !important; }
.Content .CaptionEdgeLeftTop,
.Content .CaptionEdgeRightTop,
.Content .CaptionEdgeLeftBottom,
.Content .CaptionEdgeRightBottom {
    background-color: #d6f4ff !important;
    box-shadow: 0 0 6px 1px rgba(140, 220, 255, .9);
    transform: rotate(45deg);
}

/* links */
.Content a:hover,
.Content .BoxContent a:hover { text-shadow: 0 0 8px rgba(120, 210, 255, .8); }

/* forms */
.Content input[type="text"],
.Content input[type="password"],
.Content input[type="email"],
.Content input[type="number"],
.Content input[type="search"],
.Content input:not([type]),
.Content select,
.Content textarea,
.Content .form-control,
.Content .form-select {
    border-color: rgba(120, 200, 255, .38) !important;
    box-shadow: inset 0 0 8px rgba(60, 150, 255, .12) !important;
}
.Content input:focus,
.Content select:focus,
.Content textarea:focus,
.Content .form-control:focus {
    border-color: #7fd4ff !important;
    box-shadow: 0 0 0 2px rgba(127, 212, 255, .22), 0 0 14px rgba(127, 212, 255, .4) !important;
}

/* countdown box */
#defaultCountdownParent {
    background: linear-gradient(180deg, #052040 0%, #000 100%) !important;
    border-color: #3d9be0 !important;
    box-shadow: 0 0 18px rgba(70, 170, 255, .5), inset 0 0 18px rgba(70, 170, 255, .15) !important;
}
#defaultCountdownParent:hover { border-color: #a9e6ff !important; box-shadow: 0 0 26px rgba(120, 210, 255, .75) !important; }
#defaultCountdown { background-color: #000 !important; border-color: rgba(120, 200, 255, .38) !important; }

/* character page: outfit ring and the equipment panel (plugins/endless-equipment) */
.Content div[style*="border:2px solid #F1E0C6" i] {
    border-color: #5cc4ff !important;
    box-shadow: 0 0 14px rgba(90, 190, 255, .6), inset 0 0 14px rgba(90, 190, 255, .25) !important;
}
.Content .erpg-inv {
    background: #01060d;
    border-color: rgba(140, 215, 255, .35);
    box-shadow: 0 0 12px rgba(60, 160, 255, .3);
}
.Content .erpg-inv-note,
.Content .erpg-inv-note b { color: var(--frost-text); }

/* spells tabs */
.Content .ts_Spells > label { background: linear-gradient(180deg, #11426f, #04162b) !important; border-color: rgba(150, 225, 255, .4); }
.Content .ts_Spells > input:checked + label {
    background: linear-gradient(180deg, #1f6aa8, #0b2c4f) !important;
    box-shadow: 0 0 12px rgba(90, 190, 255, .6);
}

/* inner form tables had a pure white edge - make it rime */
.Content .TableContent { border-color: rgba(170, 230, 255, .4) !important; }

/* =====================================================================================
   v3 "Ice & Ember": blue sky into black, a few ember-red details, quiet motion
   ===================================================================================== */
:root {
    --ember: #ff3b47;
    --ember-deep: #b3121f;
    --ember-glow: rgba(255, 50, 60, .55);
}

/* blue at the top (matches the page artwork), black underneath, embers glowing at the floor */
.Content .BoxContent {
    position: relative;
    z-index: 0;
    background-image:
        radial-gradient(120% 50% at 50% -10%, rgba(80, 180, 255, .26), transparent 60%),
        radial-gradient(38% 30% at 0% 0%, rgba(175, 228, 255, .12), transparent 72%),
        radial-gradient(38% 30% at 100% 0%, rgba(175, 228, 255, .12), transparent 72%),
        radial-gradient(70% 160px at 50% 100%, rgba(210, 25, 40, .20), transparent 75%),
        repeating-linear-gradient(115deg, rgba(185, 232, 255, .02) 0 1px, transparent 1px 9px),
        repeating-linear-gradient(65deg, rgba(185, 232, 255, .013) 0 1px, transparent 1px 13px),
        linear-gradient(180deg, #0c2b52 0px, #081d38 140px, #04101f 380px, #010409 650px, #000 900px) !important;
}

/* snowfall between the background and the text: two layers, different size and speed */
.Content .BoxContent::before,
.Content .BoxContent::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 55%, transparent 100%);
}
.Content .BoxContent::before {
    background-image:
        radial-gradient(1.2px 1.2px at 30px 40px, rgba(230, 245, 255, .9), transparent),
        radial-gradient(1px 1px at 140px 95px, rgba(230, 245, 255, .7), transparent),
        radial-gradient(1px 1px at 215px 170px, rgba(230, 245, 255, .65), transparent),
        radial-gradient(1.3px 1.3px at 85px 215px, rgba(230, 245, 255, .8), transparent),
        radial-gradient(1px 1px at 255px 25px, rgba(230, 245, 255, .6), transparent);
    background-size: 280px 260px;
    opacity: .5;
    animation: frost-snow-a 26s steps(650) infinite;
}
.Content .BoxContent::after {
    background-image:
        radial-gradient(1.8px 1.8px at 60px 70px, rgba(235, 248, 255, .85), transparent),
        radial-gradient(2px 2px at 300px 230px, rgba(235, 248, 255, .7), transparent),
        radial-gradient(1.6px 1.6px at 190px 330px, rgba(235, 248, 255, .75), transparent);
    background-size: 380px 400px;
    opacity: .35;
    animation: frost-snow-b 34s steps(850) infinite;
}
@keyframes frost-snow-a { from { background-position: 0 0; } to { background-position: 70px 260px; } }
@keyframes frost-snow-b { from { background-position: 0 0; } to { background-position: -95px 400px; } }

/* page title bar: ember underline + an ice glint sweeping across every few seconds */
.Content .BorderTitleText {
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 80, 90, .75) !important;
    box-shadow: 0 1px 0 rgba(150, 225, 255, .35), 0 4px 12px -3px var(--ember-glow) !important;
}
.Content .BorderTitleText::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 42%, rgba(210, 245, 255, .38) 50%, transparent 58%);
    background-size: 300% 100%;
    background-repeat: no-repeat;
    animation: frost-glint 9s ease-in-out infinite;
}
@keyframes frost-glint {
    0%, 62% { background-position: 120% 0; }
    85%, 100% { background-position: -20% 0; }
}

/* table headers: ice highlight on top, ember edge underneath */
.Content [bgcolor="#505050" i],
.Content tr[bgcolor="#505050" i] > td,
.Content th,
.TableContainer .CaptionContainer .CaptionInnerContainer,
.Content .table thead th,
.LabelH td {
    box-shadow: inset 0 1px 0 rgba(200, 240, 255, .35), inset 0 -2px 0 rgba(235, 55, 65, .75) !important;
}

/* caption corner crystals turn to rubies */
.Content .CaptionEdgeLeftTop,
.Content .CaptionEdgeRightTop,
.Content .CaptionEdgeLeftBottom,
.Content .CaptionEdgeRightBottom {
    background-color: #ff5a66 !important;
    box-shadow: 0 0 6px 1px rgba(255, 60, 70, .9) !important;
}

/* the row under the pointer: ember marker on the left, cold glow across */
.Content tr[bgcolor="#F1E0C6" i]:hover > td:first-child,
.Content tr[bgcolor="#D4C0A1" i]:hover > td:first-child,
.Content .myaac-table > tbody > tr:hover > td:first-child {
    box-shadow: inset 3px 0 0 var(--ember), inset 0 -1px 0 var(--frost-line);
}
.Content .myaac-table > tbody > tr,
.Content tr[bgcolor] { transition: background-color .15s; }

/* headings shimmer slowly */
.Content .BoxContent h1,
.Content .BoxContent h2,
.Content .BoxContent h3 {
    background: linear-gradient(100deg, #ffffff 0%, #bdeeff 30%, #5cc4ff 50%, #bdeeff 70%, #ffffff 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: frost-shimmer 8s ease-in-out infinite alternate;
}
@keyframes frost-shimmer { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* ember accents elsewhere */
.Content .erpg-lock { background-color: rgba(110, 0, 12, .5) !important; }
.Content .BoxContent ::selection { background: var(--ember-deep); color: #fff; }
#defaultCountdownParent { box-shadow: 0 0 18px rgba(70, 170, 255, .5), inset 0 -10px 18px -8px rgba(255, 50, 60, .35) !important; }

/* respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
    .Content .BoxContent::before,
    .Content .BoxContent::after,
    .Content .BorderTitleText::after,
    .Content .BoxContent h1,
    .Content .BoxContent h2,
    .Content .BoxContent h3 { animation: none !important; }
}
