/* inter-200 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 200;
    src: url('./assets/fonts/inter-v20-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-200italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: italic;
    font-weight: 200;
    src: url('./assets/fonts/inter-v20-latin-200italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('./assets/fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    src: url('./assets/fonts/inter-v20-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('./assets/fonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: italic;
    font-weight: 600;
    src: url('./assets/fonts/inter-v20-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-800 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    src: url('./assets/fonts/inter-v20-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-800italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: italic;
    font-weight: 800;
    src: url('./assets/fonts/inter-v20-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f4ee;
    color: #29434a;
}
.game {
    min-height: 100vh;
    padding: 24px;
    background: linear-gradient(180deg, #f9f7f1 0%, #eef3eb 100%);
}
.wrap {
    max-width: 1280px;
    margin: 0 auto;
}
.topbar {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;

    svg {
        fill: currentColor;
        height: 50px;
        width: auto;
        align-self: center;
    }
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    font-weight: 600;
    color: #2b4346;
}
.intro {
    color: #5f746f;
    width: 50%;
    max-width: 760px;
    font-size: 16px;
    margin: 0 0 30px 0;
}
.stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.pill {
    background: #ffffff;
    border: 1px solid #dde6de;
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: 0 10px 30px rgba(50, 80, 70, 0.08);
    font-size: 14px;
    white-space: nowrap;
}
.board {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(41, 67, 74, 0.15);
    border: 1px solid #e3ebe3;
}
.scene {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background-image: url('assets/ostern1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hotspot {
    position: absolute;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform .18s ease;
}
.hotspot:hover:not(.opened) { transform: scale(1.03); }
.hotspot.opened { cursor: default; }

.hideout {
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 18px;
}

.cover {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(41, 67, 74, 0.22));
    transition: opacity .18s ease, transform .18s ease;
}
.hotspot:hover .cover { transform: translateY(-2px); }
.hotspot.opened .cover { opacity: 0; transform: scale(.92); pointer-events: none; }

.item {
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(.88);
    transition: opacity .2s ease, transform .2s ease;
}
.hotspot.opened .item {
    opacity: 1;
    transform: scale(1);
    animation: item-in .2s ease;
    animation: item-in 1s linear(0, 0.029 1.6%, 0.123 3.5%, 0.651 10.6%, 0.862 14.1%, 1.002 17.7%, 1.046 19.6%, 1.074 21.6%, 1.087 23.9%, 1.086 26.6%, 1.014 38.5%, 0.994 46.3%, 1);
}

@keyframes item-in {
    from {opacity: 0; transform: scale(.28);}
    to {opacity: 1; transform: scale(1);}
}

.item svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 10px 18px rgba(41, 67, 74, 0.16));
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.legend .pill { background: #fdfdfc; }

.legal-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 25px;
    color: inherit;

    a {
        color: inherit;
        cursor: pointer;
        text-decoration: underline;
    }
}

.terms {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(41, 67, 74, 0.15);
    border: 1px solid #e3ebe3;
    padding: 40px;
    margin-bottom: 30px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27, 40, 44, 0.52);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 50;
    animation: backdrop-in .3s ease;
}

@keyframes backdrop-in {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal {
    width: min(980px, 100%);
    border-radius: 26px;
    background: #fffefb;
    border: 1px solid #e2e8df;
    box-shadow: 0 30px 80px rgba(32, 49, 53, 0.28);
    padding: 24px;
    animation: modal-in .3s ease;
    animation: modal-in .9s linear(0, 0.029 1.6%, 0.123 3.5%, 0.651 10.6%, 0.862 14.1%, 1.002 17.7%, 1.046 19.6%, 1.074 21.6%, 1.087 23.9%, 1.086 26.6%, 1.014 38.5%, 0.994 46.3%, 1);
}

@keyframes modal-in {
    from {translate: 0 30px; scale: .9; opacity: 0;}
    to {translate: 0 0; scale: 1; opacity: 1;}
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 18px;
}
.modal h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.1;
    color: #2b4346;
}
.modal p {
    margin: 0;
    color: #63756f;
}
.close {
    width: 43px;
    height: 43px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: #eef3ec;
    color: #29434a;
    font-size: 24px;
    flex: 0 0 auto;
}
.gifts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.gift {
    border: 1px solid #dfe7de;
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbf8 100%);
    box-shadow: 0 12px 28px rgba(41, 67, 74, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.gift.selected {
    border-color: #f0bf5a;
    box-shadow: 0 14px 32px rgba(240, 191, 90, 0.22);
}
.gift-icon {
    width: 82px;
    height: 82px;
}
.gift h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    color: #2d474a;
}
.gift p {
    flex: 1;
    line-height: 1.55;
}
.gift-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.details-modal {
    max-width: 700px;
}
.details-content {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 20px;
    line-height: 1.6;
}
.btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
    transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.secondary {
    background: #eef4ea;
    color: #2e5350;
}
.btn.tertiary {
    background: transparent;
    color: #2e5350;
    text-decoration: underline;
    padding-left: 0;
    padding-right: 0;
}
.btn.primary {
    background: linear-gradient(135deg, #448030 0%, #2e5350 100%);
    color: white;
}
.footer-bar {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e6ece2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.selected-box {
    color: #45605c;
}

@media (max-width: 920px) {
    .topbar { flex-direction: column; align-items: start; }
    .stats { justify-content: start; }
    .gifts { grid-template-columns: 1fr; }
    .footer-bar { flex-direction: column; align-items: stretch; }
}

@media (max-width: 700px) {
    .game { padding: 14px; }
    .modal { padding: 16px; }
}
