/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  font-size: 6.25%;
  line-height: 1.4;
  color: #222;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: 15px;
}

/* Typography */
h1:first-child,
h2:first-child,
h3:first-child {
  margin-top: 0;
}

p {
  margin-bottom: 0;
}

h1 {
  font-weight: 400;
  font-size: 22px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 20px;
  font-weight: 400;
}

small {
  font-size: 13rem;
}

/* Links and Images */
a {
  color: #00e;
  cursor: pointer;
  text-decoration: underline;
}

img {
  height: auto;
  border: 0;
}

/* Original single-letter classes (preserved for compatibility) */
.a {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
  -webkit-filter: grayscale(1);
  filter: grayscale(1);
}

.b {
  overflow: auto;
  zoom: 1;
}

.c {
  margin-left: auto;
}

.e {
  display: inline-block;
  vertical-align: top;
}

.f {
  font-weight: 700;
}

.g {
  color: #000;
}

.h {
  color: red;
}

.i {
  color: green;
}

/* Layout */
.q {
  width: 96%;
  max-width: 800px;
  margin: 0 auto;
}

/* Header/User Info Section */
.r {
  margin: 10px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 14rem;
}

.r img {
  float: left;
  width: 80px;
  height: 80px;
  margin-right: 10px;
}

.r table {
  height: 80px;
}

.r table td {
  padding: 0 8px;
  height: 33.3333%;
  vertical-align: middle;
}

.r table td:first-child {
  font-weight: 700;
  text-align: right;
}

.r table td:last-child {
  background-color: #f6f6f6;
}

/* Survey Section */
.s {
  margin: 20px 0 20px;
  text-align: center;
}

/* Prize Cards */
.t {
  width: 100%;
  max-width: 600px;
  margin: 20px auto 30px;
}

.t > * {
  vertical-align: middle;
}

.t img {
  margin-right: 20px;
  margin-bottom: 10px;
}

.t div {
  display: inline-block;
  text-align: left;
  margin-right: 30px;
}

.t a {
  width: 30%;
}

/* Buttons */
.u {
  width: 29.333%;
  margin: 10px 2%;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  top: 0;
  display: inline-block;
  padding: 10px 20px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border-radius: 4px;
  background-color: #ec0306;
  box-shadow: 0 4px 0 #bf0306, 0 8px 3px rgba(0,0,0,.1);
}

.u:hover {
  top: 1px;
  box-shadow: 0 3px 0 #bf0306, 0 6px 2px rgba(0,0,0,.1);
}

.u:active {
  top: 3px;
  box-shadow: 0 1px 0 #bf0306, 0 3px 2px rgba(0,0,0,.1);
}

/* Bouygues Theme */
.bouygues .u {
  background-color: #0092c4;
  box-shadow: 0 4px 0 #007399, 0 8px 3px rgba(0,0,0,.1);
}

.bouygues .u:hover {
  box-shadow: 0 3px 0 #007399, 0 6px 2px rgba(0,0,0,.1);
}

.bouygues .u:active {
  box-shadow: 0 1px 0 #007399, 0 3px 2px rgba(0,0,0,.1);
}

/* Blink Animation */
.v {
  -webkit-animation: 0.7s blink linear infinite;
  animation: 0.7s blink linear infinite;
}

@-webkit-keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* Hidden Elements */
[hidden] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Media Queries */
@media screen and (max-width: 640px) {
  html {
    font-size: 5.75%;
  }
  
  .r {
    font-size: 12px;
  }
  
  .u {
    width: 96%;
  }
  
  .t a {
    width: 80%;
  }
}


/* Контейнер для статусных сообщений */
.status-messages {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
}

/* Отдельные статусные сообщения */
.status-message {
    margin: 10px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-message.visible {
    opacity: 1;
}