* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: #000;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 28px 20px;
    background: radial-gradient(circle at top, #2a2108 0%, #100d05 30%, #050505 65%, #000 100%);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.container {
    width: 100%;
    max-width: 520px;
    margin: auto 0;
    text-align: center;
}

.logo {
    display: inline-block;
    margin: 0 0 6px;
    color: #e4bd50;
    background: linear-gradient(135deg, #fff4b0 0%, #ffd75a 25%, #c99419 55%, #fff0a0 78%, #b77b08 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(38px, 10vw, 56px);
    font-weight: 900;
    letter-spacing: -2.5px;
    text-decoration: none;
    filter: drop-shadow(0 0 12px rgba(255, 204, 60, 0.16));
}

.page-title {
    margin: 0;
    color: #fff4b0;
    font-size: 20px;
    font-weight: 800;
}

.intro {
    margin: 8px auto 18px;
    max-width: 420px;
    color: #aaa;
    font-size: 13px;
    line-height: 1.55;
}

.language-switcher {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.lang-btn {
    min-width: 42px;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid rgba(218, 168, 35, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: #8e8e8e;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.lang-btn:hover { color: #e4bd50; border-color: rgba(218, 168, 35, .55); }
.lang-btn.active {
    color: #090909;
    background: linear-gradient(135deg, #fff0a0, #dca82b);
    border-color: #e2b43c;
}

.card-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 210px;
    min-height: 0;
    aspect-ratio: .67;
    align-items: center;
    justify-content: space-between;
    margin: 18px auto 20px;
    padding: 20px 16px 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 15px;
    background: linear-gradient(145deg, #fa263b 0%, #eb1531 54%, #d90b29 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .25);
    color: #fff;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.card-copy:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.card-copy:focus-visible { outline: 2px solid #fff4b0; outline-offset: 4px; }

.card-chip, .card-mark, .card-mark-line, .card-copy-hint, .card-copy-status {
    position: relative;
    z-index: 1;
}

.card-chip {
    display: block;
    width: 31px;
    height: 25px;
    border: 1px solid rgba(57, 65, 77, .45);
    border-radius: 5px;
    background:
        linear-gradient(90deg, transparent 31%, rgba(67, 76, 89, .35) 32%, rgba(67, 76, 89, .35) 34%, transparent 35%, transparent 65%, rgba(67, 76, 89, .35) 66%, rgba(67, 76, 89, .35) 68%, transparent 69%),
        linear-gradient(0deg, transparent 44%, rgba(67, 76, 89, .35) 45%, rgba(67, 76, 89, .35) 48%, transparent 49%),
        linear-gradient(135deg, #d6dbe2, #aab1bc);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, .6);
}

.card-mark {
    margin-top: auto;
    color: #8c344b;
    font-size: 57px;
    font-weight: 500;
    line-height: .9;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .22), 0 -1px 1px rgba(82, 0, 22, .18);
}

.card-mark-line {
    width: 28px;
    height: 4px;
    margin-top: 7px;
    margin-bottom: auto;
    border-radius: 2px;
    background: #8c344b;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .2);
}

.card-copy-hint, .card-copy-status { font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.card-copy-status { display: none; }
.card-copy.copied .card-copy-hint { display: none; }
.card-copy.copied .card-copy-status { display: block; }

.lang-btn:focus-visible, .back-link:focus-visible {
    outline: 2px solid #e4bd50;
    outline-offset: 3px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 16px;
    padding: 8px 16px;
    border: 1px solid rgba(218, 168, 35, .32);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
    color: #dcb54c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.back-link:hover { color: #fff4b0; border-color: rgba(218, 168, 35, .65); background: rgba(218, 168, 35, .06); }

footer { margin-top: 18px; color: #555; font-size: 11px; letter-spacing: .4px; }

@media (max-width: 420px) {
    body { padding: 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.clipboard-field {
    position: fixed;
    opacity: 0;
}
