* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff7e6;
    color: #2b2118;
}

.container {
    width: min(920px, 92%);
    margin: 0 auto;
    padding: 28px 0 60px;
}

h1 {
    font-size: 44px;
    margin-bottom: 4px;
}

h2 {
    margin-top: 0;
}

.tagline {
    font-size: 18px;
    color: #7a4b1f;
    margin-top: 0;
}

.card {
    background: #ffffff;
    border: 2px solid #f2d199;
    border-radius: 22px;
    padding: 22px;
    margin: 18px 0;
    box-shadow: 0 8px 0 #f2d199;
}

.hero-card {
    background: #fff0c2;
}

input,
select {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 2px solid #e2bd7c;
    font-size: 16px;
    margin: 8px 0 18px;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 14px;
}

button,
.btn {
    display: inline-block;
    border: none;
    background: #8b4a18;
    color: white;
    padding: 14px 18px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    margin-top: 8px;
}

button:hover,
.btn:hover {
    opacity: 0.9;
}

.secondary {
    background: #555;
}

.danger {
    background: #b83232;
}

.small {
    padding: 8px 12px;
    font-size: 14px;
}

.join-code {
    display: inline-block;
    font-size: 34px;
    font-weight: bold;
    letter-spacing: 2px;
    background: #2b2118;
    color: #fff7e6;
    padding: 12px 18px;
    border-radius: 16px;
    margin: 8px 0 14px;
}

.tile-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 18px;
}

.tile {
    background: #fff7e6;
    color: #2b2118;
    border: 2px solid #d49b4b;
    border-radius: 18px;
    padding: 16px 20px;
    min-width: 110px;
    box-shadow: 0 5px 0 #d49b4b;
}

.tile.active {
    background: #8b4a18;
    color: white;
    border-color: #8b4a18;
    box-shadow: 0 5px 0 #4d2a0e;
}

.preview {
    background: #fdf0d0;
    border-radius: 16px;
    padding: 16px;
    margin: 16px 0;
}

.order-line {
    font-size: 24px;
    padding: 18px;
    background: #fff7e6;
    border-radius: 18px;
    margin: 12px 0;
    border: 2px dashed #d49b4b;
}

.my-order {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f2d199;
}

.my-order form {
    margin: 0;
}

@media (max-width: 600px) {
    
.brand-title {
    font-size: 64px;
}

h1 {
        font-size: 36px;
    }

    .tile {
        width: 100%;
    }

    .order-line {
        font-size: 20px;
    }

}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 0 0 320px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.speech-bubble {
    display: inline-block;
    margin-top: 16px;
    padding: 16px 20px;
    background: white;
    border: 3px solid #8b4a18;
    border-radius: 20px;
    font-weight: bold;
    font-size: 18px;
    position: relative;
}

.speech-bubble:after {
    content: '';
    position: absolute;
    left: 30px;
    bottom: -15px;
    width: 20px;
    height: 20px;
    background: white;
    border-right: 3px solid #8b4a18;
    border-bottom: 3px solid #8b4a18;
    transform: rotate(45deg);
}

@media (max-width: 768px) {

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        flex: unset;
        width: 220px;
    }

    .speech-bubble:after {
        left: 50%;
        margin-left: -10px;
    }
}

.footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 20px;
    color: #7a4b1f;
    font-size: 14px;
}

.footer p {
    margin: 6px 0;
}

.brand-title {
    font-family: 'Baloo 2', cursive;
    font-size: 92px;
    line-height: 0.9;
    margin-bottom: 10px;
    color: #8b4a18;
    text-shadow: 4px 4px 0 #f2d199;
}

.copy-icon-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 24px;
    line-height: 48px;
    text-align: center;
}

.qr-box {
    margin: 18px 0;
    text-align: center;
}

.qr-box p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #7a4b1f;
}

.qr-box img {
    width: 180px;
    max-width: 100%;
    background: white;
    padding: 12px;
    border-radius: 18px;
    border: 2px solid #f2d199;
}

/* Runner view layout fix */
.runner-card {
    display: grid !important;
    grid-template-columns: 1fr 260px !important;
    align-items: center !important;
    gap: 32px !important;
}

.runner-info {
    width: 100% !important;
}

.runner-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 18px !important;
    flex-wrap: wrap !important;
}

.runner-actions form {
    margin: 0 !important;
}

.runner-card .qr-box {
    margin: 0 !important;
    text-align: center !important;
    width: 100% !important;
}

.runner-card .qr-box img {
    width: 180px !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
}

@media (max-width: 700px) {
    .runner-card {
        grid-template-columns: 1fr !important;
    }

    .runner-card .qr-box {
        margin-top: 20px !important;
    }
}

.join-code-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.join-code-row .join-code {
    margin: 0;
}

.copy-icon-btn {
    margin: 0;
}
