html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ——— Mobile-first (iPhone / Android) ——— */

/* 16px on inputs prevents iOS Safari auto-zoom on focus */
input, select, textarea {
  font-size: 16px;
}

/* Larger touch targets on phones */
@media (max-width: 767.98px) {
  .btn {
    padding: .55rem 1rem;
    min-height: 44px;
  }
  .btn-sm {
    min-height: 38px;
  }
  .nav-link {
    padding-top: .6rem;
    padding-bottom: .6rem;
  }
  .form-control {
    min-height: 44px;
  }
  .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .25rem;
  }
  .card {
    font-size: 1rem;
  }
  h1 {
    font-size: 1.6rem;
  }
  /* Фото альбома: одна колонка на телефоне, чтобы снимки были крупнее */
  .album-photos .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Учёт «чёлки» и нижней полосы на iPhone (safe area insets) */
.navbar, footer {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
body {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Footer не перекрывает контент */
footer {
  position: static;
  margin-top: 1rem;
}

/* Картинки альбомов на телефоне: шире, с лёгкой тенью */
@media (max-width: 767.98px) {
  img {
    max-width: 100%;
    height: auto;
  }
}


.btn.btn-primary {
    background-color: #862031 !important;
    /* Your desired color */
    border-color: #862031 !important;
    /* Same as background */
    color: #fff !important;
    /* Text color */
}

    /* Customize the hover state */
    .btn.btn-primary:hover {
        background-color: #5B1421 !important;
        /* Slightly darker color for hover */
        border-color: #5B1421 !important;
    }

    /* Customize the active/focus states */
    .btn.btn-primary:focus,
    .btn.btn-primary.active {
        background-color: #5B1421 !important;
        border-color: #5B1421 !important;
        color: #fff !important;
        /* box-shadow: 0 0 0 0.25rem rgba(108, 37, 190, 0.5);  */
        /* Optional: add a focus ring */
    }












td, th {
    background-color: transparent !important;
}

:root {
    --gold: #c9a227;
    --navy: #0e1b2c;
    --burg: #6d1a2b;
    --cream: #f7f1e3
}

* {
    -webkit-tap-highlight-color: transparent
}

html {
    scroll-behavior: smooth
}

body {
    background-color: var(--cream);
    background-image: radial-gradient(1200px 600px at 10% -10%, rgba(201, 162, 39, .13), transparent 60%), radial-gradient(900px 500px at 110% 10%, rgba(109, 26, 43, .1), transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E")
}

.tw-font-display {
    font-family: "Playfair Display", Georgia, serif
}

.tw-gold-text {
    background: linear-gradient(100deg, #8a6a1f 0%, #e6c775 22%, #fff6db 42%, #c9a227 62%, #8a6a1f 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 7s linear infinite
}

@keyframes shine {
    to {
        background-position: 220% 0
    }
}

.tw-art {
    line-height: 0
}

    .tw-art svg {
        width: 100%;
        height: auto;
        display: block
    }

.tw-scene-frame {
    border: 1px solid rgba(201, 162, 39, .45);
    box-shadow: inset 0 0 0 4px rgba(11, 22, 38, .3), 0 18px 40px -22px rgba(11, 22, 38, .7)
}

.tw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    border-radius: .6rem;
    padding: .72rem 1.25rem;
    transition: transform .18s, box-shadow .18s, background .18s, color .18s;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none
}

    .tw-btn:active {
        transform: translateY(1px) scale(.99)
    }

/* Long button labels wrap onto several lines inside the button box on phones
   (user request 2026-11-13, applied on Guide/Scene + Album/Details). */
.tw-btn-wrap {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    height: auto;
    min-height: 2.6rem
}

.tw-btn-gold {
    background: linear-gradient(180deg, #f0d68f, #c9a227);
    color: #241a06;
    box-shadow: 0 10px 26px -12px rgba(201, 162, 39, .9)
}

    .tw-btn-gold:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 34px -12px rgba(201, 162, 39, 1)
    }

.tw-btn-navy {
    background: linear-gradient(180deg, #1b2f4d, #0b1626);
    color: #f3e6c4;
    border-color: rgba(201, 162, 39, .4)
}

    .tw-btn-navy:hover {
        transform: translateY(-2px)
    }

.tw-btn-burg {
    background: linear-gradient(180deg, #8c2233, #54121f);
    color: #f8e9dc;
    border-color: rgba(232, 209, 138, .35)
}

    .tw-btn-burg:hover {
        transform: translateY(-2px)
    }

.tw-btn-ghost {
    background: rgba(11, 22, 38, .04);
    color: #122038;
    border-color: rgba(11, 22, 38, .18)
}

    .tw-btn-ghost:hover {
        background: rgba(11, 22, 38, .09);
        transform: translateY(-2px)
    }

.tw-btn-outline-gold {
    background: transparent;
    color: #e8d18a;
    border-color: rgba(232, 209, 138, .55)
}

    .tw-btn-outline-gold:hover {
        background: rgba(232, 209, 138, .14)
    }

.tw-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important
}

.tw-card {
    background: linear-gradient(180deg, rgba(255, 252, 244, .94), rgba(240, 231, 210, .9));
    border: 1px solid rgba(11, 22, 38, .1);
    box-shadow: 0 14px 40px -26px rgba(11, 22, 38, .6)
}

.tw-card-dark {
    background: linear-gradient(180deg, #152741, #0b1626);
    border: 1px solid rgba(201, 162, 39, .28)
}

.tw-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: .28rem .6rem;
    border-radius: 999px;
    background: rgba(11, 22, 38, .55);
    color: #e8d18a
}

.tw-chip-light {
    background: rgba(247, 241, 227, .92);
    color: #122038;
    border: 1px solid rgba(11, 22, 38, .12)
}

.tw-pill {
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .24rem .58rem;
    border-radius: 999px;
    white-space: nowrap
}

.tw-pill-pending {
    background: #ece0c8;
    color: #6b5a34;
    border: 1px solid #d8c69d
}

.tw-pill-processing {
    background: #fdeccb;
    color: #8a5a12;
    border: 1px solid #f0c98a
}

.tw-pill-done {
    background: #dff0e0;
    color: #20602f;
    border: 1px solid #a9d5ae
}

.tw-pill-failed {
    background: #fbe0e0;
    color: #8c2233;
    border: 1px solid #e8b4b4
}

.tw-rule-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .75), transparent)
}

.tw-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1)
}

    .tw-reveal.tw-in {
        opacity: 1;
        transform: none
    }

.tw-lift {
    transition: transform .35s, box-shadow .35s
}

    .tw-lift:hover {
        transform: translateY(-6px)
    }

.tw-fld {
    width: 100%;
    background: rgba(255, 253, 247, .94);
    border: 1px solid rgba(11, 22, 38, .18);
    border-radius: .55rem;
    padding: .62rem .8rem;
    color: #122038;
    font-size: .92rem;
    outline: none;
    transition: border .2s, box-shadow .2s;
    font-family: Inter, sans-serif
}

    .tw-fld:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(201, 162, 39, .22)
    }

.tw-fld-dark {
    background: rgba(11, 22, 38, .5);
    border-color: rgba(232, 209, 138, .28);
    color: #f3e6c4
}

    .tw-fld-dark::placeholder {
        color: rgba(243, 230, 196, .45)
    }

table.tw-data {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .85rem
}

    table.tw-data th {
        text-align: left;
        font-size: .64rem;
        letter-spacing: .09em;
        text-transform: uppercase;
        color: #7d6315;
        padding: .6rem .7rem;
        border-bottom: 1px solid rgba(201, 162, 39, .4);
        white-space: nowrap
    }

    table.tw-data td {
        padding: .6rem .7rem;
        border-bottom: 1px solid rgba(11, 22, 38, .08);
        vertical-align: middle
    }

    table.tw-data tr:hover td {
        background: rgba(201, 162, 39, .07)
    }

.tw-ba {
    position: relative;
    overflow: hidden;
    cursor: ew-resize;
    touch-action: none
}

    .tw-ba .tw-layer {
        position: absolute;
        inset: 0
    }

        .tw-ba .tw-layer svg {
            width: 100%;
            height: 100%
        }

    .tw-ba img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block
    }

.tw-dropzone {
    border: 2px dashed rgba(201, 162, 39, .55);
    background: rgba(255, 253, 247, .6);
    transition: .25s
}

    .tw-dropzone.hot {
        border-color: #8c2233;
        background: rgba(251, 225, 229, .75)
    }

.tw-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(11, 22, 38, .12);
    overflow: hidden
}

    .tw-bar > span {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, #8c2233, #c9a227, #e8d18a);
        transition: width .4s cubic-bezier(.2, .8, .2, 1)
    }

.tw-toast {
    animation: tin .35s cubic-bezier(.2, .8, .2, 1)
}

@keyframes tin {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.96)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.tw-pulse-dot {
    animation: pd 1.4s ease-in-out infinite
}

@keyframes pd {

    0%,
    100% {
        opacity: .35
    }

    50% {
        opacity: 1
    }
}

.tw-fade-in {
    animation: fi .45s ease both
}

@keyframes fi {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.tw-navlink {
    position: relative
}

    .tw-navlink::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -6px;
        height: 2px;
        background: linear-gradient(90deg, transparent, #e8d18a, transparent);
        transform: scaleX(0);
        transition: transform .3s
    }

    .tw-navlink:hover::after,
    .tw-navlink.active::after {
        transform: scaleX(1)
    }

    .tw-navlink.active {
        color: #f0d68f
    }

::-webkit-scrollbar {
    width: 10px;
    height: 10px
}

::-webkit-scrollbar-track {
    background: #e6dcc4
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#c9a227, #7d6315);
    border-radius: 8px
}

.tw-tab-active {
    background: linear-gradient(180deg, #1b2f4d, #0b1626) !important;
    color: #f0d68f !important;
    border-color: rgba(201, 162, 39, .45) !important
}

.tw-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace
}

.tw-grid-lines {
    background-image: linear-gradient(rgba(201, 162, 39, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 162, 39, .1) 1px, transparent 1px);
    background-size: 26px 26px
}

.tw-marquee {
    display: flex;
    gap: 2.5rem;
    animation: mq 34s linear infinite;
    white-space: nowrap
}

@keyframes mq {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

.tw-no-scrollbar::-webkit-scrollbar {
    display: none
}

.tw-no-scrollbar {
    scrollbar-width: none
}