* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.container {
    width: 100vw;
    height: 100vh;

    /* Replace with your image */
    background: url("background.png") center center/cover no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
}

/* Main Card */
.rollbox {
    width: 320px;
    height: 390px;

    border: 5px solid #000;
    border-radius: 40px;

    background:
        url("pattern.png") center/cover no-repeat,
        #ffffff;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 30px;
}

/* Title */
.rollbox h1 {
    font-size: 48px;
    font-weight: 900;
    color: #000;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

/* Button */
.roll-btn {
    background: #ff9800;

    border: 3px solid #000;
    border-radius: 18px;

    padding: 9px 20px;

    font-size: 28px;
    font-weight: 900;

    cursor: pointer;

    box-shadow: 0 5px 0 #a95e00;
    transition: 0.15s;
}

.roll-btn:hover {
    transform: translateY(-2px);
}

.roll-btn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #a95e00;
}

.promo-box {
    position: absolute;
    bottom: 20px;
    left: 20px;

    background: white;

    border: 3px solid black;
    border-radius: 15px;

    padding: 15px;

    width: 220px;
}

.promo-box h3 {
    margin-bottom: 10px;
}

.promo-box input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;

    border: 2px solid black;
    border-radius: 8px;
}

.promo-box button {
    width: 100%;
    padding: 8px;

    cursor: pointer;
}

.rig-panel {
    display: none;

    position: absolute;
    top: 20px;
    right: 20px;

    background: white;

    border: 3px solid black;
    border-radius: 15px;

    padding: 15px;

    
    width: 320px;
}

.rig-panel label {
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
}

.rig-panel select {
    width: 100%;
    padding: 8px;

    border: 2px solid black;
    border-radius: 8px;
}

.dice-container {
    display: flex;
    gap: 10px;
    margin-bottom: 50px;
}

.dice {
    width: 72px;
    height: 72px;

    border: 4px solid black;
    border-radius: 12px;

    background: white;

    position: relative;

    transition: background-color .3s;
}

.dice::after {
    content: "";

    width: 10px;
    height: 10px;

    background: black;

    border-radius: 50%;

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}

.rig-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;
}

.rig-header span {
    font-size: 24px;
    font-weight: bold;
}

.rig-controls {
    display: flex;
    gap: 5px;
}

.rig-controls button {
    width: 28px;
    height: 28px;

    border: 2px solid black;
    border-radius: 5px;

    cursor: pointer;
    font-weight: bold;
}

.restore-rig {
    display: none;

    position: absolute;
    top: 20px;
    right: 20px;

    background: white;

    border: 3px solid black;
    border-radius: 10px;

    padding: 10px 15px;

    cursor: pointer;

    font-weight: bold;
}

#rigContent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}