/* Home: navy and gold from the Panelgracza emblem. */
.home-page {
    --home-ink: #202d40;
    --home-muted: #64748b;
    --home-surface: rgba(255,255,255,.94);
    --home-subtle: #f5f7fa;
    --home-border: #e2e7ee;
    --home-gold: #efc465;
    --home-shadow: 0 8px 30px #192a430b;
    background: #f3f5f8;
}

[data-theme="dark"] .home-page {
    --home-ink: #e6edf7;
    --home-muted: #9baabd;
    --home-surface: rgba(22,32,47,.95);
    --home-subtle: #111d2c;
    --home-border: #2a384b;
    --home-shadow: 0 8px 30px #00000017;
    background: #0e1724;
}

.home-page main {
    position: relative;
    isolation: isolate;
}

.home-page main>.container {
    padding-top: 2rem!important;
    padding-bottom: 3.5rem!important;
}

.home-page :is(#tools,#ideas,#changelog) {
    scroll-margin-top: 110px;
}

.home-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.home-ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.home-ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#8292a9 1px,transparent 1px);
    background-size: 28px 28px;
    opacity: .09;
    mask-image: linear-gradient(#000,transparent 75%);
}

.home-ambient span {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .08;
    background: #d8b35b;
    top: 150px;
    left: -400px;
}

.home-ambient span+span {
    background: #3d9fb3;
    top: 600px;
    right: -380px;
    left: auto;
}

/* CSS-driven fantasy instrument: no video, canvas or remote artwork. */
.home-hero {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    position: relative;
    min-height: 470px;
    overflow: hidden;
    isolation: isolate;
    padding: 52px 48px 64px;
    border: 1px solid #2a3e51;
    border-radius: 24px;
    color: #eff5ff;
    background: #101e2e;
    box-shadow: 0 18px 50px #0b172a15;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 80% 47%,#2b7e7b26,transparent 52%),radial-gradient(ellipse at 0 0,#405b7f26,transparent 60%),linear-gradient(120deg,#132338,#0e1b29 65%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(#a8d8d109 1px,transparent 1px),linear-gradient(90deg,#a8d8d109 1px,transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg,transparent 35%,#000);
}

.hero-copy {
    position: relative;
    z-index: 2;
    align-self: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #b9c6d5;
    font-size: .69rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.home-status-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #72ceaf;
    box-shadow: 0 0 0 4px #72ceaf13;
}

.home-hero h1 {
    margin: 23px 0 20px;
    font-size: clamp(2.5rem,4.2vw,4.3rem);
    line-height: 1.08;
    font-weight: 750;
    letter-spacing: -.055em;
}

.hero-heading-accent {
    color: var(--home-gold);
}

.hero-description {
    max-width: 380px;
    color: #aebdd0;
    font-size: .97rem;
    line-height: 1.8;
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.home-btn-gold {
    --bs-btn-color: #232a30;
    --bs-btn-bg: #efc465;
    --bs-btn-border-color: #efc465;
    --bs-btn-hover-color: #132132;
    --bs-btn-hover-bg: #ffdb8a;
    --bs-btn-hover-border-color: #ffdb8a;
    --bs-btn-active-color: #132132;
    --bs-btn-active-bg: #e6b859;
    --bs-btn-active-border-color: #e6b859;
    --bs-btn-disabled-color: #232a30;
    --bs-btn-disabled-bg: #efc465;
    --bs-btn-disabled-border-color: #efc465;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    min-height: 46px;
    padding: 11px 19px;
    border-radius: 9px;
    font-size: .8rem;
    font-weight: 700;
    box-shadow: 0 4px 18px #e5b94b12;
    transition: background .2s,box-shadow .2s,transform .2s;
}

.home-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px #e5b94b28;
}

.home-btn-gold .home-icon {
    width: 17px;
    height: 17px;
}

.hero-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: .77rem;
    color: #c7d2e1;
    text-decoration: none;
}

.hero-secondary-link:hover {
    color: #fff;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    margin-top: 32px;
    color: #95a6bc;
    font-size: .66rem;
}

.hero-meta span+span::before {
    content: "/";
    margin: 0 13px;
    color: #62768d;
}

.hero-art {
    position: relative;
    width: 370px;
    height: 350px;
    max-width: 100%;
    margin: auto;
    align-self: center;
}

.hero-art-halo {
    position: absolute;
    inset: 16%;
    border-radius: 50%;
    background: radial-gradient(circle,#68d1ba28,#68d1ba08 50%,transparent 70%);
    animation: home-halo 7s ease-in-out infinite alternate;
}

.rune-orbit {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.orbit-outer {
    inset: 10px 20px;
    border: 1px solid #91b9ae25;
    animation: home-orbit 100s linear infinite;
}

.orbit-outer::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed #e6c77a33;
    border-radius: inherit;
}

.orbit-outer::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1px solid #81c9bc10;
    border-radius: inherit;
}

.orbit-outer span {
    position: absolute;
    top: 48%;
    left: -7px;
    color: #e4c776;
    font-size: 15px;
}

.orbit-outer span+span {
    left: auto;
    right: -7px;
}

.orbit-inner {
    inset: 54px 64px;
    border: 1px solid #71cab055;
    border-top-color: #efc46599;
    border-bottom-color: #efc46599;
    animation: home-orbit 55s linear infinite reverse;
}

.orbit-inner::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: inherit;
    border: 1px solid #71cab018;
}

.rune-dial {
    position: absolute;
    inset: 41px 51px;
    color: #9bb6ac99;
    font-family: Georgia,serif;
    font-size: 10px;
}

.rune-dial span {
    position: absolute;
    top: -4px;
    left: 49%;
}

.rune-dial span:nth-child(2) {
    left: auto;
    right: -5px;
    top: 49%;
}

.rune-dial span:nth-child(3) {
    top: auto;
    bottom: -4px;
}

.rune-dial span:nth-child(4) {
    left: -5px;
    top: 49%;
}

.hero-crystal {
    position: absolute;
    top: 70px;
    left: 101px;
    width: 168px;
    height: 210px;
    filter: drop-shadow(0 0 27px #69d1b638);
    animation: home-float 7s ease-in-out infinite;
}

.hero-crystal svg {
    width: 100%;
    height: 100%;
}

.floating-die {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid #7d9d9a38;
    border-radius: 12px;
    background: #1b2e3dea;
    box-shadow: 0 8px 24px #0003;
    animation: home-float 6s ease-in-out infinite;
}

.floating-die img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px #0006);
}

.floating-die span {
    color: #d5ddd9;
    font-size: .6rem;
    letter-spacing: .1em;
    font-weight: 700;
}

.die-eov {
    top: 43px;
    left: 1px;
    transform: rotate(-8deg);
    animation-delay: -2s;
}

.die-nov {
    top: 75px;
    right: -5px;
    animation-delay: -4s;
}

.die-vii {
    bottom: 57px;
    left: 6px;
    animation-delay: -1s;
}

.die-voe {
    bottom: 30px;
    right: -1px;
    animation-delay: -3s;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f3d58f;
    box-shadow: 0 0 10px #f3d58f88;
    animation: home-spark 6s ease-in-out infinite;
}

.particle-one {
    top: 28px;
    left: 45%;
}

.particle-two {
    top: 48%;
    right: 0;
    animation-delay: -3s;
}

.particle-three {
    bottom: 23px;
    left: 27%;
    animation-delay: -1.5s;
}

.hero-art-caption {
    position: absolute;
    bottom: -20px;
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: .58rem;
    color: #8ea8ac;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.hero-art-caption>span:first-child {
    width: 17px;
    height: 1px;
    background: #8ea8ac;
}

.hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 32px;
    right: 32px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #aac8d013;
    padding: 13px 0;
    color: #71899e;
    font-size: .49rem;
    font-weight: 600;
    letter-spacing: .17em;
}

/* Tool selection. */
.home-tools {
    margin: 37px 0 30px;
}

.home-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 19px;
}

.home-overline {
    color: var(--home-muted);
    font-size: .6rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.home-section-heading h2 {
    color: var(--home-ink);
    margin: 6px 0 0;
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -.035em;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--home-muted);
    font-size: .71rem;
    text-decoration: none;
}

.home-text-link .home-icon {
    width: 15px;
    height: 15px;
}

.home-text-link:hover {
    color: var(--home-ink);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.tool-card {
    --tool-accent: #946b21;
    --tool-tint: #c28f2e12;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 23px;
    border: 1px solid var(--home-border);
    border-radius: 15px;
    color: var(--home-ink);
    background: var(--home-surface);
    text-decoration: none;
    box-shadow: var(--home-shadow);
    transition: transform .25s,border-color .25s,box-shadow .25s;
    overflow: hidden;
}

.tool-violet {
    --tool-accent: #7b65b4;
    --tool-tint: #8270ba12;
}

.tool-teal {
    --tool-accent: #2e7d70;
    --tool-tint: #368a7b12;
}

.tool-blue {
    --tool-accent: #4375a5;
    --tool-tint: #5082b412;
}

.tool-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 90px;
    border-radius: 0 0 0 100%;
    background: var(--tool-tint);
    opacity: .5;
    pointer-events: none;
}

.tool-card:hover {
    color: var(--home-ink);
    border-color: var(--tool-accent);
    transform: translateY(-5px);
    box-shadow: 0 16px 32px #152e4a0c;
}

.tool-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 19px;
}

.tool-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid var(--tool-tint);
    border-radius: 12px;
    color: var(--tool-accent);
    background: var(--tool-tint);
}

.tool-icon .home-icon {
    width: 24px;
    height: 24px;
}

.tool-number {
    font-family: Consolas,monospace;
    color: var(--home-muted);
    font-size: .59rem;
    opacity: .7;
}

.tool-card h3 {
    margin-bottom: 9px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

.tool-card p {
    margin-bottom: 22px;
    font-size: .75rem;
    line-height: 1.7;
    color: var(--home-muted);
}

.tool-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--home-border);
    color: var(--tool-accent);
    font-size: .66rem;
    font-weight: 650;
}

.tool-card-bottom .home-icon {
    width: 17px;
    height: 17px;
    transition: transform .2s;
}

.tool-card:hover .tool-card-bottom .home-icon {
    transform: translateX(4px);
}

[data-theme="dark"] .tool-gold {
    --tool-accent: #e8c170;
    --tool-tint: #e8c17014;
}

[data-theme="dark"] .tool-violet {
    --tool-accent: #b1a1db;
    --tool-tint: #b1a1db14;
}

[data-theme="dark"] .tool-teal {
    --tool-accent: #70c5b5;
    --tool-tint: #70c5b514;
}

[data-theme="dark"] .tool-blue {
    --tool-accent: #82b4e4;
    --tool-tint: #82b4e414;
}

/* Dashboard panels. */
.home-dashboard .card {
    border: 1px solid var(--home-border);
    border-radius: 15px;
    background: var(--home-surface);
    color: var(--home-ink);
    box-shadow: var(--home-shadow)!important;
}

.home-dashboard .card>.card-body {
    padding: 24px;
}

.home-dashboard .card-title {
    color: var(--home-ink);
    font-weight: 700;
    font-size: .94rem;
    letter-spacing: -.02em;
}

.home-dashboard .text-muted {
    color: var(--home-muted)!important;
}

.home-dashboard .small {
    font-size: .76rem;
    line-height: 1.75;
}

.home-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 23px;
}

.home-title-with-icon {
    display: flex;
    align-items: center;
    gap: 11px;
}

.home-heading-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 33px;
    height: 33px;
    border: 1px solid var(--home-border);
    border-radius: 9px;
    color: var(--home-muted);
    background: var(--home-subtle);
}

.home-heading-icon .home-icon {
    width: 17px;
    height: 17px;
}

.home-card-heading .card-title {
    margin-bottom: 5px;
}

.home-card-heading p {
    margin: 0;
    color: var(--home-muted);
    font-size: .71rem;
}

.quick-calc-card {
    overflow: hidden;
}

.quick-calc-card .home-heading-icon {
    background: #c4983312;
    color: #ab7b20;
    border-color: #d4b97538;
}

[data-theme="dark"] .quick-calc-card .home-heading-icon {
    color: #e8c170;
}

.quick-calc-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr)) auto;
    gap: 12px;
    align-items: end;
}

.quick-die-field {
    min-width: 0;
}

.quick-die-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--home-muted);
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.quick-die-field img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.home-dashboard .form-control {
    border: 1px solid var(--home-border);
    border-radius: 8px;
    color: var(--home-ink);
    background: var(--home-subtle);
    padding: 10px 12px;
    font-size: .79rem;
}

.home-dashboard .form-control:focus {
    border-color: #bda05f!important;
    box-shadow: 0 0 0 3px #bda05f20;
}

.quick-die-field .quick-input {
    height: 46px;
    font-size: .95rem;
    font-weight: 600;
}

.quick-calc-submit {
    height: 46px;
    gap: 8px;
}

.quick-calc-submit .spinner-border {
    display: none;
}

[aria-busy="true"] .quick-calc-submit .home-icon {
    display: none;
}

[aria-busy="true"] .quick-calc-submit .spinner-border {
    display: inline-block;
}

.home-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding: 0 4px;
    color: var(--home-muted);
    font-size: .66rem;
}

.home-quick-links>span {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .55rem;
    opacity: .8;
}

.home-quick-links a {
    color: var(--home-muted);
    text-decoration: none;
}

.home-quick-links a:hover {
    color: var(--home-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-guide-steps {
    display: grid;
    gap: 12px;
    list-style: none;
    padding: 0;
    counter-reset: guide;
}

.home-guide-steps li {
    counter-increment: guide;
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: var(--home-muted);
}

.home-guide-steps li::before {
    content: "0" counter(guide);
    flex: 0 0 auto;
    color: #ad8942;
    font-family: Consolas,monospace;
    font-size: .65rem;
}

.home-beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 9px;
    border: 1px solid var(--home-border);
    border-radius: 6px;
    color: var(--home-muted);
    font-size: .63rem;
}

.home-beta-badge .home-status-dot {
    width: 5px;
    height: 5px;
}

.roadmap-column {
    border: 1px solid var(--home-border);
    border-top: 2px solid #a4afc2;
    border-radius: 9px;
    background: var(--home-subtle);
}

.roadmap-done {
    border-top-color: #66ac92;
}

.roadmap-progress {
    border-top-color: #d2ae59;
}

.roadmap-column ul {
    color: var(--home-muted);
    padding-left: 14px!important;
}

.roadmap-column li+li {
    margin-top: 8px;
}

.home-dashboard .list-group-item {
    border-color: var(--home-border);
    background: transparent;
    color: var(--home-ink);
    padding-top: 13px;
    padding-bottom: 13px;
}

.home-dashboard .list-group-item:last-child {
    padding-bottom: 0;
}

.home-dashboard .btn-sm {
    font-size: .71rem;
    padding: 7px 12px;
    border-radius: 7px;
}

.home-dashboard .btn-primary {
    --bs-btn-bg: #263e59;
    --bs-btn-border-color: #263e59;
    --bs-btn-hover-bg: #355470;
    --bs-btn-hover-border-color: #355470;
}

[data-theme="dark"] .home-dashboard .btn-primary {
    --bs-btn-bg: #d9b568;
    --bs-btn-border-color: #d9b568;
    --bs-btn-color: #172131;
    --bs-btn-hover-bg: #eecb83;
    --bs-btn-hover-border-color: #eecb83;
    --bs-btn-hover-color: #172131;
}

.home-dashboard .btn-outline-primary {
    --bs-btn-color: #47718d;
    --bs-btn-border-color: #8da7bd66;
    --bs-btn-hover-bg: #2b4b67;
    --bs-btn-hover-border-color: #2b4b67;
}

[data-theme="dark"] .home-dashboard .btn-outline-primary {
    --bs-btn-color: #a4c3db;
    --bs-btn-border-color: #516e8666;
}

.home-dashboard .badge {
    font-size: .6rem;
    font-weight: 500;
    padding: 5px 8px;
}

.home-dashboard .text-bg-secondary {
    color: var(--home-muted)!important;
    background: var(--home-subtle)!important;
    border: 1px solid var(--home-border);
}

.home-sidebar .card+.card {
    margin-top: 20px;
}

.home-sidebar .card-body>.card-title {
    margin-bottom: 15px;
}

.home-steam-card {
    position: relative;
    overflow: hidden;
}

.home-steam-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,#5082b4,#5082b400);
}

.home-steam-card .border {
    border-color: var(--home-border)!important;
    background: var(--home-subtle);
    border-radius: 9px!important;
}

.home-steam-card .border strong {
    display: inline-block;
    margin-top: 5px;
    font-size: 1.25rem;
}

.steam-preview {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 66px;
    margin: 4px 0 18px;
    padding: 0 9px;
    border-bottom: 1px solid var(--home-border);
    opacity: .6;
}

.steam-preview span {
    flex: 1;
    height: 35%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(#7da8c666,#7da8c610);
}

.steam-preview span:nth-child(2n) {
    height: 58%;
}

.steam-preview span:nth-child(3n) {
    height: 43%;
}

.steam-preview span:nth-child(5) {
    height: 78%;
}

.steam-preview span:last-child {
    height: 95%;
}

.home-event-card {
    background: linear-gradient(130deg,#d8ad5e0c,transparent),var(--home-surface)!important;
}

.updates-card {
    overflow: hidden;
}

.updates-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--home-border);
}

.home-dashboard .updates-header .text-bg-primary {
    background: #5383a018!important;
    color: var(--home-muted)!important;
}

.update-panel {
    height: 100%;
    padding: 16px;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: var(--home-subtle);
}

.update-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--home-ink);
    font-size: .75rem;
    font-weight: 650;
}

.update-panel-title>span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #5082b415;
    color: #5082b4;
}

.update-panel-fix .update-panel-title>span {
    background: #368a7b15;
    color: #368a7b;
}

.updates-card .update-list {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .73rem;
    color: var(--home-muted);
}

.updates-card .update-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.6;
}

.update-dot {
    flex: 0 0 4px;
    width: 4px;
    height: 4px;
    margin-top: .5rem;
    border-radius: 50%;
    background: #95a2b5;
}

.home-page :is(a,button,input,textarea):focus-visible {
    outline: 3px solid #bc9850;
    outline-offset: 4px;
}

.home-reveal {
    animation: home-reveal .65s cubic-bezier(.2,.65,.3,1) both;
}

.home-hero .hero-copy {
    animation: home-reveal .75s ease both;
}

@keyframes home-orbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes home-float {
    0%,100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -11px;
    }
}

@keyframes home-halo {
    to {
        transform: scale(1.18);
        opacity: .65;
    }
}

@keyframes home-spark {
    0%,100% {
        opacity: .35;
        translate: 0 0;
    }
    50% {
        opacity: 1;
        translate: 0 -12px;
    }
}

@keyframes home-reveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width:1400px) {
    .home-hero {
        grid-template-columns: 1.15fr 1fr;
        padding: 65px 65px 77px;
    }
    .hero-art {
        width: 400px;
        height: 380px;
    }
    .hero-crystal {
        top: 85px;
        left: 116px;
    }
}

@media (max-width:1199.98px) {
    .home-hero {
        padding: 40px 34px 58px;
        min-height: 430px;
    }
    .hero-art {
        transform: scale(.9);
        transform-origin: center;
    }
    .hero-actions {
        gap: 18px;
    }
    .hero-description {
        font-size: .88rem;
    }
    .tool-card {
        padding: 19px;
    }
    .home-dashboard .card>.card-body {
        padding: 20px;
    }
    .quick-calc-grid {
        gap: 9px;
    }
    .quick-calc-submit {
        padding: 10px 12px;
    }
    .quick-full-link {
        display: none;
    }
}

@media (max-width:991.98px) {
    .tool-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .tool-card p {
        margin-bottom: 16px;
    }
    .home-hero {
        grid-template-columns: 1.1fr 1fr;
        min-height: 420px;
        padding: 32px 28px 58px;
    }
    .home-hero h1 {
        font-size: 3rem;
    }
    .hero-art {
        position: absolute;
        right: -30px;
        top: 25px;
        opacity: .8;
        transform: scale(.77);
    }
    .hero-copy {
        grid-column: 1/-1;
        max-width: 62%;
    }
    .hero-eyebrow {
        font-size: .59rem;
    }
    .hero-actions {
        gap: 15px;
    }
    .hero-meta {
        font-size: .59rem;
    }
    .home-sidebar {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 20px;
        align-items: start;
    }
    .home-sidebar .card {
        margin: 0!important;
        height: 100%;
    }
    .quick-full-link {
        display: inline-flex;
    }
}

@media (min-width:576px) and (max-width:767.98px) {
    .home-hero h1 {
        font-size: 2.65rem;
    }
    .hero-art {
        right: -80px;
        transform: scale(.6);
    }
}

@media (max-width:575.98px) {
    .home-page main>.container {
        padding-top: 14px!important;
        padding-bottom: 32px!important;
    }
    .home-hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 30px 24px 42px;
        border-radius: 18px;
    }
    .hero-copy {
        max-width: 100%;
        width: 100%;
    }
    .hero-eyebrow {
        font-size: .55rem;
        letter-spacing: .13em;
    }
    .home-hero h1 {
        margin: 20px 0 16px;
        font-size: clamp(2.6rem,10vw,3.7rem);
    }
    .hero-description {
        max-width: 340px;
        font-size: .81rem;
        margin-bottom: 22px;
    }
    .hero-actions {
        gap: 16px;
    }
    .home-btn-gold {
        min-height: 44px;
        padding: 10px 14px;
        font-size: .73rem;
        gap: 12px;
    }
    .hero-secondary-link {
        font-size: .68rem;
        gap: 6px;
    }
    .hero-meta {
        margin-top: 23px;
        font-size: .55rem;
    }
    .hero-meta span+span::before {
        margin: 0 9px;
    }
    .hero-art {
        position: relative;
        right: auto;
        top: auto;
        flex: none;
        width: 310px;
        max-width: none;
        height: 310px;
        margin-top: -12px;
        margin-bottom: -18px;
        opacity: 1;
        transform: scale(.8);
        transform-origin: center;
    }
    .hero-crystal {
        top: 62px;
        left: 76px;
        width: 158px;
        height: 190px;
    }
    .orbit-outer {
        inset: 6px;
    }
    .orbit-inner {
        inset: 44px;
    }
    .rune-dial {
        inset: 31px;
    }
    .die-eov {
        top: 30px;
        left: -20px;
    }
    .die-nov {
        top: 45px;
        right: -20px;
    }
    .die-vii {
        bottom: 35px;
        left: -10px;
    }
    .die-voe {
        bottom: 20px;
        right: -10px;
    }
    .hero-art-caption {
        bottom: -26px;
    }
    .hero-bottom-line {
        left: 23px;
        right: 23px;
        font-size: .4rem;
        letter-spacing: .1em;
    }
    .home-tools {
        margin-top: 28px;
        margin-bottom: 23px;
    }
    .home-section-heading {
        gap: 12px;
        margin-bottom: 15px;
    }
    .home-overline {
        font-size: .52rem;
    }
    .home-section-heading h2 {
        font-size: 1.15rem;
    }
    .home-section-heading>.home-text-link {
        font-size: .6rem;
        max-width: 110px;
    }
    .tool-grid {
        gap: 10px;
    }
    .tool-card {
        border-radius: 12px;
        padding: 16px 13px;
    }
    .tool-card-top {
        margin-bottom: 16px;
    }
    .tool-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .tool-icon .home-icon {
        width: 20px;
        height: 20px;
    }
    .tool-card h3 {
        font-size: .86rem;
    }
    .tool-card p {
        font-size: .67rem;
        line-height: 1.65;
        margin-bottom: 17px;
    }
    .tool-card-bottom {
        font-size: .58rem;
        gap: 3px;
    }
    .tool-card-bottom .home-icon {
        width: 14px;
        height: 14px;
    }
    .home-dashboard .card>.card-body {
        padding: 19px 17px;
    }
    .home-dashboard .card-title {
        font-size: .87rem;
    }
    .home-card-heading {
        margin-bottom: 18px;
    }
    .home-card-heading p {
        font-size: .65rem;
    }
    .home-heading-icon {
        width: 29px;
        height: 29px;
    }
    .home-title-with-icon {
        gap: 9px;
    }
    .quick-full-link {
        display: none;
    }
    .quick-calc-grid {
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: 14px 9px;
    }
    .quick-calc-submit {
        grid-column: 1/-1;
    }
    .quick-die-field label {
        font-size: .58rem;
        gap: 5px;
    }
    .quick-die-field img {
        width: 21px;
        height: 21px;
    }
    .quick-die-field .quick-input {
        padding: 8px;
    }
    .home-quick-links {
        font-size: .61rem;
        gap: 10px 13px;
    }
    .home-sidebar {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .home-page *,.home-page *::before,.home-page *::after {
        animation: none!important;
        transition: none!important;
        scroll-behavior: auto!important;
    }
    .tool-card:hover,.home-btn-gold:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion:no-preference) {
    html:has(.home-page) {
        scroll-behavior: smooth;
    }
    .home-page.home-tab-hidden :is(.rune-orbit,.hero-crystal,.floating-die,.hero-art-halo,.hero-particle) {
        animation-play-state: paused;
    }
}
