@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-Regular.woff2') format('woff2'),
    url('./fonts/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-Italic.woff2') format('woff2'),
    url('./fonts/Inter-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-Bold.woff2') format('woff2'),
    url('./fonts/Inter-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    gap: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.object {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: grab;
    background-color: gray;
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.icon-container > div {
    padding: 10px;
}

.icon {
    width: 60px;
    height: 60px;
    cursor: default;
}

.checkmark {
    width: 60px;
    height: 60px;
    position: absolute;
    fill: transparent;
    z-index: -1;
}

.book-icon, .phone-icon {
    fill: white;
}

.icon.locked {
    opacity: 0.5;
}

.icon.unlocked {
    cursor: pointer;
}

.text-label {
    position: relative;
    top: -3px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.copyfail {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    z-index: 2000;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.toggle-track {
    position: relative;
    width: 68px;
    height: 34px;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .toggle-track {
    background-color: #f1f5f9;
    border: 2px solid #cbd5e1;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.05);
}

body.dark-mode .toggle-track {
    background-color: #1e293b;
    border: 2px solid #334155;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.4);
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    z-index: 2;
    transform-origin: center;
    pointer-events: none;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.toggle-icon svg {
    display: block;
}

body.light-mode .toggle-icon.sun {
    color: #f59e0b;
    opacity: 1;
    transform: scale(1.05);
}

body.light-mode .toggle-icon.moon {
    color: #94a3b8;
    opacity: 0.45;
    transform: scale(0.85);
}

body.dark-mode .toggle-icon.sun {
    color: #64748b;
    opacity: 0.45;
    transform: scale(0.85);
}

body.dark-mode .toggle-icon.moon {
    color: #38bdf8;
    opacity: 1;
    transform: scale(1.05);
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .toggle-thumb {
    transform: translateX(0);
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

body.dark-mode .toggle-thumb {
    transform: translateX(34px);
    background-color: #0f172a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

body.light-mode {
    background-color: #ffffff;
    color: #000000;
}

body.dark-mode {
    background-color: #000000;
    color: #ffffff;
}

.checkmark-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    bottom: -10px;
    right: 5px;
    fill: currentColor;
}

#grandma-footer {
position: fixed;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
background-color: rgba(0, 0, 0, 0.7);
color: white;
padding: 12px 24px;
border-radius: 12px;
font-family: 'Inter', sans-serif;
font-size: 14px;
cursor: pointer;
z-index: 999;
text-align: center;
max-width: 90%;
transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode #grandma-footer {
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
}

.text-label span.pl,
.text-label span.en {
    display: none;
    white-space: nowrap;
}

html[lang^="pl"] .text-label span.pl {
    display: inline;
}

html:not([lang^="pl"]) .text-label span.en {
    display: inline;
}

.noscript-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    padding: 2.5vh 4vw;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

.noscript-message {
    width: min(940px, 96%);
    max-width: 920px;
    max-height: calc(100vh - 6vh);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.6vh 2.5vw;
    box-sizing: border-box;
    border-radius: 10px;
    text-align: center;
}

.noscript-message p {
    margin: 0.6em 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-weight: 700;
    color: red;
    line-height: 1.32;
    font-size: clamp(15px, 4.6vmin, 30px);
    word-break: break-word;
    hyphens: auto;
    text-wrap: balance;
}

.noscript-message p.pl,
.noscript-message p.en {
    display: none;
}

html[lang^="pl"] .noscript-message p.pl {
    display: block;
}

html:not([lang^="pl"]) .noscript-message p.en {
    display: block;
}

@media (max-height: 420px) {
    .noscript-overlay { padding: 1vh 3vw; }
    .noscript-message { padding: 1vh 3vw; }
    .noscript-message p { font-size: clamp(13px, 5.6vmin, 22px); line-height:1.25; }
}

@media (min-width: 1400px) {
    .noscript-message p { font-size: clamp(18px, 2.6vmin, 32px); }
}
