@font-face {
    font-family: Fredoka;
    src: url("/user/herois-fantasia/fredoka.ttf") format("truetype");
    font-weight: 300 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --navy: #101831;
    --deep: #0a1027;
    --gold: #ffcf6a;
    --cream: #ffe8ae;
    --ice: #b5d9ff;
    --body: Fredoka, system-ui, sans-serif;
    --script: "Snell Roundhand", "Brush Script MT", "Segoe Script", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 10px; }
body { margin: 0; background: var(--deep); color: #f5f7ff; font: 400 16px/1.35 var(--body); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, summary { font: inherit; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
:is(a, summary, button):focus-visible { outline: 3px solid #d4eeff; outline-offset: 3px; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 5; padding: 8px; background: #182650; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    width: min(100%, 1240px);
    margin-inline: auto;
    padding: 6px clamp(10px, 3.5vw, 42px);
}
.brand { filter: drop-shadow(0 5px 6px #030716bd); }
.brand img { width: clamp(100px, 18vw, 235px); height: auto; }
.menu { position: relative; justify-self: start; margin-top: 4px; }
.menu-button { display: grid; width: 34px; height: 33px; place-items: center; }
.menu-button > span { width: 15px; height: 2px; border-radius: 1px; background: #ffe4a1; box-shadow: 0 -5px #ffe4a1, 0 5px #ffe4a1; }
.menu-links {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    display: grid;
    width: min(210px, calc(100vw - 24px));
    border: 1px solid #bc8a3a;
    border-radius: 9px;
    background: #121d39f8;
    box-shadow: 0 10px 24px #010510a0;
    overflow: hidden;
}
.menu-links a { padding: 10px 13px; border-bottom: 1px solid #819ddb29; font-size: .9rem; }
.menu-links a:last-child { border-bottom: 0; }
.menu-links a:hover { background: #253256; color: var(--gold); }
.header-account {
    display: inline-flex;
    justify-self: end;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 5px 9px;
    color: var(--cream);
    font-size: clamp(.76rem, 2.55vw, 1rem);
    font-weight: 620;
}
.ornate {
    position: relative;
    isolation: isolate;
    border: 1px solid #ffe29a;
    border-radius: 8px;
    background: linear-gradient(148deg, #fff2b3, #a96d29 26%, #f5d179 52%, #915923 78%, #ffe59c);
    box-shadow: 0 2px 6px #070611a3;
}
.ornate::before {
    position: absolute;
    z-index: -1;
    inset: 2px;
    border: 1px solid #896841;
    border-radius: inherit;
    background: linear-gradient(155deg, #3d333d, #171622 61%, #251d27);
    content: "";
}
.ornate:hover::before { background: linear-gradient(155deg, #65452d, #2b2130 68%, #2a202d); }
.person-icon { position: relative; display: inline-block; flex: none; width: 13px; height: 15px; color: #ffcf68; }
.person-icon::before, .person-icon::after { position: absolute; background: currentColor; content: ""; }
.person-icon::before { inset: 0 auto auto 3px; width: 7px; height: 7px; border-radius: 50%; }
.person-icon::after { inset: 7px 0 1px; border-radius: 7px 7px 3px 3px; }

.hero {
    position: relative;
    height: clamp(180px, 58vw, 650px);
    isolation: isolate;
    background: #142757;
}
.scene { position: absolute; inset: 0; isolation: isolate; overflow: hidden; }
.scene > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.scene::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #040e305e 0%, transparent 34%, transparent 53%, #0b153874 77%, #0d183edd 100%);
    content: "";
}
.hero-copy {
    position: absolute;
    right: 6%;
    bottom: clamp(14px, 3.5vw, 35px);
    left: 6%;
    text-align: center;
}
.hero-copy h1 {
    margin: 0;
    color: #ffe393;
    font: italic 760 clamp(1.31rem, 5.55vw, 4.2rem)/.99 var(--script);
    letter-spacing: -.045em;
    text-shadow: 0 1px #753e17, 0 2px #693e17, 0 4px 8px #111329;
    transform: rotate(-4deg);
}
.hero-copy em { color: #ffd272; font-style: inherit; }
.hero-copy p {
    margin: 5px 0 0;
    color: #f8faff;
    font-size: clamp(.68rem, 2.5vw, 1.17rem);
    font-weight: 520;
    text-shadow: 0 1px 4px #091228, 0 2px 7px #070c1d;
}
.realm {
    position: relative;
    isolation: isolate;
    min-height: 160px;
    padding: 0 clamp(10px, 3vw, 30px) clamp(20px, 4vw, 42px);
}
.realm::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(#0c1637e3, #0e1c41ae 52%, #0c153b72), url("castelo-960.webp") center 76% / cover;
    content: "";
}
.realm > * { width: min(100%, 1080px); margin-inline: auto; }
.platforms {
    position: relative;
    margin-top: -2px;
    padding: clamp(8px, 2vw, 19px) clamp(12px, 3vw, 28px) clamp(9px, 2vw, 19px);
    border: 1px solid #e3b76f;
    border-radius: 20px 20px 12px 12px;
    background: radial-gradient(ellipse at 50% 12%, #223664, #131f42 52%, #101831 90%);
    box-shadow: inset 0 0 0 2px #293d69, inset 0 0 0 3px #5269a068, 0 -1px 7px #e1b15f63, 0 6px 16px #03081980;
}
.platforms::before {
    position: absolute;
    top: -3px;
    left: 14%;
    width: 72%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffeeb5 24%, #ba7f33 53%, #ffe7a4 77%, transparent);
    content: "";
}
.platforms h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 0 0 clamp(7px, 1.7vw, 16px);
    color: var(--gold);
    font-size: clamp(1rem, 3.7vw, 1.8rem);
    line-height: 1.15;
    font-weight: 620;
    text-shadow: 0 1px #74361a;
}
.platforms h2::before, .platforms h2::after,
.resources h2::before, .resources h2::after {
    width: clamp(13px, 11vw, 100px);
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9b95c 85%, #ffe6a4);
    content: "";
}
.platforms h2::after, .resources h2::after { transform: scaleX(-1); }
.platforms h2 > span { color: #ffce65; font-size: 1.35em; line-height: .8; }
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(4px, 1.5vw, 16px);
    max-width: 920px;
    margin-inline: auto;
}

.platform {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1224 / 384;
    border-radius: 12px;
    --light: #ffb73f;
    --light-core: #fff7dc;
}
.ios {
    --light: #30baff;
    --light-core: #e7fbff;
}

/* Each link shows one half of the original two-button illustration. */
.platform-art {
    position: absolute;
    inset: 0 auto auto -12.745098%;
    width: 125.490196%;
    max-width: none;
    height: auto;
    mask: url("botoes-mascara.png") center / 100% 100% no-repeat;
}
.ios .platform-art { top: -100%; }
.platform:hover .platform-art { filter: brightness(1.09); }

.platform-light {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .platform-light::before {
        position: absolute;
        top: 0;
        left: 0;
        width: clamp(14px, 6%, 28px);
        height: 4px;
        border-radius: 50%;
        background: linear-gradient(90deg, transparent, var(--light), var(--light-core));
        filter: drop-shadow(0 0 3px var(--light)) drop-shadow(0 0 5px var(--light));
        offset-path: inset(22% 12% 20% round 13% / 50%);
        offset-path: shape(from 50% 22%, hline to 78%, curve to 88% 50% with 84% 22% / 88% 36%, curve to 78% 79% with 88% 64% / 84% 79%, hline to 22%, curve to 12% 50% with 16% 79% / 12% 64%, curve to 22% 22% with 12% 36% / 16% 22%, close);
        animation: platform-orbit 4s linear infinite;
        content: "";
    }
    .ios .platform-light::before { animation-delay: -1s; }
}
@keyframes platform-orbit {
    from { offset-distance: 0%; opacity: .85; }
    25%, 75% { opacity: 1; }
    50% { opacity: .7; }
    to { offset-distance: 100%; opacity: .85; }
}
@media (max-width: 600px) {
    .platform-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 405px;
        gap: 0;
    }
}

.chevron { display: inline-block; justify-self: end; width: 8px; height: 8px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: rotate(45deg); }

.resources { position: relative; margin-top: 9px; }
.resources h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 0 7px;
    color: #ffe19a;
    font: italic 760 clamp(1.14rem, 4.5vw, 2.6rem)/1.1 var(--script);
    text-shadow: 0 1px #693417, 0 2px 4px #030918;
}
.resources-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 2vw, 16px); }
.resource {
    position: relative;
    display: grid;
    align-content: start;
    gap: 2px;
    min-width: 0;
    min-height: 89px;
    padding: 2px 4px 6px;
    border: 1px solid #a3caefb0;
    border-radius: 11px;
    background: linear-gradient(162deg, #243659, #121a36 46%, #171c38);
    box-shadow: inset 0 0 0 2px #5977ac7a, 0 3px 7px #070b204f;
    text-align: center;
}
.resource:hover { border-color: #ffd985; }
.resource-art {
    display: grid;
    height: clamp(45px, 13vw, 140px);
    border-radius: 8px 8px 2px 2px;
    overflow: hidden;
    place-items: center;
    background: radial-gradient(ellipse at 50% 75%, var(--glow), #0c153200 75%), #0e1c42;
}
.resource-art > span { display: block; width: auto; height: 112%; aspect-ratio: 1; background: url("tesouros.webp") var(--point) center / 300% 100% no-repeat; }
.trophy { --point: left; --glow: #465cae; }
.treasure { --point: center; --glow: #7944b2; }
.diamonds { --point: right; --glow: #2462a9; }
.resource strong { color: #ffd97f; font-size: clamp(.67rem, 2.55vw, 1.2rem); font-weight: 620; line-height: 1.1; }
.resource small { padding-inline: 1px; color: #dce5f7; font-size: clamp(.59rem, 1.62vw, .88rem); line-height: 1.13; }
.resource-arrow {
    display: grid;
    position: absolute;
    right: 5px;
    bottom: 4px;
    width: 11px;
    height: 11px;
    border: 1px solid #dca74e;
    border-radius: 2px;
    place-items: center;
    background: #282031;
    color: #ffd87b;
    font: 620 11px/1 sans-serif;
}

.news {
    margin-top: 10px;
    border: 1px solid #f1c069;
    border-radius: 19px;
    background: linear-gradient(113deg, #2b406c, #152349 37%, #111b39);
    box-shadow: inset 0 0 0 2px #7898d45e, 0 0 8px #ffb5303d;
}
.news summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 3px 13px; }
.news summary img { width: clamp(27px, 7vw, 46px); height: auto; }
.news summary strong, .news summary small { display: block; }
.news summary strong { color: #ffd97d; font-size: clamp(.77rem, 2.8vw, 1.15rem); font-weight: 630; line-height: 1.1; }
.news summary small { color: #eff3ff; font-size: clamp(.68rem, 2.17vw, .94rem); }
.news summary .chevron { color: var(--gold); }
.news[open] summary .chevron { transform: rotate(135deg); }
.news-body { padding: 4px 15px 11px; font-size: .82rem; }
.news-body p { margin: 3px 0; }
.news-body a { color: var(--gold); }
.notice { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 8px 11px; border: 1px solid #8aa9ea8a; border-radius: 8px; background: #1c2c55; font-size: .83rem; }
.notice:target { display: flex; }
.notice p { margin: 0; }
.notice a { flex: none; color: var(--gold); }

@media (min-width: 720px) {
    .menu-button { width: 43px; height: 42px; }
    .header-account { padding: 7px 16px; }
    .resource { padding: 3px 7px 9px; gap: 4px; }
    .resource-arrow { width: 15px; height: 15px; right: 7px; bottom: 7px; }
    .resources { margin-top: 17px; }
    .resources h2 { margin-bottom: 11px; }
    .news { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

}


.help {margin-top:24px;padding:clamp(15px,4vw,32px);border:1px solid #6984b75c;border-radius:18px;background:linear-gradient(125deg,#1d3054,#101a32);color:#edf3ff}
.help header {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.help h2 {margin:0;color:#ffe0a1;font: bold clamp(1.2rem,4vw,1.8rem) Georgia,serif}
.help a {color:#ffe1a0;text-decoration:underline;text-underline-offset:.18em}
.help details {border-top:1px solid #97b4e733;padding-block:3px}
.help summary {display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:46px;cursor:pointer}
.help summary::after {content:"+";font-size:1.25rem;color:#ffcf78}
.help details[open] summary::after {content:"−"}
.help p {margin:0 0 14px;line-height:1.55;color:#d4dff2}

.site-footer {
    padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 40px) max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid #94724c;
    background: linear-gradient(150deg, #192440, #0a1027 65%);
    color: #d4dff2;
}
.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 20px clamp(16px, 5vw, 48px);
    width: min(100%, 1080px);
    margin-inline: auto;
}
.footer-brand {
    align-self: start;
    justify-self: start;
}
.footer-brand img {
    width: clamp(115px, 20vw, 176px);
    height: auto;
}
.footer-links h2 {
    margin: 0 0 6px;
    color: var(--cream);
    font-size: 1.04rem;
}
.footer-links ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.footer-links a {
    display: inline-block;
    padding-block: 5px;
    font-size: .94rem;
}
.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 20px;
    padding-top: 10px;
    border-top: 1px solid #97b4e733;
    font-size: .88rem;
}
.footer-bottom a { color: var(--cream); }
.site-footer a:hover {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: .18em;
}

@media (max-width: 560px) {
    .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}
