.sw-app {
    min-height: 100vh;
    background: #0b0f17;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
}

.sw-app--stage .sw-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    opacity: 0;
    transition: opacity 0.2s;
}

.sw-app--stage:hover .sw-toolbar,
.sw-app--stage:focus-within .sw-toolbar {
    opacity: 1;
}

.sw-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: rgba(11, 15, 23, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.sw-toolbar__brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sw-toolbar__logo {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}

.sw-toolbar__logo strong {
    color: var(--aloha-red, #e30613);
}

.sw-toolbar__title {
    font-size: 0.82rem;
    color: rgba(248, 250, 252, 0.65);
}

.sw-toolbar__actions {
    display: flex;
    gap: 0.5rem;
}

.sw-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
}

.sw-btn--primary {
    background: var(--aloha-red, #e30613);
    color: #fff;
}

.sw-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sw-btn:hover {
    transform: translateY(-1px);
}

.sw-main {
    flex: 1;
    padding: 1rem;
    position: relative;
}

.sw-masonry {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 640px) {
    .sw-masonry { column-count: 2; }
}

@media (min-width: 960px) {
    .sw-masonry { column-count: 3; }
}

@media (min-width: 1280px) {
    .sw-masonry { column-count: 4; }
}

.sw-card {
    break-inside: avoid;
    position: relative;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    animation: swFadeIn 0.45s ease;
}

@keyframes swFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.sw-card--sponsor {
    border-color: rgba(227, 6, 19, 0.45);
    box-shadow: 0 0 0 1px rgba(227, 6, 19, 0.15);
}

.sw-card__sponsor-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    background: var(--aloha-red, #e30613);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.sw-card__media {
    position: relative;
    background: #111827;
}

.sw-card__media img,
.sw-card__media video {
    display: block;
    width: 100%;
    height: auto;
}

.sw-card__text-bg {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.sw-card__text-inner p {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.sw-card__body {
    padding: 0.9rem 1rem 1rem;
}

.sw-card__author {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.sw-card__text {
    margin: 0 0 0.5rem;
    color: rgba(248, 250, 252, 0.82);
    line-height: 1.45;
    white-space: pre-wrap;
}

.sw-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--aloha-red, #e30613);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sw-card__time {
    display: block;
    font-size: 0.78rem;
    color: rgba(248, 250, 252, 0.45);
}

.sw-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.sw-empty h2 {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    color: #fff;
}

.sw-empty p {
    margin: 0 0 1.25rem;
    color: rgba(248, 250, 252, 0.72);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.sw-empty__icon {
    font-size: 2.5rem;
    color: var(--aloha-red, #e30613);
    margin-bottom: 1rem;
}

.sw-qr-overlay {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
}

.sw-qr-overlay__inner {
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    text-align: center;
    width: 150px;
}

.sw-qr-overlay__inner p {
    margin: 0.45rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
}

.sw-qr-overlay canvas,
.sw-qr-overlay img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.sw-app--stage .sw-main {
    display: none;
}

.sw-stage-view[hidden] {
    display: none !important;
}

.sw-stage-view:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-stage-empty {
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 520px;
}

.sw-stage-empty h2 {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
}

.sw-stage-empty p {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

.sw-stage-slide {
    width: min(92vw, 1200px);
    max-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-stage-slide img,
.sw-stage-slide video {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.sw-stage-slide .sw-stage-text {
    width: min(90vw, 800px);
    min-height: 50vh;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    color: #fff;
}

.sw-stage-progress {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.sw-stage-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--aloha-red, #e30613);
    transition: width linear;
}

body.sw-wall-page .site-header,
body.sw-wall-page .site-footer,
body.sw-wall-page .sticky-event-link,
body.sw-submit-page .site-header,
body.sw-submit-page .site-footer,
body.sw-submit-page .sticky-event-link {
    display: none;
}

body.sw-wall-page,
body.sw-submit-page {
    padding-bottom: 0;
}

body:has(.sw-app) .site-header,
body:has(.sw-app) .site-footer,
body:has(.sw-app) .sticky-event-link {
    display: none;
}

body:has(.sw-app) {
    padding-bottom: 0;
}
