        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
            background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
            color: #333;
            line-height: 1.6;
            padding: 15px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .container {
            max-width: 100%;
            width: 100%;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            padding: 20px;
            margin: 10px 0;
        }
        
        header {
            text-align: center;
            margin-bottom: 20px;
        }
        
        h1 {
            color: #e91e63;
            font-size: 1.8rem;
            margin-bottom: 8px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        .subtitle {
            color: #9c27b0;
            font-size: 1rem;
            margin-bottom: 15px;
        }
        
        .qr-board-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .qr-board {
            width: 85vw;
            max-width: 280px;
            height: 85vw;
            max-height: 280px;
            position: relative;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto;
        }
        
        #qrcode {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        #qrcode canvas {
            width: 100% !important;
            height: 100% !important;
        }
        
        .game-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .game-grid {
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-columns: repeat(21, 1fr);
            grid-template-rows: repeat(21, 1fr);
            gap: 1px;
        }
        
        .cell {
            border-radius: 1px;
            transition: all 0.3s ease;
        }
        
        .cell.heart {
            background-color: rgba(255, 64, 129, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 6px;
        }
        
        .cell.couple-1 {
            background-color: rgba(156, 39, 176, 0.7);
        }
        
        .cell.couple-2 {
            background-color: rgba(63, 81, 181, 0.7);
        }
        
        .cell.start {
            background-color: rgba(76, 175, 80, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 6px;
            font-weight: bold;
        }
        
        .cell.finish {
            background-color: rgba(255, 152, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 6px;
            font-weight: bold;
        }
        
        .instructions {
            background-color: #f8f8f8;
            border-radius: 12px;
            padding: 15px;
            margin-top: 15px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        
        .instructions h2 {
            color: #e91e63;
            margin-bottom: 12px;
            text-align: center;
            font-size: 1.3rem;
        }
        
        .instructions ul {
            list-style-type: none;
            padding-left: 5px;
        }
        
        .instructions li {
            margin-bottom: 8px;
            padding-left: 20px;
            position: relative;
            font-size: 0.9rem;
        }
        
        .instructions li::before {
            content: "♥";
            color: #e91e63;
            position: absolute;
            left: 0;
        }
        
        .couple-info {
            display: flex;
            justify-content: space-around;
            margin: 15px 0;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .couple {
            display: flex;
            align-items: center;
            background-color: #f0f0f0;
            padding: 12px;
            border-radius: 8px;
            width: 45%;
            min-width: 160px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        
        .couple-1 .avatar {
            background-color: #9c27b0;
        }
        
        .couple-2 .avatar {
            background-color: #3f51b5;
        }
        
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            margin-right: 12px;
            font-size: 0.9rem;
        }
        
        .couple .info h3 {
            font-size: 1rem;
        }
        
        .couple .info p {
            font-size: 0.8rem;
        }
        
        .dice-container {
            display: flex;
            justify-content: center;
            margin: 15px 0;
            perspective: 1000px;
        }
        
        .dice {
            width: 80px;
            height: 80px;
            position: relative;
            transform-style: preserve-3d;
            cursor: pointer;
            transition: transform 1s ease;
        }
        
        .dice-face {
            position: absolute;
            width: 80px;
            height: 80px;
            background: white;
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
            border: 1px solid #ddd;
        }
        
        .dice-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #333;
            position: absolute;
        }
        
        /* 骰子面定位 */
        .dice-face-front { transform: translateZ(40px); }
        .dice-face-back { transform: rotateY(180deg) translateZ(40px); }
        .dice-face-right { transform: rotateY(90deg) translateZ(40px); }
        .dice-face-left { transform: rotateY(-90deg) translateZ(40px); }
        .dice-face-top { transform: rotateX(90deg) translateZ(40px); }
        .dice-face-bottom { transform: rotateX(-90deg) translateZ(40px); }
        
        /* 点数1的样式 */
        .dice-face-front .dice-dot {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        
        /* 点数2的样式 */
        .dice-face-back .dice-dot:nth-child(1) {
            top: 20%;
            left: 20%;
        }
        .dice-face-back .dice-dot:nth-child(2) {
            bottom: 20%;
            right: 20%;
        }
        
        /* 点数3的样式 */
        .dice-face-right .dice-dot:nth-child(1) {
            top: 20%;
            left: 20%;
        }
        .dice-face-right .dice-dot:nth-child(2) {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        .dice-face-right .dice-dot:nth-child(3) {
            bottom: 20%;
            right: 20%;
        }
        
        /* 点数4的样式 */
        .dice-face-left .dice-dot:nth-child(1) {
            top: 20%;
            left: 20%;
        }
        .dice-face-left .dice-dot:nth-child(2) {
            top: 20%;
            right: 20%;
        }
        .dice-face-left .dice-dot:nth-child(3) {
            bottom: 20%;
            left: 20%;
        }
        .dice-face-left .dice-dot:nth-child(4) {
            bottom: 20%;
            right: 20%;
        }
        
        /* 点数5的样式 */
        .dice-face-top .dice-dot:nth-child(1) {
            top: 20%;
            left: 20%;
        }
        .dice-face-top .dice-dot:nth-child(2) {
            top: 20%;
            right: 20%;
        }
        .dice-face-top .dice-dot:nth-child(3) {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        .dice-face-top .dice-dot:nth-child(4) {
            bottom: 20%;
            left: 20%;
        }
        .dice-face-top .dice-dot:nth-child(5) {
            bottom: 20%;
            right: 20%;
        }
        
        /* 点数6的样式 */
        .dice-face-bottom .dice-dot:nth-child(1) {
            top: 20%;
            left: 20%;
        }
        .dice-face-bottom .dice-dot:nth-child(2) {
            top: 20%;
            right: 20%;
        }
        .dice-face-bottom .dice-dot:nth-child(3) {
            top: 50%;
            left: 20%;
            transform: translateY(-50%);
        }
        .dice-face-bottom .dice-dot:nth-child(4) {
            top: 50%;
            right: 20%;
            transform: translateY(-50%);
        }
        .dice-face-bottom .dice-dot:nth-child(5) {
            bottom: 20%;
            left: 20%;
        }
        .dice-face-bottom .dice-dot:nth-child(6) {
            bottom: 20%;
            right: 20%;
        }
        
        .dice-rolling {
            animation: roll 1s ease-out;
        }
        
        @keyframes roll {
            0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
            100% { transform: rotateX(720deg) rotateY(720deg) rotateZ(360deg); }
        }
        
        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 15px;
            flex-wrap: wrap;
        }
        
        button {
            background-color: #e91e63;
            color: white;
            border: none;
            padding: 10px 18px;
            border-radius: 40px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
        }
        
        button:hover {
            background-color: #c2185b;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }
        
        .url-display {
            background-color: #f0f0f0;
            padding: 8px 12px;
            border-radius: 8px;
            margin: 12px 0;
            text-align: center;
            font-size: 0.9rem;
        }
        
        .download-link {
            color: #e91e63;
            text-decoration: none;
            font-weight: bold;
            font-size: 1rem;
            padding: 4px 8px;
            border-radius: 4px;
            transition: all 0.3s ease;
            display: inline-block;
            margin-top: 5px;
        }
        
        .download-link:hover {
            background-color: #e91e63;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
        }
        
        footer {
            text-align: center;
            margin-top: 20px;
            color: #666;
            font-size: 0.8rem;
        }
        
        .share-container {
            margin-top: 15px;
            text-align: center;
            width: 100%;
            display: none;
        }
        
        .share-box {
            background-color: #fff;
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            margin-top: 12px;
            display: inline-block;
            max-width: 100%;
            width: 90%;
        }
        
        .share-qr {
            width: 120px;
            height: 120px;
            margin: 0 auto 12px;
        }
        
        .share-qr canvas {
            width: 100% !important;
            height: 100% !important;
        }
        
        .share-url {
            background-color: #f8f8f8;
            padding: 8px;
            border-radius: 6px;
            font-size: 0.85rem;
            word-break: break-all;
            margin-top: 8px;
            position: relative;
        }
        
        .copy-btn {
            background-color: #9c27b0;
            margin-top: 8px;
            padding: 5px 10px;
            font-size: 0.8rem;
        }
        
        .share-close {
            background-color: #9c27b0;
            margin-top: 12px;
            padding: 6px 12px;
            font-size: 0.85rem;
        }
        
        .copy-success {
            color: #4caf50;
            font-size: 0.85rem;
            margin-top: 8px;
            display: none;
        }
        
        @media (max-width: 480px) {
            .container {
                padding: 15px;
            }
            
            h1 {
                font-size: 1.6rem;
            }
            
            .subtitle {
                font-size: 0.9rem;
            }
            
            .qr-board {
                width: 90vw;
                max-width: 260px;
                height: 90vw;
                max-height: 260px;
            }
            
            .couple {
                width: 100%;
                min-width: auto;
            }
            
            .action-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            button {
                width: 80%;
                margin-bottom: 8px;
            }
            
            .dice {
                width: 70px;
                height: 70px;
            }
            
            .dice-face {
                width: 70px;
                height: 70px;
            }
            
            .dice-face-front { transform: translateZ(35px); }
            .dice-face-back { transform: rotateY(180deg) translateZ(35px); }
            .dice-face-right { transform: rotateY(90deg) translateZ(35px); }
            .dice-face-left { transform: rotateY(-90deg) translateZ(35px); }
            .dice-face-top { transform: rotateX(90deg) translateZ(35px); }
            .dice-face-bottom { transform: rotateX(-90deg) translateZ(35px); }
            
            .dice-dot {
                width: 10px;
                height: 10px;
            }
        }
        
        @media (min-width: 769px) {
            .container {
                max-width: 800px;
            }
        }